Hi there,

Im looking into embedding a pdf into a QT application using poppler-qt.

As a test I tried building the test-poppler-qt4.cpp distributed in the
poppler source tarball qt4/tests.

Here is my project file:
---8<---
######################################################################
# Automatically generated by qmake (2.01a) Thu Oct 11 12:41:23 2007
######################################################################

TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
INCLUDEPATH += /usr/local/include/poppler
unix:LIBS += -lpoppler-qt4 -lpoppler -lpoppler-glib

# Input
SOURCES += test-poppler-qt4.cpp
---8<---

And build:

---8<---
$ qmake4 && make
g++ -pthread -o poppler test-poppler-qt4.o    -L/lib
-L/usr/local/lib/qt4 -lpoppler-qt4 -lpoppler -lpoppler-glib -lQtGui
-L/usr/local/lib/qt4 -L/usr/local/lib -L/usr/local/lib/mysql -L/lib
-L/usr/X11R6/lib -lpng -lSM -lICE -pthread -pthread -lXi -lXrender
-lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext
-lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lglib-2.0 -lintl
-liconv
/usr/local/lib/libpoppler.so.2.0: warning: vsprintf() is often
misused, please use vsnprintf()
/usr/local/lib/libpoppler.so.2.0: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/local/lib/libpoppler.so.2.0: warning: sprintf() is often misused,
please use snprintf()
/usr/X11R6/lib/libICE.so.8.1: warning: strcat() is almost always
misused, please use strlcat()
/usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
`ArthurOutputDev::startDoc(XRef*)'
/usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
`ArthurOutputDev::~ArthurOutputDev [in-charge]()'
/usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
`ArthurOutputDev::ArthurOutputDev[in-charge](QPainter*)'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home1/eddlocal/poppler (line 92 of Makefile).
---8<---

The header for AuthurOutputDev is not installed for some reason, but
that is not what this error suggests. This is a linker error.

Can someone enlighten me?

PS also the poppler port is a bit out of date. Maybe this is fixed in
newer versions.


-- 
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett

Reply via email to