Summary: | Okular compiled from sources can't open PDF files | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Carlos Alvarado Martínez <karlitroz2004> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.13 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Carlos Alvarado Martínez
2011-09-15 12:12:36 UTC
CMakeLists.txt of the sources of Okular have this: if(POPPLER_FOUND AND HAVE_POPPLER_0_8) add_subdirectory(poppler) endif(POPPLER_FOUND AND HAVE_POPPLER_0_8) if I erase "AND HAVE_POPPLER_0_8": if(POPPLER_FOUND) add_subdirectory(poppler) endif(POPPLER_FOUND) and try to compile, this is occur: [ 53%] Building CXX object generators/poppler/CMakeFiles/okularGenerator_poppler.dir/generator_pdf.o In file included from /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:46:0: /opt/KDE/build/okular-4.7.1/generators/poppler/config-okular-poppler.h:11:1: error: 'cmakedefine' does not name a type In file included from /opt/KDE/src/okular-4.7.1/generators/poppler/formfields.h:13:0, from /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:48: /usr/include/poppler/qt4/poppler-form.h:133:39: error: '::Page' has not been declared /usr/include/poppler/qt4/poppler-form.h:189:37: error: '::Page' has not been declared /usr/include/poppler/qt4/poppler-form.h:261:39: error: '::Page' has not been declared /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp: In function 'Okular::Action* createLinkFromPopplerLink(const Poppler::Link*)': /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:171:8: warning: enumeration value 'JavaScript' not handled in switch [-Wswitch] /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp: In member function 'virtual const Okular::DocumentInfo* PDFGenerator::generateDocumentInfo()': /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:577:62: warning: 'double Poppler::Document::pdfVersion() const' is deprecated (declared at /usr/include/poppler/qt4/poppler-qt4.h:1072) [-Wdeprecated-declarations] /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp: In member function 'virtual Okular::FontInfo::List PDFGenerator::fontsForPage(int)': /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:702:37: warning: 'bool Poppler::Document::scanForFonts(int, QList<Poppler::FontInfo>*) const' is deprecated (declared at /usr/include/poppler/qt4/poppler-qt4.h:1118) [-Wdeprecated-declarations] /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp: At global scope: /opt/KDE/src/okular-4.7.1/generators/poppler/generator_pdf.cpp:1670:6: warning: unused parameter 'errorText' [-Wunused-parameter] [ 54%] Building CXX object generators/poppler/CMakeFiles/okularGenerator_poppler.dir/formfields.o In file included from /opt/KDE/src/okular-4.7.1/generators/poppler/formfields.cpp:16:0: /opt/KDE/build/okular-4.7.1/generators/poppler/config-okular-poppler.h:11:1: error: 'cmakedefine' does not name a type [ 54%] Building CXX object generators/poppler/CMakeFiles/okularGenerator_poppler.dir/annots.o In file included from /opt/KDE/src/okular-4.7.1/generators/poppler/annots.cpp:18:0: /opt/KDE/build/okular-4.7.1/generators/poppler/config-okular-poppler.h:11:1: error: 'cmakedefine' does not name a type In file included from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qvariant.h:48:0, from /opt/KDE/src/okular-4.7.1/generators/poppler/annots.cpp:13: /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qmetatype.h: In static member function 'static int QMetaTypeId2<T>::qt_metatype_id() [with T = Poppler::Annotation*]': /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qmetatype.h:230:44: instantiated from 'int qMetaTypeId(T*) [with T = Poppler::Annotation*]' /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qvariant.h:573:55: instantiated from 'T qvariant_cast(const QVariant&) [with T = Poppler::Annotation*]' /opt/KDE/src/okular-4.7.1/generators/poppler/annots.cpp:29:95: instantiated from here /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is not a member of 'QMetaTypeId<Poppler::Annotation*>' Okular works perfectly with Poppler 0.16.7 since it is the one i use. I would recommend cleaning the Okular build dir, but you say you already did so, so the only thing i can say is, come over the #okular channel in freenode IRC network and we will give you a hand online to try to see what is failing. (In reply to comment #2) > Okular works perfectly with Poppler 0.16.7 since it is the one i use. I would > recommend cleaning the Okular build dir, but you say you already did so, so the > only thing i can say is, come over the #okular channel in freenode IRC network > and we will give you a hand online to try to see what is failing. Ok, I compile poppler with other method: as root cd popplerxx mkdir build cd build cmake -D CMAKE_INSTALL_PREFIX=/usr .. make make install Only installing in /usr dir poppler has no more problems thanks for all!! |