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.025795
First Submitted: 2015-04-22 00:26
Last Updated: 2021-07-15 04:57

Latest Comments

1 2 Next › Last »

ugjdgdto commented on 2021-07-15 04:13

If the colors are wrong, please try:

diff -urN a/page.cpp b/page.cpp
--- a/page.cpp  2020-09-26 13:24:53.000000000 +0100
+++ b/page.cpp  2021-07-14 02:36:28.208864722 +0100
@@ -33,7 +33,7 @@
     const int w = fz_pixmap_width(ctx, image);
     const int h = fz_pixmap_height(ctx, image);
-    QImage img(w, h, QImage::Format_ARGB32);
+    QImage img(w, h, QImage::Format_RGBA8888);

     if (img.bytesPerLine() == fz_pixmap_stride(ctx, image)) {
         memcpy(img.bits(), fz_pixmap_samples(ctx, image), img.sizeInBytes());

sandsmark commented on 2020-09-26 12:35

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

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

hexchain commented on 2018-09-09 22:12

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

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

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

xyzz commented on 2018-01-29 01:16

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

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?

xyzz commented on 2018-01-28 06:44

I've updated it here works with latest okular/libmupdf from arch repos.

imdn commented on 2016-12-19 13:48

Does not build anymore on an up-to-date Arch system. Even after changing the dependency from 'kdegraphics-okular'(which no longer exists) to 'okular'. Seems to be a configuration issue.