Compile MuPDF in Windows with MSYS MinGW - xiangxw/mupdf-qt GitHub Wiki
Installing MSYS/MinGW
Install MSYS and MinGW (http://www.mingw.org/wiki/Getting_Started). Using the Graphical User Interface Installer, mingw-get-setup.exe, is recommended. During installation, "checking/ticking" the following in "Basic Setup" is recommended:
- mingw32-base
- mingw32-gcc-g++
- msys-base
- mingw-developer-toolkit
Add C:\MinGW\bin;C:\MinGW\msys\1.0\bin; to your PATH system variables (at the beginning).
Download MuPDF Source
Download the source(such as mupdf-1.4-source.tar.gz) from http://mupdf.com/downloads/. Then extract it.
Building MuPDF
Open MinGW Shell (C:\MinGW\msys\1.0\msys.bat) then cd to MuPDF source directory
`cd path/to/mupdf/source`
execute make
`make build=debug NOX11=yes`
For release, just change "debug" to "release". NOX11 is necessary since X11 headers are not available in Windows. Note that this will not build the "app" packaged with the MuPDF source.
That's it!
The ".a" binaries are available inside the "build" folder.
- libfitz.a
- libfreetype.a
- libjbig2dec.a
- libjpeg.a
- libopenjpeg.a
- libz.a