Package Details: okular-backend-mupdf-git r54.8a03617-1

Git Clone URL: https://aur.archlinux.org/okular-backend-mupdf-git.git (read-only, click to copy)
Package Base: okular-backend-mupdf-git
Description: MuPDF-based backend for Okular (git version)
Upstream URL: https://github.com/xyzz/okular-backend-mupdf
Licenses: GPL
Conflicts: okular-backend-mupdf
Provides: okular-backend-mupdf
Submitter: xylosper
Maintainer: gustawho
Last Packager: ava1ar
Votes: 9
Popularity: 0.021481
First Submitted: 2015-04-22 00:26
Last Updated: 2018-01-29 03:14

Latest Comments

1 2 Next › Last »

sandsmark commented on 2020-09-26 12:35

I finally updated my version at https://github.com/sandsmark/okular-backend-mupdf

Try this patch:

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

update

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

_base=okular-backend-mupdf
pkgname=("$_base-git")
-pkgver=r54.8a03617
+pkgver=r78.7b2858a
pkgrel=1
pkgdesc="MuPDF-based backend for Okular (git version)"
arch=('i686' 'x86_64')
-license=('GPL')
-depends=('okular' 'openjpeg2' 'mupdf')
-makedepends=('gcc' 'automoc4' 'cmake' 'git' 'libmupdf')
-url="https://github.com/xyzz/okular-backend-mupdf"
+license=('AGPL')
+depends=('okular')
+makedepends=('extra-cmake-modules' 'cmake' 'git' 'libmupdf')
+url="https://github.com/sandsmark/$_base"
source=("git+$url")
sha1sums=('SKIP')
conflicts=("$_base")
@@ -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 \
+           -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}

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:

    ECMConfig.cmake
    ecm-config.cmake

  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 https://github.com/xyzz/okular-backend-mupdf 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.

http://pastebin.com/ruxfLCVb

ava1ar commented on 2016-07-14 02:28

Thanks, @sandsmark
Build now works fine, but I am getting exception on linking:

[100%] Linking CXX shared module lib/okularGenerator_mupdf.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../lib/libmupdf.a(font.o): In function `fz_drop_font':
(.text+0xf2f): undefined reference to `hb_font_destroy'

any ideas?