Cross-Compiling Allegro 5 library on Linux for Windows
I found an article about cross-compiling Allegro on Linux for Windows here
However when I try to build Allegro 5 on Debian I notice that the mingw-w64 doesn't have the windows version of the libraries to compile Allegro. I think I can figure out CMAKE to configure for cross compiling but I'm not sure how to cross compile using MAKE.
That guide is a little out dated. I've never cross compiled before but it should be as simple as installing the target compiler and cmake and building as usual.
Note here is my guide for building on Windows :
You'll want to install mingw-w64, not mingw, as it comes with DX headers prepared for you.
I'll play around in my Ubuntu VM and see what I can come up with.
You'll want to install either 'g++-mingw-w64-i686' or 'g++-mingw-w64-x86-64' depending on your target architecture.
Thanks, let me know how it compiles
Thread #617999. Printed from Allegro.cc
I should warn you I've never cross compiled before, so no promises of results....