Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zathura with mupdf backend cannot load html src images #78

Open
h9j6k opened this issue Oct 24, 2024 · 6 comments
Open

zathura with mupdf backend cannot load html src images #78

h9j6k opened this issue Oct 24, 2024 · 6 comments

Comments

@h9j6k
Copy link

h9j6k commented Oct 24, 2024

Hello,

Thanks for your great work!

I compiled zathura with mupdf backend on debian 12. With mupdf-gl/x11, epub books can be loaded without problems except for the epub 3.0 warning, pictures are shown. However with zathura-mupdf, images are not shown. Error log is attached.

$ zathura The\ Secret\ Lives\ of\ Numbers.epub 
info: Opening plain database via sqlite backend.
info: No plain database available. Continuing with sqlite database.
warning: unknown epub version: 3.0
warning: html: cannot load image src='../images/9780063206076_Cover.jpg'
warning: html: cannot load image src='../images/tit.jpg'
warning: html: cannot load image src='../images/rt2.jpg'
warning: html: cannot load image src='../images/f002-01.jpg'
warning: html: cannot load image src='../images/f007-01.jpg'
warning: html: cannot load image src='../images/f010-01.jpg'
...

Any ideas how can I compile zathura to fix this?

Thanks.

@sebastinas
Copy link
Member

We'll probably need an epub to reproduce and fix this. As always with the mupdf plugin, help is greatly appreciated.

@sebastinas sebastinas transferred this issue from pwmt/zathura Nov 5, 2024
@h9j6k
Copy link
Author

h9j6k commented Nov 15, 2024

We'll probably need an epub to reproduce and fix this. As always with the mupdf plugin, help is greatly appreciated.

Can you try the epub file attached? (Just changed extention zip <--> epub) It will produce an error saying epub 3.0 something and cannot load src image. The original epub I used in the first post is too big to upload here.
Kairos.en.zip

@luwawaesperanca
Copy link

Greetings, I have been trying to install mupdf, as a backend for zathura, but when installing the zathura-pdf-mupdf plugin, the following error appears, preventing its full operation. I would like your help.
I have it installed via source code:
mupdf 1.25.2
zathura 0.5.10
zathura-pdf-mupdf 0.4.4

Error I'm getting:
lesperanca@tux:~/Downloads/zathura-pdf-mupdf-0.4.4$ meson build/
The Meson build system
Version: 1.0.1
Source dir: /home/lesperanca/Downloads/zathura-pdf-mupdf-0.4.4
Build dir: /home/lesperanca/Downloads/zathura-pdf-mupdf-0.4.4/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.4.4
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency zathura found: YES 0.5.10
Run-time dependency girara-gtk3 found: YES 0.4.5
Run-time dependency glib-2.0 found: YES 2.74.6
Run-time dependency cairo found: YES 1.16.0
Dependency mupdf found: NO found 1.19.0 but need: '>=1.25.2'
Found CMake: /usr/bin/cmake (3.25.1)
Run-time dependency mupdf found: NO (tried pkgconfig and cmake)
Library mupdf-third found: YES
Has header "mupdf/fitz/version.h" : YES
Has header "mupdf/fitz.h" : YES
Has header "mupdf/pdf.h" : YES
Library mupdf found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Build targets in project: 1

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as meson [options] instead of meson setup [options] is ambiguous and deprecated.

@h9j6k

@sebastinas
Copy link
Member

You still need to run ninja to build it and install it. There is no error as far as I can see.

@luwawaesperanca
Copy link

This error that appears about the installed plugin, I don't know how to solve it:
lesperanca@tux:~/Documentos$ zathura -d “DevOps in practice - reliable and automated software delivery - Casa do Codigo.pdf”
error: Could not load plugin '/usr/local/lib/x86_64-linux-gnu/zathura/libpdf-mupdf.so' (/usr/local/lib/x86_64-linux-gnu/zathura/libpdf-mupdf.so: undefined symbol: js_tointeger).
warning: Found no plugins. Please install at least one plugin.
error: Could not create 'DevOps in practice - reliable and automated software delivery - Casa do Codigo.pdf': Not a directory
info: Opening plain database via sqlite backend.
info: No plain database available. Continuing with sqlite database.
error: Could not open database: DevOps in practice - reliable and automated software delivery - Casa do Codigo.pdf/bookmarks.sqlite

error: Unable to initialize database. Bookmarks won't be available.

@sebastinas
Copy link
Member

Your build is broken: undefined symbol js_toinger. But this is completely unrelated to the issue in question.

Also, -d is used to specify the data directory which explains all the other errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants