Bug 167064 - Okular 4.1 RC1 cannot find pdf and ps plugin
Summary: Okular 4.1 RC1 cannot find pdf and ps plugin
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 09:38 UTC by Verdi March
Modified: 2013-06-19 10:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Verdi March 2008-07-20 09:38:15 UTC
Version:            (using KDE 4.0.98)
Installed from:    SuSE RPMs

The binary provided by opensuse's repository fails to open any pdf files.

$ okular pgitools.pdf
okular(25624)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'

$ okular debugger.ps
okular(25753)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/postscript"'.


Below is my installation setup (listing only packages that I thought are
related to Okular):
  kde4-okular-4.0.99-15.2

  libpoppler-qt4-3-0.8.2-14.1
  libpoppler2-0.6.4-11.2
  libpoppler3-0.8.2-14.1
  poppler-0.5.4-101.4
  poppler-glib-0.5.4-101.4
  poppler-qt-0.5.4-101.4
  poppler-qt4-0.5.4-101.4
  poppler-tools-0.8.2-3.2

  ghostscript-library-8.15.4-3.2
  ghostscript-fonts-other-8.15.4-3.2
  ghostscript-x11-8.15.4-3.2
  ghostscript-fonts-std-8.15.4-3.2

  kdebase4-4.0.99-15.2
  kdebase4-libkonq-4.0.99-15.2
  kdebase4-nsplugin-4.0.99-15.2
  kdebase4-openSUSE-11.1-11.6
  kdebase4-runtime-4.0.99-8.4
  kdebase4-session-4.0.98-8.1
  kdebase4-workspace-4.0.99-29.1
  kdebase4-workspace-branding-openSUSE-11.1-11.6
  kdegraphics4-4.0.99-15.2
  kdelibs4-4.0.99-13.3
  kdelibs4-core-4.0.99-13.3
Comment 1 Verdi March 2008-07-20 09:39:11 UTC
Btw, this is for openSUSE 10.3.
Comment 2 Pino Toscano 2008-07-20 09:42:37 UTC
> The binary provided by opensuse's repository fails to open any pdf files.

Then please report the problem to OpenSUSE. I can do exactly nothing for broken distro packages.
Comment 3 jay 2008-10-10 04:58:56 UTC
I'm getting this same error, from a subversion checkout; my entire kde4 is from svn trunk, except for qt, which is the real qt-4.4.2 release.  I have poppler-0.6.3 (built from source), and it doesn't appear that okular is linked against it.  Could that be an issue?  cmake says that it finds poppler-qt4, so I would assume that it's being used, but I cannot open pdfs.  The two debug lines of interest are:

okular(20796)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/pdf" ,  "okular/Generator"  : returning  0  offers
okular(20796)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'.

Also, probably unrelated, the error message that pops up to tell me that okular cannot open my pdf takes about 30 seconds before I can click on the Ok button.  I'm seeing that a lot with my kde4 setup though, so it's probably not associated with the issue of being unable to open pdfs.
Comment 5 jay 2008-10-21 06:34:55 UTC
Ok, so when kbuildsycoca4 doesn't work, what can I do to continue trying to solve my problem?  In dolphin, the preview of my pdfs works just fine, but I cannot actually view them in okular.  I just wiped out my .kde directory, did full svn up of everything and rebuilt my kde4 system, rebooted, and logged back in to a fresh kde4 environment.  Okular is still not working.
Comment 6 jay 2008-10-21 06:40:12 UTC
As an addendum to the previous response, when I run kbuildsycoca4, I get a lot of lines like

kbuildsycoca4(9190) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/8svx"                                  

Is the undefined mimetype stuff bad?  I'm probably getting around a hundred lines of that, although application/pdf does not appear in that list.
Comment 7 Eric Sandall 2009-04-16 23:18:36 UTC
(In reply to comment #4)
> @jay (comment #3):
> Please read
> http://okular.kde.org/faq.php#OkulartellsmetherearenopluginsinstalledWhatcanIdo

Even with that, Okular is still broken for me:
$ kbuildsycoca4 --noincremental
kbuildsycoca4 running...                                
kbuildsycoca4(22460) KBuildMimeTypeFactory::createEntry: Missing <comment> field in  "/opt/kde4/share/mime/text/plain.xml"                                                                                                                  
kbuildsycoca4(22460) KBuildMimeTypeFactory::createEntry: Missing <comment> field in  "/usr/share/mime/application/x-gip.xml"                                                                                                                
kbuildsycoca4(22460) VFolderMenu::loadDoc: Parse error in  "/home/esandall/.config/menus/applications-merged/wine-Programs-Turbine-Dungeons & Dragons Online - Stormreach.menu" , line  15 , col  43 :  "letter is expected"                
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/kde/ark.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                      
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde/kontactdcop.desktop" is not compliant with XDG standard (missing trailing semicolon).                                            
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/gvim.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                       
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/smplayer.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                     
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/vim.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                        
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/firefox.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                    
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/cacaview.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                   
kbuildsycoca4(22460) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/gcalctool.desktop" is not compliant with XDG standard (missing trailing semicolon).                                                  
kbuildsycoca4(22460)/kdecore (KService) KServicePrivate::init: The desktop entry file  "/opt/kde4/share/applications/kde4/koffice.desktop"  has Type= "Application"  but no Exec line

$ okular 4117172793_1.pdf
okular(20243): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
okular(20243)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'.

$ okular --version
Qt: 4.5.0
KDE: 4.2.2 (KDE 4.2.2)
Okular: 0.8.2

$ find . -name "okular*" -exec rm -rf {} \;
./.kde4/share/config/okularrc
./.kde4/share/config/okularpartrc
./.kde4/share/apps/okular

Still no luck. The issue, at least for me, was popper wasn't built with '--enable-poppler-qt4' before building kdegraphics. Rebuilding poppler correctly fixed this for me.
Comment 8 Rosetzky Cedric 2009-07-20 17:50:04 UTC
I'm having the same problem. I compiled from SVN, so it's not a distro problem. Poppler-qt4 is installed and I did what comment #4 suggests without success.