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, 32-bit executables:
8 apt-get install mingw-w64
9 GNU_HOST=i686-w64-mingw32
11 - on Debian/Ubuntu, mingw-w64, 64-bit executables:
13 apt-get install mingw-w64
14 GNU_HOST=x86_64-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
27 With the GNU Autotools
28 ----------------------
32 ./configure --host=$GNU_HOST --prefix=/freeglut
34 make install DESTDIR=$(pwd)
36 Everything is now in the new 'freeglut/' directory.
37 The .dll is in 'freeglut/bin/'.
46 -D GNU_HOST=$GNU_HOST \
47 -D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
48 -D CMAKE_INSTALL_PREFIX=/freeglut \
51 make install DESTDIR=$(pwd)
53 Everything is now in the new 'freeglut/' directory.
54 The .dll is in 'freeglut/lib/'.
60 Compilation of your own programs is done as usual.
61 See README.cygwin_mingw for details.