LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2022, 08:30 AM   #1
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Rep: Reputation: Disabled
Okular doesn't display xps files


I have two stations, one running slack64 14.2 and the other one slack 32 bits current. On both of them, Okular display a blank page for all xps files.

There are no particular error messages on both.

Slack 64 13.2 : Okular 0.20.3, KDE 4.14.38, XPS backend 0.3.3

Slack current: Okular 21.12.1, KDE 5.90.0, XPS backend 0.3.3

Can anyone read XPS files using Okular?

On my Pop_OS laptop, Evince reads XPS files OK, fortunately.
 
Old 01-22-2022, 09:16 AM   #2
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 338

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Just tested the first example file i found on the Internet: https://example-files.online-convert.com/document/xps/ and it works here
Does it work for you, too? If it does, do you have an example of a not working xps file?
 
Old 01-22-2022, 09:25 AM   #3
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ctrlaltca View Post
Just tested the first example file i found on the Internet: https://example-files.online-convert.com/document/xps/ and it works here
Does it work for you, too? If it does, do you have an example of a not working xps file?
Damn, your example file works perfectly... This is a file that doesn't work:

https://demo.intellique.org/nextclou...5TDkwNswgQG7Y5
 
Old 01-22-2022, 03:35 PM   #4
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware
Posts: 92

Rep: Reputation: 29
Quote:
Originally Posted by wazoox View Post
Damn, your example file works perfectly... This is a file that doesn't work:

https://demo.intellique.org/nextclou...5TDkwNswgQG7Y5
shows blank for me. i'm latest -current
 
Old 01-22-2022, 04:20 PM   #5
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by imitis View Post
shows blank for me. i'm latest -current
Hum... it works fine in Evince 3.36.10 on my Pop_OS machine. I just installed Okular on it (Okular 1.9.3, KDE 5.68.0, XPS backend 0.3.3) and it displays a blank page for both your test file and mine, so it actually fares worse than Okular on Slackware that at least manage to display one of these correctly... I'm afraid that the conclusion is that Okular generally sucks at XPS, and that I should find some other application to see XPS files. Evince is a tough piece though, I'm reluctant to try compiling it. Any other suggestion welcome.

Last edited by wazoox; 01-22-2022 at 04:26 PM.
 
Old 01-24-2022, 10:16 AM   #6
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,097

Rep: Reputation: 766Reputation: 766Reputation: 766Reputation: 766Reputation: 766Reputation: 766Reputation: 766
Compiling evince on Slackware -current is a piece of cake, really, if you use Ponce's buildscript: https://github.com/Ponce/slackbuilds.../office/evince

The buildscript is for evince-40.4 and for that version libhandy is a dependency - Ponce has a buildscript for that as well:
https://github.com/Ponce/slackbuilds...aries/libhandy

However, if you build the latest evince version 41.3 (just change the version number in the buildscript) you won't need to install libhandy first, it will be picked up during the build process.
 
Old 01-24-2022, 02:57 PM   #7
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kgha View Post
Compiling evince on Slackware -current is a piece of cake, really, if you use Ponce's buildscript: https://github.com/Ponce/slackbuilds.../office/evince

The buildscript is for evince-40.4 and for that version libhandy is a dependency - Ponce has a buildscript for that as well:
https://github.com/Ponce/slackbuilds...aries/libhandy

However, if you build the latest evince version 41.3 (just change the version number in the buildscript) you won't need to install libhandy first, it will be picked up during the build process.
Hum, not a good start:

pkg_resources.DistributionNotFound: The 'meson==0.55.3' distribution was not found and is required by the application


I'll try reinstalling meson... But it obviously has more dependancies

Last edited by wazoox; 01-24-2022 at 03:01 PM. Reason: mistake
 
Old 01-24-2022, 03:02 PM   #8
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by wazoox View Post
Hum, not a good start:

Dependency gdk-pixbuf-2.0 found: NO found 2.32.3 but need: '>= 2.40.0'

So that requires replacing an official package with some other slackbuild... Piece of cake, really?
You're on Slackware 14.2, so see here:
http://slackbuilds.org/repository/14.2/office/evince/

Ponce's repository is for Slackware-current.
 
1 members found this post helpful.
Old 01-24-2022, 03:26 PM   #9
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drumz View Post
You're on Slackware 14.2, so see here:
http://slackbuilds.org/repository/14.2/office/evince/

Ponce's repository is for Slackware-current.
Sorry, I did it again on -current, but it's another one that's missing, meson :/ It's not in the ponce slackbuilds either.
OK, so I've installed meson manually using pip3, then:

../meson.build:442: WARNING: ** XPS support is disabled since libgxps (version >= 0.2.1) is needed


