Package Details: okular-backend-mupdf-git r81.1ba0160-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/gustawho/okular-backend-mupdf
Licenses: AGPL
Conflicts: okular-backend-mupdf
Provides: okular-backend-mupdf
Submitter: xylosper
Maintainer: gustawho
Last Packager: gustawho
Votes: 11
Popularity: 0.015105
First Submitted: 2015-04-22 00:26 (UTC)
Last Updated: 2021-07-15 04:57 (UTC)

Latest Comments

1 2 3 Next › Last »

MarsSeed commented on 2023-11-11 16:20 (UTC)

The gumbo-parser ('gumbo') and the mujs libraries do not get linked to during the build. These should be removed from PKGBUILD depends and also from the CMake configuration.

On the other hand, there are missing dependencies from PKGBUILD, these should be declared (as per current Arch package guidelines):

blackanon commented on 2023-10-31 11:22 (UTC) (edited on 2023-10-31 11:55 (UTC) by blackanon)

Thanks a lot. after removing the (MuPDF_THIRD_LIBRARY) i compiled successfully.

But when trying to open PDF files, some of them open perfectly, and some of them don't open and okular just crashes giving:

segmentation fault (core dumped)  okular

blackanon commented on 2023-10-30 12:22 (UTC) (edited on 2023-10-31 11:22 (UTC) by blackanon)

getting this error:

~ λ  paru -S okular-backend-mupdf-git
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) okular-backend-mupdf-git-r81.1ba0160-1

:: Proceed to review? [Y/n]:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
fetching devel info...
==> Making package: okular-backend-mupdf-git r81.1ba0160-1 (Mon Oct 30 15:21:27 2023)
==> Retrieving sources...
  -> Updating okular-backend-mupdf git repo...
==> Validating source files with sha1sums...
    okular-backend-mupdf ... Skipped
==> Making package: okular-backend-mupdf-git r81.1ba0160-1 (Mon Oct 30 15:21:29 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating okular-backend-mupdf git repo...
==> Validating source files with sha1sums...
    okular-backend-mupdf ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of okular-backend-mupdf git repo...
Cloning into 'okular-backend-mupdf'...
done.
==> Starting pkgver()...
==> Updated version: okular-backend-mupdf-git r90.95fac96-1
==> Sources are ready.
okular-backend-mupdf-git-r81.1ba0160-1: parsing pkg list...
==> Making package: okular-backend-mupdf-git r90.95fac96-1 (Mon Oct 30 15:21:32 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'libopenjp2'
--   Found libopenjp2, version 2.5.0
-- Checking for module 'openssl'
--   Found openssl, version 3.1.4
-- Installing in the same prefix as Qt, adopting their path scheme.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MuPDF (missing: MuPDF_THIRD_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindMuPDF.cmake:21 (find_package_handle_standard_args)
  CMakeLists.txt:25 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'okular-backend-mupdf-git-r81.1ba0160-1':
error: packages failed to build: okular-backend-mupdf-git-r81.1ba0160-1

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/{,.}okularGenerator_poppler.so
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.

<deleted-account> commented on 2021-07-15 04:13 (UTC)

[deleted]

<deleted-account> commented on 2021-05-14 05:31 (UTC)

[deleted]

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

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 (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:

    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".