MXE (M cross environment)
MXE (M cross environment) is a GNU Makefile that compiles a cross compiler and cross compiles many free libraries such as SDL and Qt. Thus, it provides a nice cross compiling environment for various target platforms, which:
i686-w64-mingw32
x86_64-w64-mingw32
winpthreads
is always available):
Please see mxe.cc for further information and package support matrix.
For some packages additional dependencies are required to be installed in order to build:
You can use the make
command to start the build.
Below an example of cross-compiling the GTK3 project to one statically linked Windows 64-bit library:
make gtk3 -j 8 MXE_TARGETS='x86_64-w64-mingw32.static'
Please see mxe.cc for more information about how-to build the MXE project.
Within the MXE makefiles we either define $(PKG)_GH_CONF
or $(PKG)_URL
, which will be used to download the package.
Next the checksum will be validated of the downloaded archive file (sha256 checksum).
Updating a package or updating checksum is all possible using the make commands, see usage for more info.
There are several approaches to recursively finding DLL dependencies (alphabetical list):