Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/freeglut/README.cmake @ 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 How to build freeglut with CMake on Windows (MS Visual Studio) | |
| 2 -------------------------------------------------------------- | |
| 3 1. Download CMake (http://www.cmake.org/cmake/resources/software.html). | |
| 4 Get one of the releases from the binary distribution section. | |
| 5 2. Run the CMake installer, install wherever you like. | |
| 6 3. Launch CMake via Start > Program Files > CMake 2.8 > CMake (GUI) | |
| 7 (note that the shortcut put by the installer on your desktop does NOT | |
| 8 point to the CMake GUI program!) | |
| 9 4. In the "Where is the source code" box, type or browse to the root | |
| 10 directory of your freeglut source (so that's /freeglut, not | |
| 11 /freeglut/src). | |
| 12 5. In the "Where to build the binaries" box, type or browse to any | |
| 13 folder you like - this will be where the Visual Studio solution will be | |
| 14 generated. This folder does not have to exist yet. | |
| 15 6. Hit the Configure button near the bottom of the window. | |
| 16 7. Pick your target compiler, make sure that its installed on your | |
| 17 system of course! | |
| 18 8. Answer Ok when asked if you want to create the build directory. | |
| 19 9. Wait for the configure process to finish. | |
| 20 10. The screen will now have some configuration options on it, for | |
| 21 instance specifying whether you want to build static and/or shared | |
| 22 libraries (see below for a complete list). When you've selected your | |
| 23 options, click the Configure button again. | |
| 24 11. The Generate button at the bottom will now be enabled. Click Generate. | |
| 25 12. The build files will now be generated in the location you picked. | |
| 26 | |
| 27 You can now navigate to the build directory you specified in step 5. | |
| 28 Open the freeglut.sln file that was generated in your build directory, | |
| 29 and compile as usual | |
| 30 | |
| 31 | |
| 32 How to build freeglut on UNIX | |
| 33 ----------------------------- | |
| 34 - Make sure you have cmake installed. Examples: | |
| 35 - Debian/Ubuntu: apt-get install cmake | |
| 36 - Fedora: yum install cmake | |
| 37 - FreeBSD: cd /usr/ports/devel/cmake && make install | |
| 38 Or directly from their website: | |
| 39 http://www.cmake.org/cmake/resources/software.html | |
| 40 - Make sure you have the basics for compiling code, such as C compiler | |
| 41 (e.g., GCC) and the make package. | |
| 42 - Also make sure you have packages installed that provide the relevant | |
| 43 header files for x11 (including xrandr) and opengl (e.g., | |
| 44 libgl1-mesa-dev, libx11-dev and libxrandr-dev on Debian/Ubuntu). | |
| 45 - Install XInput: libxi-dev / libXi-devel | |
| 46 - Run 'cmake .' in the freeglut directory to generate the makefile. | |
| 47 - Run 'make' to build, and 'make install' to install freeglut. | |
| 48 - If you wish to change any build options run 'ccmake .' | |
| 49 | |
| 50 | |
| 51 Breakdown of CMake configuration options | |
| 52 ---------------------------------------- | |
| 53 CMAKE_BUILD_TYPE [Empty, Debug, Release] Can be overriden by | |
| 54 passing it as a make variable during build. | |
| 55 CMAKE_INSTALL_PREFIX Installation prefix (e.g. /usr/local on UNIX) | |
| 56 FREEGLUT_BUILD_DEMOS [ON, OFF] Controls whether the demos are | |
| 57 built or not. | |
| 58 FREEGLUT_BUILD_SHARED_LIBS [ON, OFF] Build freeglut as a shared library | |
| 59 FREEGLUT_BUILD_STATIC_LIBS [ON, OFF] Build freeglut as a static library | |
| 60 FREEGLUT_GLES [ON, OFF] Link with GLEs libraries instead | |
| 61 of OpenGL | |
| 62 FREEGLUT_PRINT_ERRORS [ON, OFF] Controls whether errors are | |
| 63 default handled or not when user does not | |
| 64 provide an error callback | |
| 65 FREEGLUT_PRINT_WARNINGS [ON, OFF] Controls whether warnings are | |
| 66 default handled or not when user does not | |
| 67 provide an warning callback | |
| 68 FREEGLUT_REPLACE_GLUT [ON, OFF] For non-Windows platforms, | |
| 69 freeglut is by default built as -lglut. if | |
| 70 off, built as -lfreeglut. On Windows, | |
| 71 libraries are always built as freeglut. | |
| 72 INSTALL_PDB [ON, OFF] MSVC only: controls whether debug | |
| 73 information files are included with the | |
| 74 install or not |
