Is there a way to cross compile using Allegro for Windows on Linux?
iheartcoffee

I was wondering if there was a way to cross compile an allegro program for Windows using MinGW on Linux to run on a Windows PC?

Peter Hull

In principle yes
https://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g
I don't know if anyone has actually done it.

Elias

You an look how Allegro itself is cross-compiled: https://github.com/liballeg/allegro5/blob/master/cmake/Toolchain-mingw.cmake

Basically tell cmake which compiler to use instead of the native one, and it will compile for Windows instead of Linux. Getting all the dependency libraries is still very involved unfortunately, as is getting the resulting .exe to actually work in a native Windows (needs to find all the right DLLs and stuff).

ZoriaRPG

https://arrayfire.com/cross-compile-to-windows-from-linux/

Possible, aye, but your results may vary.

Thread #617724. Printed from Allegro.cc