Skip to content

Instantly share code, notes, and snippets.

@user202729
Last active June 2, 2024 13:15
Show Gist options
  • Save user202729/b7aed41cdfb750b69772b1f1b579d163 to your computer and use it in GitHub Desktop.
Save user202729/b7aed41cdfb750b69772b1f1b579d163 to your computer and use it in GitHub Desktop.

How do I build libmupdf.so?

git clone https://github.com/ArtifexSoftware/mupdf
cd mupdf
make shared build=debug
# or:
make shared-debug

Then the result will be in build/shared-debug/.

You can optionally do something like the following afterwards:

make shared-install-c build=debug
make shared-install-c++ build=debug

If you want, you can run it in zathura with the following command:

LD_LIBRARY_PATH=/......../mupdf/build/shared-debug/ gdb zathura -ex "run file.pdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment