Package Details: okular-backend-mupdf-git r81.1ba0160-1

Git Clone URL: (read-only, click to copy)
Package Base: okular-backend-mupdf-git
Description: MuPDF-based backend for Okular (git version)
Upstream URL:
Licenses: AGPL
Conflicts: okular-backend-mupdf
Provides: okular-backend-mupdf
Submitter: xylosper
Maintainer: gustawho
Last Packager: gustawho
Votes: 10
Popularity: 0.000001
First Submitted: 2015-04-22 00:26 (UTC)
Last Updated: 2021-07-15 04:57 (UTC)

Latest Comments

1 2 Next › Last »

Microeinstein commented on 2023-02-06 11:54 (UTC) (edited on 2023-02-06 12:06 (UTC) by Microeinstein)

Edit: it seems that Okular still prefers Poppler unless explicitly told everytime by enabling "Show backend choice" option. I forcely disabled poppler with these commands:

mv /usr/lib/qt/plugins/okular/generators/{,.}
mv /usr/share/kservices5/{,.}okularPoppler.desktop

(Old comment)

I don't know why, but the file okularMupdf.desktop doesn't get into the package - it should go in /usr/share/kservices5/.

In my case, Okular wouldn't recognize the backend without it.

sandsmark commented on 2020-09-26 12:35 (UTC)

I finally updated my version at

Try this patch:

commit 337085c61b63581d17f4f32dcd7cd449b5c54297 (HEAD -> master)
Author: Martin T. H. Sandsmark <>
Date:   Sat Sep 26 14:34:21 2020 +0200


diff --git a/PKGBUILD b/PKGBUILD
index c346718..4bb6069 100755
@@ -1,15 +1,16 @@
# Maintainer: ava1ar <mail(at)ava1ar(dot)me>
+# Contributor: xylosper <>

pkgdesc="MuPDF-based backend for Okular (git version)"
arch=('i686' 'x86_64')
-depends=('okular' 'openjpeg2' 'mupdf')
-makedepends=('gcc' 'automoc4' 'cmake' 'git' 'libmupdf')
+makedepends=('extra-cmake-modules' 'cmake' 'git' 'libmupdf')
@@ -24,10 +25,16 @@ build() {
cd $srcdir/$_base
rm -rf build
mkdir build && cd build
-       cmake -DCMAKE_INSTALL_PREFIX:PATH=$pkgdir/usr -DCMAKE_INSTALL_LIBDIR=$pkgdir/usr/lib/qt .. && make -j$(nproc)
+       cmake .. \
+           -DCMAKE_BUILD_TYPE=RelDebug \
+           -DCMAKE_INSTALL_PREFIX=/usr \
+           -DKDE_INSTALL_LIBDIR=lib \

package() {
cd $srcdir/$_base/build
-       make install
+       make DESTDIR="${pkgdir}" install
+# vim: ft=sh syn=sh ts=8 sw=4 noexpandtab

elswerky commented on 2020-04-22 11:18 (UTC)

it gives error on building it can you update it plz ??/

hexchain commented on 2018-09-09 22:12 (UTC)

Seems broken?

In file included from /home/xxx/.cache/yay/okular-backend-mupdf-git/src/okular-backend-mupdf/generator_mupdf.cpp:10:
/home/xxx/.cache/yay/okular-backend-mupdf-git/src/okular-backend-mupdf/generator_mupdf.hpp:40:23: error: ‘Okular::TextPage* MuPDFGenerator::textPage(Okular::Page*)’ marked ‘override’, but does not override
     Okular::TextPage* textPage(Okular::Page *page) override;

HaoZeke commented on 2018-05-05 22:59 (UTC)

Currently broken.

==> Extracting sources...
  -> Creating working copy of okular-backend-mupdf git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libopenjp2'
--   Found libopenjp2, version 2.3.0
-- Checking for module 'openssl'
--   Found openssl, version 1.1.0h
CMake Error at CMakeLists.txt:10 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 5.19.0) with any of the following names:


  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/tmp/trizen-haozeke/okular-backend-mupdf-git/src/okular-backend-mupdf/build/CMakeFiles/CMakeOutput.log".

ava1ar commented on 2018-01-29 03:17 (UTC)

Thanks, xyzz - install location update fixed the issue, so I updated PKGBUILD and pushed the update

xyzz commented on 2018-01-29 01:16 (UTC)

I think it might install the library to the wrong place. If you build it and copy the .so file to /usr/lib/qt/plugins/okular/generators/ it should offer a dialog.

ava1ar commented on 2018-01-28 06:58 (UTC)

Thanks, xyzz! It builds and installs from your fork, but I am not getting backend selection dialog in Okular during opening PDF file (with appropriate checkpox checked in settings). Does it work for you as expected?