|
How to build Allegro with CMake? |
Galateia
Member #17,057
March 2019
|
Hello. I am an absolute novice in programming and just finished the tutorials about console programs. Now I am venturing towards GUI. I would like to use Allegro as my first GUI, but I am stuck in the ''build'' part. I do not understand what is this ''build'' thing, but I assumed it is how I get the include files from the source code, as well as produce the .dll files needed to include in the final program. This process seems to be compiler dependent, as I read in SFML site that we must always use the same compiler which generated the libraries. I downloaded CMake and when I use it, a complete error occurs: "Determining if the C compiler works failed". It also states "Error in configuration process, project files may be invalid". What am I supposed to do? I would like someone to guide me. Thanks in advance. -- |
Chris Katko
Member #1,881
January 2002
|
It's probably something you can google "cmake [error message]" but it sounds like your compiler isn't in your windows PATH environment variable so when cmake tries to check for it / run it, it can't find it. -----sig: |
Galateia
Member #17,057
March 2019
|
I am searching this for hours but no satisfactory answer found... Many, many people have the same problem, but all answers I found refer to misuse of MSVS. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
First things first. TDM GCC is out of date and unsupported. They're still on GCC 5.1 but GCC 8 is out. The MinGW-W64 project provides an up to date, working compiler that includes all the DX headers and libraries that you need. If CMake can't compile a simple file, it's because it's not on the path or it doesn't know what the compiler is. I provide a compile guide for MinGW-W64 you can find it here : http://members.allegro.cc/EdgarReynaldo/BuildA5.html However, you may want to use the binaries instead and save yourself the trouble of building all the dependencies. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Galateia
Member #17,057
March 2019
|
Thank you. I'll try my best. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
If you have questions, you can ask here. Note you can't reply to your own post, only edit it (and possibly send it to top). My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|