gregorio
gregorio copied to clipboard
Cross compiling on Ubuntu 16+
In preping the beta I've been trying to setup cross-compiling on my Ubuntu 16.04 VM and have discovered that the mingw32 port is not in the repositories for that version of Ubuntu. As a result, I can't build the Windows executable on that VM. There is a mingw-w64 port, which should be able to build both 32 and 64 bit executables, but it doesn't work with our build setup as currently structured, and I'm not in a position to figure out what changes are needed at the moment.
This doesn't present too big a problem for now, as I can simply switch to my Ubuntu 14.04 VM (where the mingw32 port is readily available) and build the executable there. However, in the long term we're probably going to have to look into switching the tool chain around for building the Windows executable.
In a similar vein, there is now a mingw-w64 cross compiler port for MacPorts, so ideally this update should allow for compilation of the Windows executable on both Mac and Linux.
Also, I found a page which shows a simple compiler selection script for mingw-w64: https://sourceforge.net/p/mingw-w64/wiki2/UsingLinuxBinaries/
Does this mean we would no longer support win32-only systems? If so, do we care?
The mingw-w64 package contains both a 32 & 64 bit compiler.