Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No pdf support in okular [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 309
Location: Stockholm, Sweden

PostPosted: Wed Jan 22, 2014 1:58 pm    Post subject: No pdf support in okular [Solved] Reply with quote

After upgrading kde, I am now missing support for pdf in okular.

In fact, I can see that I am missing active-documentviewer_pdf.desktop and okularApplication_pdf.desktop.

The pdf use flag is set, and I have tried as per suggestion in an old thread, to set it to -pdf, re-emerge and then back to pdf again, and re-emerge.
I have also done revdep-rebuild.

Code:
# emerge -va1 okular

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] kde-base/okular-4.12.1:4/4.12  USE="crypt handbook jpeg pdf postscript tiff (-aqua) -chm -debug -djvu -ebook -mobi" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB



Has anyone a suggestion what's going on?


Last edited by vespaman on Thu Jan 23, 2014 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 421
Location: Wales, UK

PostPosted: Wed Jan 22, 2014 9:40 pm    Post subject: Reply with quote

I had this problem, but I can't remember which package I rebuilt to fix it. I would start with app-text/poppler. As you have identified, revdep-rebuild didn't recognise the problem package. If all else fails, you could pass --emptytree in the options to emerge. That will build all the dependencies for okular.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1371

PostPosted: Wed Jan 22, 2014 11:31 pm    Post subject: Reply with quote

@paulj, why should poppler create the missing .desktop file?
It only is a mime problem. But starting

okular some.pdf
is a workaround.
_________________
fun2gen2
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 421
Location: Wales, UK

PostPosted: Thu Jan 23, 2014 6:26 am    Post subject: Reply with quote

Sorry Ulenrich (and vespaman)- I have yet again managed to answer a post without fully taking in the content. I didn't get past the "loss of pdf support" bit. Thanks for pointing that out.

@Vespaman - where are you looking for the .desktop files? I can check here and see if I have those files.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 309
Location: Stockholm, Sweden

PostPosted: Thu Jan 23, 2014 12:37 pm    Post subject: Reply with quote

OK, so starting okular some.pdf does not work, gives me "Cannot find the plugin", so it is not only a mime problem.


The reason I got hooked on the missing files, was that I browsed through the emerge/build output, and found that other plugin .desktop files where installed (e.g. ps), but not pdf.

Code:
jones dap # locate okularApplication_
/usr/share/applications/kde4/okularApplication_comicbook.desktop
/usr/share/applications/kde4/okularApplication_dvi.desktop
/usr/share/applications/kde4/okularApplication_fax.desktop
/usr/share/applications/kde4/okularApplication_fb.desktop
/usr/share/applications/kde4/okularApplication_ghostview.desktop
/usr/share/applications/kde4/okularApplication_kimgio.desktop
/usr/share/applications/kde4/okularApplication_mobi.desktop
/usr/share/applications/kde4/okularApplication_ooo.desktop
/usr/share/applications/kde4/okularApplication_plucker.desktop
/usr/share/applications/kde4/okularApplication_tiff.desktop
/usr/share/applications/kde4/okularApplication_txt.desktop
/usr/share/applications/kde4/okularApplication_xps.desktop
jones dap # locate active-documentviewer_
/usr/share/applications/kde4/active-documentviewer_comicbook.desktop
/usr/share/applications/kde4/active-documentviewer_dvi.desktop
/usr/share/applications/kde4/active-documentviewer_fax.desktop
/usr/share/applications/kde4/active-documentviewer_fb.desktop
/usr/share/applications/kde4/active-documentviewer_ghostview.desktop
/usr/share/applications/kde4/active-documentviewer_kimgio.desktop
/usr/share/applications/kde4/active-documentviewer_ooo.desktop
/usr/share/applications/kde4/active-documentviewer_plucker.desktop
/usr/share/applications/kde4/active-documentviewer_tiff.desktop
/usr/share/applications/kde4/active-documentviewer_txt.desktop
/usr/share/applications/kde4/active-documentviewer_xps.desktop
jones dap #


If doing the same on my (32bit) laptop, I also get the _pdf.desktop. So it seams to me, that the complete pdf plugin is missing from build, and this probably means there's a dep that is broken or not updated.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4404

PostPosted: Thu Jan 23, 2014 12:53 pm    Post subject: Reply with quote

emerge -pv poppler would be nice, too.
And a complete build.log of okular.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 309
Location: Stockholm, Sweden

PostPosted: Thu Jan 23, 2014 2:03 pm    Post subject: Reply with quote

I rebuilt poppler, and then okular again, but no go.


However, I eyeballed the very long build log and found this;
Code:


-- checking for module 'poppler-qt4'
--   package 'poppler-qt4' not found
-- Could not find OPTIONAL package Poppler-Qt4
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- Found LibSpectre: -lspectre 
-- Check Kexiv2 library in local sub-folder...
-- Check Kexiv2 library using pkg-config...
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- Found libkexiv2 release >= 0.2.0
-- Found libkexiv2: /usr/lib64/libkexiv2.so
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.3")
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.5.0")
-- Found JPEG: /usr/lib64/libjpeg.so 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
-- Found QCA2: /usr/lib64/qca2/libqca.so 

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * QImageBlitz - An image effects library
   * KActivities - Activities interface library
   * libspectre - A PostScript rendering library
   * LibKExiv2 - Wrapper around Exiv2 library
   * libTIFF - A library for reading and writing TIFF formatted files,
   * FreeType - A font rendering engine
   * JPEG - A library for reading and writing JPEG image files.
   * ZLib - The Zlib compression library
   * libqmobipocket - A library for reading Mobipocket documents
   * QCA - Qt Cryptographic Architecture (QCA)

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * ActiveApp (0.1 or higher)  <https://projects.kde.org/projects/extragear/base/plasma-mobile>
     Support for developing applications for Plasma Active
   * Poppler-Qt4 (0.12.1 or higher)  <http://poppler.freedesktop.org>
     A PDF rendering library
     Support for PDF files in okular.
   * CHM  <http://www.jedrea.com/chmlib>
     A library for dealing with Microsoft ITSS/CHM format files
     Support CHM files in okular.
   * DjVuLibre (3.5.17 or higher)  <http://djvulibre.djvuzone.org>
     A library for dealing with DjVu formatted files
     Support for DjVu files in okular.
   * libepub  <http://sourceforge.net/projects/ebook-tools>
     A library for reading EPub documents
     Support for EPub documents in Okular.

-----------------------------------------------------------------------------



So I'm missing Poppler-Qt4!

So now I eyeballed poppler build and found an issue while reading QMAKESPEC conf file.

For some reason some QT stuff will not build on my system, since it is using a toolchain for embedded development(!).

This was the problem, so building from outside KDE, all is well again! :D

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum