1 Cross-compilation from GNU/Linux (static and shared DLL)
2 ========================================================
4 Install MinGW, and specify which MinGW you're using:
6 - on Debian/Ubuntu, mingw-w64, 64-bit executables:
8 apt-get install mingw-w64
9 GNU_HOST=x86_64-w64-mingw32
11 - on Debian/Ubuntu, mingw-w64, 32-bit executables:
13 apt-get install mingw-w64
14 GNU_HOST=i686-w64-mingw32
16 - on Fedora, mingw32, 32-bit executables:
18 yum install mingw32-gcc
19 GNU_HOST=i686-pc-mingw32
21 - on Debian/Ubuntu, mingw32 (deprecated):
23 apt-get install mingw32
24 GNU_HOST=i586-mingw32msvc
32 mkdir cross-woe/ && cd cross-woe/
34 -D GNU_HOST=$GNU_HOST \
35 -D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
36 -D CMAKE_INSTALL_PREFIX=/freeglut \
39 make install DESTDIR=$(pwd)
41 Everything is now in the new 'freeglut/' directory.
42 The .dll is in 'freeglut/lib/'.
48 Compilation of your own programs is done as usual.
49 See README.cygwin_mingw for details.