implemented SUPER key/modifier support on windows
[freeglut] / README.mingw_cross
1 Cross-compilation from GNU/Linux (static and shared DLL)
2 ========================================================
3
4 Install MinGW, and specify which MinGW you're using:
5
6 - on Debian/Ubuntu, mingw-w64, 64-bit executables:
7
8   apt-get install mingw-w64
9   GNU_HOST=x86_64-w64-mingw32
10
11 - on Debian/Ubuntu, mingw-w64, 32-bit executables:
12
13   apt-get install mingw-w64
14   GNU_HOST=i686-w64-mingw32
15
16 - on Fedora, mingw32, 32-bit executables:
17
18   yum install mingw32-gcc
19   GNU_HOST=i686-pc-mingw32
20
21 - on Debian/Ubuntu, mingw32 (deprecated):
22
23   apt-get install mingw32
24   GNU_HOST=i586-mingw32msvc
25
26
27 With CMake
28 ----------
29
30 Cross-compile with:
31
32   mkdir cross-woe/ && cd cross-woe/
33   cmake \
34     -D GNU_HOST=$GNU_HOST \
35     -D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
36     -D CMAKE_INSTALL_PREFIX=/freeglut \
37     ..
38   make -j4
39   make install DESTDIR=$(pwd)
40
41 Everything is now in the new 'freeglut/' directory.
42 The .dll is in 'freeglut/lib/'.
43
44
45 Compiling your code
46 -------------------
47
48 Compilation of your own programs is done as usual.
49 See README.cygwin_mingw for details.