D'oh, as I'm installing evince with the sole purpose of displaying XPS, let's look for libgxps in sbopkg using the ponce repo and try again.

Alas, compiling evince fails:
../backend/meson.build:55:7: ERROR: Function does not take positional arguments.


Nothing more in the logs... Gee, I guess I'll try again installing libhandy anyway just in case, then, using sbopkg.

Ghaaa, it fails too:

[169/170] Linking target glade/libglade-handy-1.so
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
libhandy.SlackBuild : ligne 74 : 29710 Abandon "${NINJA:=ninja}"


Well I'm really stuck now. I see there that's it's a general problem with everything Gnome and Meson >= 0.60:

https://github.com/mesonbuild/meson/issues/9441

But I have no frigging idea what is failing and what to edit... where is this "backend/" folder hidden during the build? What creates it?

Last edited by wazoox; 01-24-2022 at 03:34 PM. Reason: more info
 
Old 01-24-2022, 03:32 PM   #10
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by wazoox View Post
Sorry, I did it again on -current, but it's another one that's missing, meson :/ It's not in the ponce slackbuilds either.
OK, so I've installed meson manually using pip3, then
Nope, you're not running -current. meson is part of Slackware-current.

Edit: before going and installing extra stuff, stop and figure out why something isn't working. Stuff on SBo is supposed to work without installing any external dependencies.

Last edited by drumz; 01-24-2022 at 03:34 PM. Reason: Add more info
 
Old 01-24-2022, 03:57 PM   #11
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drumz View Post
Nope, you're not running -current. meson is part of Slackware-current.

Edit: before going and installing extra stuff, stop and figure out why something isn't working. Stuff on SBo is supposed to work without installing any external dependencies.
Ha, meson was masked by an older SBo version (sbopkg ignored the existing, newer version -- I didn't think of that). I've removed the 0.61 one, and installed the official version.
Now the Slackbuild is going on, let's cross fingers...
 
Old 01-24-2022, 04:00 PM   #12
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wazoox View Post
Ha, meson was masked by an older SBo version (sbopkg ignored the existing, newer version -- I didn't think of that). I've removed the 0.61 one, and installed the official version.
Now the Slackbuild is going on, let's cross fingers...
And I have the same failure as when compiling libhandy:

[371/372] Generating org.gnome.Evince.appdata.xml__merge with a custom commandterminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

./evince.SlackBuild : ligne 114 : 658 Abandon "${NINJA:=ninja}"


There's obviously something wrong with "ninja" whatever this command is.
 
Old 01-24-2022, 04:11 PM   #13
wazoox
LQ Newbie
 
Registered: Jun 2021
Location: France
Posts: 27

Original Poster
Rep: Reputation: Disabled
Aaaaand it was again an SBo package of ninja that masked the official one. I've installed the clean version, but it ends badly in a subtly different way:

[371/372] Generating org.gnome.Evince.appdata.xml__merge with a custom commandterminate called after throwing an instance of 'std::length_error'
what(): basic_string::append
 
Old 01-24-2022, 04:17 PM   #14
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I guess it could be your system that is not fully up-to-date.
ninja-1.10.2-x86_64-3 is a stock package here.
libhandy-1.2.3-x86_64-1ponce and evince-40.4-x86_64-1ponce were build one after the other without problem.
evince seems to work ok

At the end of compile time I have :
Code:
[216/216] Generating org.gnome.Evince.appdata.xml__merge with a custom command
[0/1] Installing files.
I guess you need a global :
Code:
upgradepkg slackware/*/*.t?z
or
Code:
slackpkg clean-system
salckpkg install-new
slackpkg upgrade-all
At least I would have at hand a full tree and a bootable media to chroot into system in case something goes south...

Last edited by Tonus; 01-24-2022 at 04:23 PM.
 
Old 01-24-2022, 04:19 PM   #15
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Well I can't help with that specific error. But I just tried building evince in a clean chroot and it built just fine. Installed and tested it out and it seems to work ok. So I'd say it's something on your system.
 
  


Reply

Tags
kde kde5, okular, xps



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Okular bookmarks, annotations lost for renamed PDFs, etc. (Okular 0.16.2, KDE 4.10.2) Geremia Linux - Software 6 10-22-2019 05:27 AM
[SOLVED] Running okular (pdf reader) from an Xfce terminal I get Could not connect to any X display. stf92 Linux - Laptop and Netbook 14 12-07-2018 11:24 AM
[SOLVED] PDF search (Okular/Evince/Xpdf) doesn't work on certain files Ormu Linux - Software 10 12-25-2013 02:33 PM
KDE-core & K Display Manager or LXDE with Okular (KDE app)! LAPIII Linux - Newbie 1 12-30-2011 09:43 PM
Okular doesn't print PDF files? michalng Debian 2 02-21-2010 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration