[poppler] failure to link against 0.20 or 0.20.1
Mark Summerfield
list at qtrac.plus.com
Fri Jun 15 03:57:28 PDT 2012
Hi,
I have an app that builds fine against poppler 0.18.
But it fails against 0.20 and 0.20.1.
The offending statement is this:
QString action = annotation->window.summary; // Prior to Poppler 0.20
But if I replace it with this and build with 0.20 or 0.20.1:
QString action = annotation->popup().summary(); // After Poppler 0.20
It fails to link:
g++ -m64 -Wl,-O1 -Wl,-rpath,/home/mark/opt/qt480/lib -o viewpdf mainwindow.o scrollarea.o helpform.o aboutform.o main.o moc_mainwindow.o moc_scrollarea.o moc_helpform.o moc_aboutform.o qrc_resources.o -L/home/mark/opt/qt480/lib -lpoppler-qt4 -lenchant -Wl,-rpath -Wl,/home/mark/opt/poppler020/lib -Wl,-L/home/mark/opt/poppler020/lib -lQtGui -L/home/mark/opt/qt480/lib -L/usr/X11R6/lib64 -lQtCore -lpthread
mainwindow.o: In function `MainWindow::getAnnotationDetails(Poppler::Annotation*)':
mainwindow.cpp:(.text+0x90ae): undefined reference to `Poppler::Annotation::popup() const'
mainwindow.cpp:(.text+0x90b9): undefined reference to `Poppler::Annotation::Popup::summary() const'
mainwindow.cpp:(.text+0x90c1): undefined reference to `Poppler::Annotation::Popup::~Popup()'
mainwindow.cpp:(.text+0xa3c9): undefined reference to `Poppler::Annotation::Popup::~Popup()'
collect2: ld returned 1 exit status
make: *** [viewpdf] Error 1
I'm using Qt and my qmake file includes this:
LIBS += -lpoppler-qt4 -lenchant
exists($(HOME)/opt/poppler020/) {
message(Using locally built Poppler library)
INCLUDEPATH += $(HOME)/opt/poppler020/include/poppler/cpp
INCLUDEPATH += $(HOME)/opt/poppler020/include/poppler/qt4
LIBS += -Wl,-rpath -Wl,$(HOME)/opt/poppler020/lib -Wl,-L$(HOME)/opt/poppler020/lib
} else {
exists(/usr/include/poppler/qt4) {
INCLUDEPATH += /usr/include/poppler/cpp
INCLUDEPATH += /usr/include/poppler/qt4
} else {
INCLUDEPATH += /usr/local/include/poppler/cpp
INCLUDEPATH += /usr/local/include/poppler/qt4
}
}
Can anyone advise?
Thanks!
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Programming in Go" - ISBN 0321774639
http://www.qtrac.eu/gobook.html
More information about the poppler
mailing list