On 05/09/2011 07:31 PM, David C. Rankin wrote: > All, (Baho and Calvin especially) > > I need to get poppler-qt3 building to enable -DWITH_PDF=ON in > kdegraphics. Right now I have kdegraphics on Arch building with: > > cmake ${srcdir}/${_svnmod} \ > -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \ > -DCMAKE_VERBOSE_MAKEFILE=ON \ > -DQT_VERSION=3 \ > -DCMAKE_CXX_FLAGS="-fpermissive" \ > -DWITH_T1LIB=ON \ > -DWITH_LIBPAPER=ON \ > -DWITH_TIFF=ON \ > -DWITH_OPENEXR=ON \ > -DWITH_PAM=ON \ > -DBUILD_ALL=ON > make > > # -DWITH_PDF=ON \ (waiting on poppler-qt3) > > poppler-qt3 was building a month or so ago, but now I'm stuck. The > regular arch version built up until the gcc 4.6 change (or just a > little before). Now on the regular Arch install it fails with the > following error: > > make[2]: Entering directory > `/home/david/arch/pkg/bld/poppler-qt3/src/poppler-0.16.4/qt' > CXX poppler-document.lo > In file included from /opt/qt/include/qstringlist.h:45:0, > from /opt/qt/include/qcolor.h:46, > from /opt/qt/include/qpixmap.h:46, > from ./poppler-qt.h:33, > from poppler-document.cc:23: > /opt/qt/include/qvaluelist.h:91:13: error: 'ptrdiff_t' does not name a > type > /opt/qt/include/qvaluelist.h:167:13: error: 'ptrdiff_t' does not name > a type > In file included from /opt/qt/include/qstringlist.h:45:0, > from /opt/qt/include/qcolor.h:46, > from /opt/qt/include/qpixmap.h:46, > from ./poppler-qt.h:33, > from poppler-document.cc:23: > /opt/qt/include/qvaluelist.h:427:13: error: 'ptrdiff_t' does not name > a type > make[2]: *** [poppler-document.lo] Error 1 > make[2]: Leaving directory > `/home/david/arch/pkg/bld/poppler-qt3/src/poppler-0.16.4/qt' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/david/arch/pkg/bld/poppler-qt3/src/poppler-0.16.4' > make: *** [all] Error 2 > ==> ERROR: A failure occurred in build(). > Aborting... > > With the trinity-poppler-qt3, I had to add an export adding > /opt/qt/lib/pkgconfig to the PKGBUILD: > > export PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig:${PKG_CONFIG_PATH} > > then the build gets past the configure error of: > > "configure: error: Qt development libraries not found" > > the fatal error now is: > > make[2]: Entering directory > `/home/david/tblds/trinity-poppler-qt3/src/poppler-0.16.4/qt' > CXX poppler-document.lo > CXX poppler-fontinfo.lo > CXX poppler-link.lo > CXX poppler-page.lo > In file included from poppler-page.cc:28:0: > /opt/qt/include/qimage.h: In member function 'bool > QImageTextKeyLang::operator<(const QImageTextKeyLang&) const': > /opt/qt/include/qimage.h:61:61: warning: suggest parentheses around > '&&' within '||' [-Wparentheses] > poppler-page.cc: In member function 'QImage > Poppler::Page::renderToImage(double, double, bool) const': > poppler-page.cc:76:18: warning: variable 'color_ptr' set but not used > [-Wunused-but-set-variable] > CXX poppler-page-transition.lo > CXX poppler-private.lo > CXXLD libpoppler-qt.la > /usr/bin/ld: cannot find -lqt-mt > collect2: ld returned 1 exit status > make[2]: *** [libpoppler-qt.la] Error 1 > make[2]: Leaving directory > `/home/david/tblds/trinity-poppler-qt3/src/poppler-0.16.4/qt' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/david/tblds/trinity-poppler-qt3/src/poppler-0.16.4' > make: *** [all] Error 2 > ==> ERROR: A failure occurred in build(). > Aborting... > > I don't understand how there is a ld error on -lqt-mt -- it's there: > > 18:27 trinity:~/tblds/trinity-poppler-qt3> l /opt/qt/lib/ > <snip> > -rw-r--r-- 1 root root 809 May 5 16:01 libqt-mt.prl > lrwxrwxrwx 1 root root 17 May 5 16:00 libqt-mt.so -> > libqt-mt.so.3.3.8 > lrwxrwxrwx 1 root root 17 May 5 16:00 libqt-mt.so.3 -> > libqt-mt.so.3.3.8 > lrwxrwxrwx 1 root root 17 May 5 16:00 libqt-mt.so.3.3 -> > libqt-mt.so.3.3.8 > -rwxr-xr-x 1 root root 8407876 May 5 16:01 libqt-mt.so.3.3.8 > <snip> > > I need help sorting both out. Anybody see anything that sticks out > above? > There are some bigger issues than just getting it to build... poppler doesn't like poppler-qt3 From the Arch poppler PKGBUILD package_poppler() { pkgdesc="PDF rendering library based on xpdf 3.0" depends=('libjpeg' 'gcc-libs' 'cairo' 'libxml2' 'fontconfig' 'openjpeg' 'lcms' 'poppler-data') conflicts=("poppler-qt3<${pkgver}") cd "${srcdir}/${pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler-{glib,qt4}.pc } In order to get rid of poppler, qt3 will need to be built without cups support as cups drags in poppler. Then one has the problem of building kde3/trinity with cups support again dragging in poppler. What I am doing is building kdegraphics without -DWITH_PDF=ON, kpdf works without poppler-qt3. I am also trying to take poppler from arch and build the qt4 and the qt3 bindings, hopefully I will be successfull.