|
Cross platform CMake? |
ismqdb
Member #23,641
January 2023
|
Hello everyone. I've first started with Allegro on Windows, using VS and Allegro NuGet package, which is very nice. I then moved to Linux and ran the lib from the command line. I've recently moved to macOS and I'm unable to run Allegro on it. I've installed it with Homebrew but trying to compile it with g++ and Allegro switches throws linker errors (something regarding mangled_main). My question is: is there a CMake file (or guide) I could use so that the compilation and running of Allegro project is possible on any of these 3 OS's, with minimal or no change? I'm using VS Code and it's CMake extension. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
You need to link to the libraries you used. On OSX, there is allegro main in addition to allegro and the addons. 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 |
ismqdb
Member #23,641
January 2023
|
Yep, that was the issue. Thanks. |
|