comparison mupdf-source/thirdparty/freeglut/README.mingw_cross @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
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.