mupdf-devel does not ship a pkg-config (.pc) file, making it difficult to compile software that depends on libmupdf. Reproducible: Always Steps to Reproduce: Steps to Reproduce: 1. Install mupdf-devel: dnf install mupdf-devel 2. Run: pkg-config --cflags --libs mupdf 3. Observe failure Actual Results: Package mupdf was not found in the pkg-config search path. Expected Results: Expected results: pkg-config returns appropriate cflags and libs for linking against mupdf. Additional Information: Workaround: -- Step 1. create mupdf.pc for yourself file (e.g. /usr/local/lib64/pkgconfig/mupdf.pc): prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: mupdf Description: Library for rendering PDF documents Requires.private: freetype2 Version: 1.26.9 Libs: -L${libdir} -lmupdf Libs.private: -lmujs -lgumbo -lopenjp2 -ljbig2dec -ljpeg -lz -lm Cflags: -I${includedir} -- Step 2. Add location to PKG (e.g. /usr/local/lib/pkgconfig/mupdf.pc) export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH"
It's certainly true that mupdf-devel ships no mupdf.pc. The simple reason is that upstream ships no such config. In other words, upstream does not support building against mupdf-devel in the way in which you're trying. On the other hand, shipping mupdf.pc should not break anything, and I had one sitting in my local dist-git tree since 2022 ... So I'll look into shipping one. Needs come with proper provides and such, of course. Also, what about mupdf-cpp-devel?
FEDORA-2026-e112969837 (mupdf-1.27.1-3.fc45, python-PyMuPDF-1.27.1-2.fc45, and 2 more) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-e112969837
FEDORA-2026-e112969837 (mupdf-1.27.1-3.fc45, python-PyMuPDF-1.27.1-2.fc45, and 2 more) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report.