diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mupdf-source/thirdparty/freeglut/README.mingw_cross	Mon Sep 15 11:43:07 2025 +0200
@@ -0,0 +1,49 @@
+Cross-compilation from GNU/Linux (static and shared DLL)
+========================================================
+
+Install MinGW, and specify which MinGW you're using:
+
+- on Debian/Ubuntu, mingw-w64, 64-bit executables:
+
+  apt-get install mingw-w64
+  GNU_HOST=x86_64-w64-mingw32
+
+- on Debian/Ubuntu, mingw-w64, 32-bit executables:
+
+  apt-get install mingw-w64
+  GNU_HOST=i686-w64-mingw32
+
+- on Fedora, mingw32, 32-bit executables:
+
+  yum install mingw32-gcc
+  GNU_HOST=i686-pc-mingw32
+
+- on Debian/Ubuntu, mingw32 (deprecated):
+
+  apt-get install mingw32
+  GNU_HOST=i586-mingw32msvc
+
+
+With CMake
+----------
+
+Cross-compile with:
+
+  mkdir cross-woe/ && cd cross-woe/
+  cmake \
+    -D GNU_HOST=$GNU_HOST \
+    -D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
+    -D CMAKE_INSTALL_PREFIX=/freeglut \
+    ..
+  make -j4
+  make install DESTDIR=$(pwd)
+
+Everything is now in the new 'freeglut/' directory.
+The .dll is in 'freeglut/lib/'.
+
+
+Compiling your code
+-------------------
+
+Compilation of your own programs is done as usual.
+See README.cygwin_mingw for details.