[PyQt] poppler qt version question

Oguz Yarimtepe comp.ogz at gmail.com
Mon Nov 3 15:04:35 GMT 2008


I was trying to search how can i use pypoppler at my QT application. I
have two question. The first one is whether i can use the pypoppler
current release[1] at my QT application to show pdf files. The example
at its source is for a GTK application. 

Second one i got the below error message when i tried to compile the
poppler qt4 binding which is here:
http://svn.pardus.org.tr/uludag/trunk/pypoppler-qt4

$ make
g++ -c -pipe -fpermissive -fPIC  -O1 -Wall -W -D_REENTRANT -DQT_SHARED
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/usr/include/poppler
-I/usr/qt/4/include -I/usr/qt/4/include/QtXml/ -I/usr/include/python2.5
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/X11R6/include -o
sipQtPopplercmodule.o sipQtPopplercmodule.cpp
g++ -c -pipe -fpermissive -fPIC  -O1 -Wall -W -D_REENTRANT -DQT_SHARED
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/usr/include/poppler
-I/usr/qt/4/include -I/usr/qt/4/include/QtXml/ -I/usr/include/python2.5
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/X11R6/include -o
sipQtPopplerQList.o sipQtPopplerQList.cpp
g++ -c -pipe -fpermissive -fPIC  -O1 -Wall -W -D_REENTRANT -DQT_SHARED
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/usr/include/poppler
-I/usr/qt/4/include -I/usr/qt/4/include/QtXml/ -I/usr/include/python2.5
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/X11R6/include -o
sipQtPopplerPopplerDocument.o sipQtPopplerPopplerDocument.cpp
sipQtPopplerPopplerDocument.cpp: In function ‘PyObject*
meth_Poppler_Document_embeddedFiles(PyObject*, PyObject*)’:
sipQtPopplerPopplerDocument.cpp:772: warning: taking address of
temporary
g++ -c -pipe -fpermissive -fPIC  -O1 -Wall -W -D_REENTRANT -DQT_SHARED
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/usr/include/poppler
-I/usr/qt/4/include -I/usr/qt/4/include/QtXml/ -I/usr/include/python2.5
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/X11R6/include -o
sipQtPopplerPopplerPage.o sipQtPopplerPopplerPage.cpp
sipQtPopplerPopplerPage.cpp: In function ‘PyObject*
meth_Poppler_Page_splashRenderToImage(PyObject*, PyObject*)’:
sipQtPopplerPopplerPage.cpp:73: error: ‘class Poppler::Page’ has no
member named ‘splashRenderToImage’
sipQtPopplerPopplerPage.cpp: In function ‘PyObject*
meth_Poppler_Page_splashRenderToPixmap(PyObject*, PyObject*)’:
sipQtPopplerPopplerPage.cpp:107: error: ‘class Poppler::Page’ has no
member named ‘splashRenderToPixmap’
sipQtPopplerPopplerPage.cpp: In function ‘PyObject*
meth_Poppler_Page_renderToPixmap(PyObject*, PyObject*)’:
sipQtPopplerPopplerPage.cpp:135: error: ‘class Poppler::Page’ has no
member named ‘renderToPixmap’
make: *** [sipQtPopplerPopplerPage.o] Error 1

[1] http://www.gnome.org/~gianmt/pypoppler-0.8.0.tar.gz

Will be happy if someone help.

Thanx.




More information about the PyQt mailing list