On 9 May 2011 19:31, David C. Rankin <drankinatty(a)suddenlinkmail.com> 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?
--
David C. Rankin, J.D.,P.E.
---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
For additional commands, e-mail:
trinity-devel-help(a)lists.pearsoncomputing.net
Read list messsages on the Web archive:
http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting