Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Cross platform CMake?

This thread is locked; no one can reply to it. rss feed Print
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
avatar

ismqdb
Member #23,641
January 2023

Yep, that was the issue. Thanks.

Go to: