qpdfview

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#1 by rych » 01 Aug 2021, 07:29

I've tried to build a qpdfview-0.4.18 module for 5.0rc3 64 OpenBox. I use https://pkgs.org/ openSUSE Tumbleweed which seemed to have all the packages needed, then rpm2xzm and activated each module

Code: Select all

poppler-21.07.0-x86_64-1.xzm -- this one from getpkg
libpoppler-qt5-1-21.07.0-6.2.x86_64.xzm
qpdfview-0.4.18-2.9.x86_64.xzm
qpdfview-plugin-pdf-0.4.18-2.9.x86_64.xzm
root@porteus:~# qpdfview 
qpdfview: error while loading shared libraries: libQt5Sql.so.5: cannot open shared object file: No such file or directory
Therefore the qt5-base-5.15.2-x86_64_9-alldesktops.xzm that I already had isn't enough, so I deactivated it and had getpkg build me a 100M(!) qt5-5.15.2-x86_64-10.xzm

Finally here's the nasty problem:

Code: Select all

root@porteus:~# qpdfview 
Segmentation fault
root@porteus:~# 
I wouldn't know how to solve that. Same error if I just activate 2 modules qt5-5.15.2-x86_64-10.xzm and qpdfview-0.4.18-2.9.x86_64.xzm), so poppler or plugin-pdf don't seem to be relevant for this error. Could someone validate my method of making this module, or maybe suggest a better one?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#2 by ncmprhnsbl » 02 Aug 2021, 08:06

rych wrote:
01 Aug 2021, 07:29
qpdfview: error while loading shared libraries: libQt5Sql.so.5:
looks like i got a bit heavy handed with the stripping.
have uploaded new bundle: qt5-5.15.2-x86_64_10-alldesktops.xzm (including that lib)
and here's qpdfview: qpdfview-qt5-0.4.1-8-x86_64-openbox.xzm
includes:

Code: Select all

poppler-21.07.0-x86_64-1.txz
qpdfview-qt5-0.4.18-x86_64-1_ncm.tgz
xcb-util-image-0.4.0-x86_64-3.txz
xcb-util-keysyms-0.4.0-x86_64-3.txz
xcb-util-renderutil-0.3.9-x86_64-3.txz
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#3 by rych » 03 Aug 2021, 07:59

ncmprhnsbl, using your new modules, qpdfview now starts successfully - thank you

Code: Select all

qt5-base-5.15.2-x86_64_10-alldesktops.xzm
qpdfview-qt5-0.4.1-8-x86_64-openbox.xzm
.tgz extension tells me you must have built them from source?

Also I already have the following modules (common?) that came as dependencies with qtfm-6.2.0-x86_64-1_ncm.xzm

Code: Select all

xcb-util-image-0.4.0-x86_64-3.xzm
xcb-util-keysyms-0.4.0-x86_64-3.xzm
xcb-util-renderutil-0.3.9-x86_64-3.xzm
I guess it's no problem to have same modules have an overlap? Still, since they're included in your qpdfview module which I'll always activate anyway, removing them as standalone modules doesn't seem to break qtfm.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#4 by rych » 25 Sep 2021, 13:28

ncmprhnsbl, I'm sorry to bother you again, but unfortunately I'm struggling to make qpdfview-qt5-0.4.1-8-x86_64-openbox.xzm perform a crucial function -- forward search, as in https://www.mankier.com/1/qpdfview
qpdfview --unique foobar.pdf#src:foobar.tex:42:0

opens or refreshes "foobar.pdf" jumping to and highlighting the position that corresponds to line 42 of the source file "foobar.tex".
The window flickers when I issue that command but will not move from the top line.

First of all could we please fix the Sql issue: see the suspicious messages we get if we just

Code: Select all

root@porteus:~# qpdfview
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
QSqlError("", "Driver not loaded", "Driver not loaded")
QSqlError("", "Driver not loaded", "Driver not loaded")
QSqlError("", "Driver not loaded", "Driver not loaded")
QSqlError("", "Driver not loaded", "Driver not loaded")
Oh, but we'd better have that QSQLITE then. That's why my tabs aren't restored either, quoting the same page:
Persitent state like per-file settings, bookmarks and tabs is stored in an SQLite database usually located at

"~/.local/share/data/qpdfview/qpdfview".
-- that folder stays empty currently

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#5 by ncmprhnsbl » 25 Sep 2021, 22:32

:D.. looks like i neglected to include the sql plugins along with the main lib..
qt5-sql-plugins-x86_64.xzm should provide what you need, version mismatch notwithstanding..
will fix in future qt5 modules..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#6 by rych » 26 Sep 2021, 04:56

ncmprhnsbl, Indeed upon activation of qt5-sql-plugins-x86_64.xzm :

Code: Select all

root@porteus:~# qpdfview
Cannot mix incompatible Qt library (5.15.3) with this library (5.15.2)
Aborted
I currently have (also yours?) qt5-base-5.15.2-x86_64_10-alldesktops.xzm. I wonder if upgrading it to qt5-base-5.15.3 is worth it and won't break my other Qt apps. Perhaps, better to find the lower version qt5-sql-plugins?

Anyways, appreciate your help and expertise! In the meantime will explore other pdf readers. Cheers,

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#7 by ncmprhnsbl » 26 Sep 2021, 05:31

rych wrote:
26 Sep 2021, 04:56
Indeed upon activation of qt5-sql-plugins-x86_64.xzm ...
what i was afraid might happen... which could have easily been avoided if i was paying proper attention :roll:
have reuploaded, to the same link/name, this time with 5.15.2 version ..
as for qt versions breaking apps, it's a bit hit and miss .. the small stuff like qtfm and qpdfview seem to be pretty tolerant ..
but yeah, i'd stick with you have for the moment and hopefully i'll get some updates out soon..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#8 by rych » 26 Sep 2021, 07:13

ncmprhnsbl, Thanks: that goes through now, tabs are saved between sessions etc., ... and I'm next at my main problem: no forward search.

Code: Select all

qpdfview --unique newfile1.pdf#src:newfile1.tex:100:0
-- doesn't move it past top line 1st page

And the reverse search isn't even an option: in qpdfview Edit - Settings... Modifiers "Open in source editor" is grayed out -- that indicates that this whole facility isn't loaded.

Speaking of things not loaded, some messages are still being logged:

Code: Select all

root@porteus:~# qpdfview
Could not load local plug-in: "/usr/bin/libqpdfview_ps.so"
"The shared library was not found."
Could not load global plug-in: "/usr/lib64/qpdfview/libqpdfview_ps.so"
"Cannot load library /usr/lib64/qpdfview/libqpdfview_ps.so: (libspectre.so.1: cannot open shared object file: No such file or directory)"
Perhaps not related, but could you include that PS plugin also -- it's for .ps files, rarely but may one day be useful, should be a small plugin. Actually, could you include all other optional components, if any, in a hope we'll hit the one that would enable the Forward (and reverse) search? Thanks!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#9 by ncmprhnsbl » 26 Sep 2021, 07:43

from the looks of it, the plugin's there, just needs libspectre and possibly a dep ghostscript (which may other have deps of it's own)
other: djvulibre (i'm referencing: https://archlinux.org/packages/communit ... /qpdfview/ deps list)
the libsynctex only comes in slackware with the full texlive monolith, but from other conversations, i gather you know more about latex stuff than i do :)
these can be got from slackware-current with getpkg ..
if you can let me know what works, i'll rebundle this for you when i get a chance..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#10 by rych » 27 Sep 2021, 03:21

ncmprhnsbl, Thank you:

1. After installing these:

Code: Select all

root@porteus:~# getpkg libspectre
root@porteus:~# getpkg ghostscript
all libqpdfview_ps.so related errors are gone and qpdfview appears capable of handling PS files.

2. I have Texlive installed with SyncTex:

Code: Select all

root@porteus:~# which synctex
/mnt/sda2/portable/texlive/bin/x86_64-linux/synctex
However I don't seem to have any libsynctex.so. Ok, I've installed libsynctex.so -- not sure if it's needed like that -- nothing changed anyway.

More importantly, I got a reply from the qpdfview developer: they want us to check the qmake building rules (provided you built that module from source?), and remove any without_synctex if present,
what you describe means that you build of qpdfview does not include support SyncTeX which is what provides the integration between TeX source and PDF output. (When building from source, this can be disabled explicitly by passing CONFIG+=without_synctex to qmake.)
https://bugs.launchpad.net/qpdfview/+bug/1945089

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#11 by ncmprhnsbl » 27 Sep 2021, 22:58

rych wrote:
27 Sep 2021, 03:21
More importantly, I got a reply from the qpdfview developer: they want us to check the qmake building rules (provided you built that module from source?), and remove any without_synctex if present,
yep, that was the case..
new build uploaded: qpdfview-qt5-0.4.1-8-x86_64-2-openbox.xzm 16.8 mb
md5sum: 5b3faa2bc827c9d47830419323c5bab7
contains:

Code: Select all

ghostscript-9.54.0-x86_64-1.txz
libspectre-0.2.9-x86_64-4.txz
libsynctex-2020.54586-6-x86_64_ncm.txz (split from texlive)
poppler-21.07.0-x86_64-1.txz (just the qt5 lib)
qpdfview-qt5-0.4.18-x86_64-2_ncm.tgz
xcb-util-image-0.4.0-x86_64-3.txz
xcb-util-keysyms-0.4.0-x86_64-3.txz
xcb-util-renderutil-0.3.9-x86_64-3.txz
most of the size is ghostscript..
stuff removed: headers(/usr/include); pkgconfig; docs; man; ghostscript examples,help; all pdfview help except for US-en

AND a fixed version of qt5-base-5.15.2(including sql plugins) uploaded to bundles(use the 'bundles' app to get it)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#12 by rych » 28 Sep 2021, 08:05

It now works beautifully: forward search, reverse search, etc... But first I had to modify your module as follows.

Your module was missing something for pdf. Start from console and go to menu - Edit - Settings. The following message is printed:

Code: Select all

root@porteus:~# qpdfview
Could not load local plug-in: "/usr/bin/libqpdfview_pdf.so"
"The shared library was not found."
Could not load global plug-in: "/usr/lib64/qpdfview/libqpdfview_pdf.so"
"Cannot load library /usr/lib64/qpdfview/libqpdfview_pdf.so: (libpoppler.so.111: cannot open shared object file: No such file or directory)"
From your old module I borrowed some files in the qpdfview-qt5-0.4.1-8-x86_64-openbox/usr/lib64 -- I think only the libpoppler.so.111.0.0 and friends were missing. Thus amended module works.

Thank you so much for your help. I can now move to my next problems -- or maybe even some actual work!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#13 by ncmprhnsbl » 28 Sep 2021, 08:39

rych wrote:
28 Sep 2021, 08:05
I think only the libpoppler.so.111.0.0
ah right, the poppler in rc3 003-openbox is 110.0, hence the mismatch with the poppler-qt5 part.. me not paying attention..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

qpdfview

Post#14 by rych » 09 Oct 2023, 09:22

ncmprhnsbl, Could you update the (official) qpdfview for OpenBox etc. please? I've been successfully using your bundle qpdfview-qt5-0.4.1-8-x86_64-openbox for the past 2 years but since then both qpdfview got updated to 0.5.0 and Porteus is now (thank you) 5.01. slapt-mod (getmod) or pmod don't have it, they are offering the 0.4.18 which we already have.

I could probably replace just the qpdfview binaries inside the old bundle, using https://archlinux.pkgs.org/rolling/chao ... r.zst.html for example, but that feels hacky, as who knows what else needs updating inside this rather large bundle.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

qpdfview

Post#15 by ncmprhnsbl » 10 Oct 2023, 07:28

rych wrote:
09 Oct 2023, 09:22
ncmprhnsbl, Could you update the (official) qpdfview for OpenBox etc. please?
here you go: :dl-lime: qpdfview-qt5-0.5.0-x86_64-openbox.xzm for Porteus-v5.01 18.2 mb
md5sum: 3506fad58b19f31530baaac1fa465ccd
contains:

Code: Select all

ghostscript-9.55.0-x86_64-1.txz
libspectre-0.2.9-x86_64-4.txz
libsynctex-2021.210418-x86_64_ncm.txz  (split from texlive)
poppler-21.12.0-x86_64-2_slack15.0.txz  (just the qt5 lib)
qpdfview-qt5-0.5.0-x86_64-1_ncm.tgz
  • xcb libs left out since they're now in 003-xorg
  • requires the qt5-base bundle from bundles.(hasn't changed since 5.0)
  • was built in the presence of cups, so might have printing support with the appropriate printing module.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply