Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Is there a way to cross compile using Allegro for Windows on Linux?

This thread is locked; no one can reply to it. rss feed Print
Is there a way to cross compile using Allegro for Windows on Linux?
iheartcoffee
Member #16,518
August 2016
avatar

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
Member #1,136
March 2001

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
Member #358
May 2000

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).

--
"Either help out or stop whining" - Evert

ZoriaRPG
Member #16,714
July 2017
avatar

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

Possible, aye, but your results may vary.

Go to: