Introduction to MuPDF

MuPDF is a lightweight PDF and XPS viewer.

This package is known to build and work properly using an LFS-8.3 platform.

Package Information

Additional Downloads

MuPDF Dependencies


Xorg Libraries



xdg-utils-1.1.3 (runtime), jbig2dec, and MuJS

Required (runtime)

X Window System

User Notes:

Installation of MuPDF

Install MuPDF by running the following commands:

rm -rf thirdparty/curl     &&
rm -rf thirdparty/freeglut &&
rm -rf thirdparty/freetype &&
rm -rf thirdparty/harfbuzz &&
rm -rf thirdparty/jpeg     &&
rm -rf thirdparty/lcms2    &&
rm -rf thirdparty/libjpeg  &&
rm -rf thirdparty/openjpeg &&
rm -rf thirdparty/zlib     &&

patch -Np1 -i ../mupdf-1.13.0-shared_libs-1.patch &&

make build=release

This package does not come with a test suite.

Now, as the root user:

make prefix=/usr                      \
     build=release                    \
     docdir=/usr/share/doc/mupdf-1.13.0 \
     install                          &&

ln -sfv mupdf-x11 /usr/bin/mupdf

Command Explanations

ln -sfv mupdf-x11 /usr/bin/mupdf : Two mupdf executables are installed: mupdf-gl and mupdf-x11. This symbolic link allows to choose which one is used when running mupdf.


Installed Program: mupdf(symlink), mupdf-gl, mupdf-x11, and mutool
Installed Libraries:,,, and
Installed Directories: /usr/include/mupdf, /usr/share/doc/mupdf-1.13.0

Short Descriptions


is a program for viewing PDF, XPS, EPUB, and CBZ documents, and various image formats such as PNG, JPEG, GIFF, and TIFF.


same as mupdf, using an opengl renderer.


same as mupdf, using an X Window renderer.

contains the mupdf API functions.

contains the third party libraries compiled for mudpf.

Last updated on 2018-08-25 09:17:21 -0700