[poppler] Can't install Poppler

kib2 kib2 at free.fr
Wed Apr 30 11:29:34 PDT 2008


Hi,

I wanted to use poppler (poppler-0.8.1 or the latest 0.8.2) with the 
Qt4.4 R.C, but I can't get it to compile.

My Qt4.4 installation is inside /usr/local/Trolltech/Qt-4.4.0-rc1/include

So, I've tried to build Poppler like this :

1. Configure :
POPPLER_QT4_CFLAGS=-I/usr/local/Trolltech/Qt-4.4.0-rc1/include 
POPPLER_QT4_LIBS="-L/usr/local/Trolltech/Qt-4.4.0-rc1/lib -lQtCore 
-lQtGui -lQtXml" ./configure

2. Now, when I'm trying a 'make', here's what I've got :

blablabla...
moc -i poppler-optcontent.h -o poppler-optcontent.moc
/bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H 
-I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt 
-I/usr/local/Trolltech/Qt-4.4.0-rc1/include    -Wall -Wno-write-strings 
-g -O2 -MT poppler-optcontent.lo -MD -MP -MF 
.deps/poppler-optcontent.Tpo -c -o poppler-optcontent.lo 
poppler-optcontent.cc
  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../poppler -I../.. 
-I../../poppler -I../../qt -I/usr/local/Trolltech/Qt-4.4.0-rc1/include 
-Wall -Wno-write-strings -g -O2 -MT poppler-optcontent.lo -MD -MP -MF 
.deps/poppler-optcontent.Tpo -c poppler-optcontent.cc  -fPIC -DPIC -o 
.libs/poppler-optcontent.o
Dans le fichier inclus à partir de poppler-optcontent.cc:426:
poppler-optcontent.moc:10:25: erreur: qmetaobject.h : Aucun fichier ou 
répertoire de ce type
poppler-optcontent.moc:11:26: erreur: qapplication.h : Aucun fichier ou 
répertoire de ce type
poppler-optcontent.moc:13:34: erreur: private/qucomextra_p.h : Aucun 
fichier ou répertoire de ce type
poppler-optcontent.moc:15:2: erreur: #error "This file was generated 
using the moc from 3.3.7. It"
poppler-optcontent.moc:16:2: erreur: #error "cannot be used with the 
include files from this version of Qt."
poppler-optcontent.moc:17:2: erreur: #error "(The moc has changed too 
much.)"
poppler-optcontent.moc:20: erreur: no «const char* 
Poppler::OptContentModel::className() const" member function declared in 
class «Poppler::OptContentModel"
poppler-optcontent.moc:25: erreur: «QMetaObject* 
Poppler::OptContentModel::metaObj" is not a static member of «class 
Poppler::OptContentModel"
poppler-optcontent.moc:26: erreur: «QMetaObjectCleanUp" does not name a type
poppler-optcontent.moc:29: erreur: redefinition of «static QString 
Poppler::OptContentModel::tr(const char*, const char*)"
poppler-optcontent.h:38: erreur: «static QString 
Poppler::OptContentModel::tr(const char*, const char*)" previously 
defined here
poppler-optcontent.moc: In static member function «static QString 
Poppler::OptContentModel::tr(const char*, const char*)":
poppler-optcontent.moc:31: erreur: «qApp" was not declared in this scope
poppler-optcontent.moc:32: erreur: incomplete type «QApplication" used 
in nested name specifier
poppler-optcontent.moc:34: erreur: cannot convert 
«QString::fromLatin1(const char*, int)(-0x00000000000000001)" from type 
«QString" to type «QString&"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:37: erreur: redefinition of «static QString 
Poppler::OptContentModel::trUtf8(const char*, const char*)"
poppler-optcontent.h:38: erreur: «static QString 
Poppler::OptContentModel::trUtf8(const char*, const char*)" previously 
defined here
poppler-optcontent.moc: In static member function «static QString 
Poppler::OptContentModel::trUtf8(const char*, const char*)":
poppler-optcontent.moc:39: erreur: «qApp" was not declared in this scope
poppler-optcontent.moc:40: erreur: incomplete type «QApplication" used 
in nested name specifier
poppler-optcontent.moc:42: erreur: cannot convert 
«QString::fromUtf8(const char*, int)(-0x00000000000000001)" from type 
«QString" to type «QString&"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:48: erreur: no «QMetaObject* 
Poppler::OptContentModel::staticMetaObject()" member function declared 
in class «Poppler::OptContentModel"
poppler-optcontent.moc: In member function «QMetaObject* 
Poppler::OptContentModel::staticMetaObject()":
poppler-optcontent.moc:50: erreur: «metaObj" was not declared in this scope
poppler-optcontent.moc:52: erreur: no match for call to «(const 
QMetaObject) ()"
poppler-optcontent.moc:53: erreur: «metaObj" was not declared in this scope
poppler-optcontent.moc:53: erreur: «new_metaobject" is not a member of 
«QMetaObject"
poppler-optcontent.moc:62: erreur: «cleanUp_Poppler__OptContentModel" 
was not declared in this scope
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:66: erreur: no «void* 
Poppler::OptContentModel::qt_cast(const char*)" member function declared 
in class «Poppler::OptContentModel"
poppler-optcontent.moc: In member function «void* 
Poppler::OptContentModel::qt_cast(const char*)":
poppler-optcontent.moc:70: erreur: «qt_cast" is not a member of 
«QAbstractItemModel"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:73: erreur: «QUObject" has not been declared
poppler-optcontent.moc:73: erreur: no «bool 
Poppler::OptContentModel::qt_invoke(int, int*)" member function declared 
in class «Poppler::OptContentModel"
poppler-optcontent.moc: In member function «bool 
Poppler::OptContentModel::qt_invoke(int, int*)":
poppler-optcontent.moc:75: erreur: «qt_invoke" is not a member of 
«QAbstractItemModel"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:78: erreur: «QUObject" has not been declared
poppler-optcontent.moc:78: erreur: no «bool 
Poppler::OptContentModel::qt_emit(int, int*)" member function declared 
in class «Poppler::OptContentModel"
poppler-optcontent.moc: In member function «bool 
Poppler::OptContentModel::qt_emit(int, int*)":
poppler-optcontent.moc:80: erreur: «qt_emit" is not a member of 
«QAbstractItemModel"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:84: erreur: no «bool 
Poppler::OptContentModel::qt_property(int, int, QVariant*)" member 
function declared in class «Poppler::OptContentModel"
poppler-optcontent.moc: In member function «bool 
Poppler::OptContentModel::qt_property(int, int, QVariant*)":
poppler-optcontent.moc:86: erreur: «qt_property" is not a member of 
«QAbstractItemModel"
poppler-optcontent.moc: At global scope:
poppler-optcontent.moc:89: erreur: no «bool 
Poppler::OptContentModel::qt_static_property(QObject*, int, int, 
QVariant*)" member function declared in class «Poppler::OptContentModel"
make[3]: *** [poppler-optcontent.lo] Erreur 1
make[3]: quittant le répertoire « 
/home/kib/Bureau/PyQt44/poppler-0.8.1/qt4/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « 
/home/kib/Bureau/PyQt44/poppler-0.8.1/qt4 »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/kib/Bureau/PyQt44/poppler-0.8.1 »
make: *** [all] Erreur 2

I must miss something, but what ?

Thanks for any advice in advance :

Christophe K.



More information about the poppler mailing list