gregorio icon indicating copy to clipboard operation
gregorio copied to clipboard

Cross compiling on Ubuntu 16+

Open rpspringuel opened this issue 7 years ago • 3 comments

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.

rpspringuel avatar Feb 01 '17 03:02 rpspringuel

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/

rpspringuel avatar Feb 26 '17 18:02 rpspringuel

Does this mean we would no longer support win32-only systems? If so, do we care?

henryso avatar Feb 26 '17 22:02 henryso

The mingw-w64 package contains both a 32 & 64 bit compiler.

rpspringuel avatar Feb 27 '17 00:02 rpspringuel