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?
look at this
http://www.gossamer-threads.com/lists/gentoo/desktop/228795
On 9 May 2011 19:31, David C. Rankin drankinatty@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@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@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
Le Mon, 09 May 2011 18:31:22 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
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...
<bigsnip> I need help sorting both out. Anybody see anything that sticks out above?
Can't you use the non-trinity poppler-qt3 and correct the build error by #include'ing <cstddef> ? It's a gcc-4.6 related error again.
On 05/09/2011 06:41 PM, /dev/ammo42 wrote:
<bigsnip> I need help sorting both out. Anybody see anything that sticks out above?
Can't you use the non-trinity poppler-qt3 and correct the build error by #include'ing<cstddef> ? It's a gcc-4.6 related error again.
Hah! Now we are getting somewhere! On the regular arch build (with the trinity 3.5.12 packages) I was able to build the poppler-qt package.
poppler-qt3-0.16.4-1-x86_64.pkg.tar.xz
The BIG problem this presents is that /opt/qt/include/qvaluelist.h (and the rest of the headers) are owned by Qt3 (which at least for the normal Arch AUR poppler-qt3 - we will need to have Albert rebuild Qt3 enhanced.
For Trnity - I'll try the same thing and let you know. We will probably need to patch all the Qt3 headers for <cstddef>.
On 9 May 2011 20:09, David C. Rankin drankinatty@suddenlinkmail.com wrote:
On 05/09/2011 06:41 PM, /dev/ammo42 wrote:
<bigsnip> I need help sorting both out. Anybody see anything that sticks out above?
Can't you use the non-trinity poppler-qt3 and correct the build error by #include'ing<cstddef> ? It's a gcc-4.6 related error again.
Hah! Now we are getting somewhere! On the regular arch build (with the trinity 3.5.12 packages) I was able to build the poppler-qt package.
poppler-qt3-0.16.4-1-x86_64.pkg.tar.xz
The BIG problem this presents is that /opt/qt/include/qvaluelist.h (and the rest of the headers) are owned by Qt3 (which at least for the normal Arch AUR poppler-qt3 - we will need to have Albert rebuild Qt3 enhanced.
For Trnity - I'll try the same thing and let you know. We will probably need to patch all the Qt3 headers for <cstddef>.
-- David C. Rankin, J.D.,P.E.
Did that link work?
Also if the files are owned by another package, just exclude them from the poppler-qt package.
Calvin Morrison
On 05/09/2011 07:11 PM, Calvin Morrison wrote:
Did that link work?
Also if the files are owned by another package, just exclude them from the poppler-qt package.
Calvin Morrison
Dunno, haven't had time to compare it yet to the gcc46.diff I'm using from the opensuse guys :)
I have a feeling more Qt3 patches will be necessary.
On 9 May 2011 20:20, David C. Rankin drankinatty@suddenlinkmail.com wrote:
On 05/09/2011 07:11 PM, Calvin Morrison wrote:
Did that link work?
Also if the files are owned by another package, just exclude them from the poppler-qt package.
Calvin Morrison
Dunno, haven't had time to compare it yet to the gcc46.diff I'm using from the opensuse guys :)
I have a feeling more Qt3 patches will be necessary.
Ok,
yes, the longer we hold onto qt3 the longer we will end up slaughtering it with loads of patches :)
On 05/09/2011 07:23 PM, Calvin Morrison wrote:
On 9 May 2011 20:20, David C. Rankindrankinatty@suddenlinkmail.com wrote:
On 05/09/2011 07:11 PM, Calvin Morrison wrote:
Did that link work?
Also if the files are owned by another package, just exclude them from the poppler-qt package.
Calvin Morrison
Dunno, haven't had time to compare it yet to the gcc46.diff I'm using from the opensuse guys :)
I have a feeling more Qt3 patches will be necessary.
Ok,
yes, the longer we hold onto qt3 the longer we will end up slaughtering it with loads of patches :)
Let's get a handle on how many we are talking about. Qt3 works very, very well. No need to throw the baby out with the bath water just yet :)
On 05/09/2011 07:09 PM, David C. Rankin wrote:
On 05/09/2011 06:41 PM, /dev/ammo42 wrote:
<bigsnip> I need help sorting both out. Anybody see anything that sticks out above?
Can't you use the non-trinity poppler-qt3 and correct the build error by #include'ing<cstddef> ? It's a gcc-4.6 related error again.
Hah! Now we are getting somewhere! On the regular arch build (with the trinity 3.5.12 packages) I was able to build the poppler-qt package.
poppler-qt3-0.16.4-1-x86_64.pkg.tar.xz
The BIG problem this presents is that /opt/qt/include/qvaluelist.h (and the rest of the headers) are owned by Qt3 (which at least for the normal Arch AUR poppler-qt3 - we will need to have Albert rebuild Qt3 enhanced.
For Trnity - I'll try the same thing and let you know. We will probably need to patch all the Qt3 headers for <cstddef>.
Here is the patch:
--- /opt/qt/include/qvaluelist.h +++ /opt/qt/include/qvaluelist.h 2011-05-09 19:00:30.000000000 -0500 @@ -40,6 +40,7 @@
#ifndef QVALUELIST_H #define QVALUELIST_H +#include <cstddef>
#ifndef QT_H #include "qtl.h"
On 05/09/2011 08:17 PM, David C. Rankin wrote:
On 05/09/2011 07:09 PM, David C. Rankin wrote:
On 05/09/2011 06:41 PM, /dev/ammo42 wrote:
<bigsnip> I need help sorting both out. Anybody see anything that sticks out above?
Can't you use the non-trinity poppler-qt3 and correct the build error by #include'ing<cstddef> ? It's a gcc-4.6 related error again.
Hah! Now we are getting somewhere! On the regular arch build (with the trinity 3.5.12 packages) I was able to build the poppler-qt package.
poppler-qt3-0.16.4-1-x86_64.pkg.tar.xz
The BIG problem this presents is that /opt/qt/include/qvaluelist.h (and the rest of the headers) are owned by Qt3 (which at least for the normal Arch AUR poppler-qt3 - we will need to have Albert rebuild Qt3 enhanced.
For Trnity - I'll try the same thing and let you know. We will probably need to patch all the Qt3 headers for <cstddef>.
Here is the patch:
--- /opt/qt/include/qvaluelist.h +++ /opt/qt/include/qvaluelist.h 2011-05-09 19:00:30.000000000 -0500 @@ -40,6 +40,7 @@
#ifndef QVALUELIST_H #define QVALUELIST_H +#include <cstddef>
#ifndef QT_H #include "qtl.h"
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Hmm..,
This is basically what the gcc46.diff from Robert does. It looks like it wasn't being fully applied in my PKGBUILD - I'll have to look into that :(
On 05/10/2011 08:14 AM, David C. Rankin wrote:
Hmm..,
This is basically what the gcc46.diff from Robert does. It looks like it wasn't being fully applied in my PKGBUILD - I'll have to look into that :(
AARGH! damn! I see what happened. My Qt3 PKGBUILD got overwritten and it wiped out the application of the gcc46.diff patch... Sheesh...
On 05/10/2011 08:17 AM, David C. Rankin wrote:
Hmm..,
This is basically what the gcc46.diff from Robert does. It looks like it wasn't being fully applied in my PKGBUILD - I'll have to look into that :(
AARGH! damn! I see what happened. My Qt3 PKGBUILD got overwritten and it wiped out the application of the gcc46.diff patch... Sheesh...
Nope -- that wasn't the case either - it was being correctly applied. (I was looking at the old 'PKGBUILD-qt3' instead of PKGBUILD-qt3-trinity'. It's there in what I uploaded to trinitydesktop.org (See):
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
Hmmm... More investigation required.
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Baho,
We need to blend your patch with this one:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
On 05/10/2011 08:40 AM, David C. Rankin wrote:
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Baho,
We need to blend your patch with this one:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
Here is what I come up with (do you see anything wrong with doing it this way?):
diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qmap.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-05-10 08:47:27.000000000 -0500 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif @@ -107,7 +108,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; #else typedef int difference_type; #endif @@ -223,7 +224,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; #else typedef int difference_type; #endif @@ -604,7 +605,7 @@ typedef value_type& reference; typedef const value_type& const_reference; #ifndef QT_NO_STL - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; #else typedef int difference_type; #endif diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluelist.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-05-10 08:46:46.000000000 -0500 @@ -50,6 +50,7 @@ #ifndef QT_NO_STL #include <iterator> #include <list> +#include <cstddef> #endif
//#define QT_CHECK_VALUELIST_RANGE diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluevector.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluevector.h 2011-05-10 08:46:46.000000000 -0500 @@ -244,7 +244,7 @@ typedef const value_type& const_reference; typedef size_t size_type; #ifndef QT_NO_STL - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; #else typedef int difference_type; #endif
On 05/10/2011 09:05 AM, David C. Rankin wrote:
On 05/10/2011 08:40 AM, David C. Rankin wrote:
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Baho,
We need to blend your patch with this one:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
Here is what I come up with (do you see anything wrong with doing it this way?):
diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qmap.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-05-10 08:47:27.000000000 -0500 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif @@ -107,7 +108,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -223,7 +224,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -604,7 +605,7 @@ typedef value_type& reference; typedef const value_type& const_reference; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluelist.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-05-10 08:46:46.000000000 -0500 @@ -50,6 +50,7 @@ #ifndef QT_NO_STL #include <iterator> #include <list> +#include <cstddef> #endif
//#define QT_CHECK_VALUELIST_RANGE diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluevector.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluevector.h 2011-05-10 08:46:46.000000000 -0500 @@ -244,7 +244,7 @@ typedef const value_type& const_reference; typedef size_t size_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif
UUGH! I killed Qt3.... After adding the qmap.h patch I get a Qt3 symbol lookup error I don't even recognize:
../../../include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic -L /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/plugins listvieweditor.ui -i listvieweditor.h -o listvieweditor.cpp /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic: symbol lookup error: /opt/trinity/lib/libkdecore.so.4: undefined symbol: _ZN7KGlobal20deleteStaticDeletersEv make[4]: *** [listvieweditor.cpp] Error 127 make[4]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer/designer' make[3]: *** [sub-designer] Error 2 make[3]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools' make[1]: *** [sub-tools] Error 2 make[1]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b' make: *** [init] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
It has got to be the qmap.h patch, because I've been using the gcc46.diff without issue and all I did was ass the qmap.h <cstddef> include based on Baho's suggestion :)
Le Tue, 10 May 2011 10:46:57 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
On 05/10/2011 09:05 AM, David C. Rankin wrote:
On 05/10/2011 08:40 AM, David C. Rankin wrote:
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Baho,
We need to blend your patch with this one:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
Here is what I come up with (do you see anything wrong with doing it this way?):
diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qmap.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-05-10 08:47:27.000000000 -0500 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif @@ -107,7 +108,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -223,7 +224,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -604,7 +605,7 @@ typedef value_type& reference; typedef const value_type& const_reference; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluelist.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-05-10 08:46:46.000000000 -0500 @@ -50,6 +50,7 @@ #ifndef QT_NO_STL #include <iterator> #include <list> +#include <cstddef> #endif
//#define QT_CHECK_VALUELIST_RANGE diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluevector.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluevector.h 2011-05-10 08:46:46.000000000 -0500 @@ -244,7 +244,7 @@ typedef const value_type& const_reference; typedef size_t size_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif
UUGH! I killed Qt3.... After adding the qmap.h patch I get a Qt3 symbol lookup error I don't even recognize:
It has a smell of ABI break: does removing Trinity libraries and rebuilding all packages help ? BTW, the header patch doesn't seem to change the ABI : =========== dd@darkstar:/tmp$ g++ -c -g test.cpp dd@darkstar:/tmp$ g++ -c -g test2.cpp dd@darkstar:/tmp$ nm test.o 0000000000000079 t _GLOBAL__I_main 0000000000000039 t _Z41__static_initialization_and_destruction_0ii U _ZNSolsEl U _ZNSt8ios_base4InitC1Ev U _ZNSt8ios_base4InitD1Ev U _ZSt4cout 0000000000000000 b _ZStL8__ioinit U __cxa_atexit U __dso_handle 0000000000000000 T main dd@darkstar:/tmp$ nm test2.o 0000000000000079 t _GLOBAL__I_main 0000000000000039 t _Z41__static_initialization_and_destruction_0ii U _ZNSolsEl U _ZNSt8ios_base4InitC1Ev U _ZNSt8ios_base4InitD1Ev U _ZSt4cout 0000000000000000 b _ZStL8__ioinit U __cxa_atexit U __dso_handle 0000000000000000 T main dd@darkstar:/tmp$ cat test.cpp #include <cstddef> #include <iostream> int main() { int a,b; std::ptrdiff_t c=&b-&a; std::cout << c; return 0; } dd@darkstar:/tmp$ cat test2.cpp //#include <cstddef> #include <iostream> int main() { int a,b; ptrdiff_t c=&b-&a; std::cout << c; return 0; } ============ I googled the mangled name and obtained few results: http://old.nabble.com/Bug-434590%3A-twinkle%3A-Crashes-on-every-call-when-us... http://lists.altlinux.org/pipermail/devel/2010-March/181000.html (in Russian).
../../../include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic -L /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/plugins listvieweditor.ui -i listvieweditor.h -o listvieweditor.cpp /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic: symbol lookup error: /opt/trinity/lib/libkdecore.so.4: undefined symbol: _ZN7KGlobal20deleteStaticDeletersEv make[4]: *** [listvieweditor.cpp] Error 127 make[4]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer/designer' make[3]: *** [sub-designer] Error 2 make[3]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools' make[1]: *** [sub-tools] Error 2 make[1]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b' make: *** [init] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
It has got to be the qmap.h patch, because I've been using the gcc46.diff without issue and all I did was ass the qmap.h <cstddef> include based on Baho's suggestion :)
On 05/10/2011 12:07 PM, /dev/ammo42 wrote:
It has a smell of ABI break: does removing Trinity libraries and rebuilding all packages help ?
I'm trying that right now. Arch has an 'archroot' similar to debian that allows you to build in a pristine new build environment. So far it is building away.
If it works -- it points to some weird problem that had develop in libkdecore.so that is causing the symbol lookup error...
I'll try Tim's 3.3.8d once this finishes.
On 05/10/2011 11:46 AM, David C. Rankin wrote:
On 05/10/2011 09:05 AM, David C. Rankin wrote:
On 05/10/2011 08:40 AM, David C. Rankin wrote:
On 05/09/2011 07:27 PM, Baho Utot wrote:
Here is the correct patch...
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 @@ -48,6 +48,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <list> #endif
I am rebuilding qt3 with the correct patch as we speak
Baho,
We need to blend your patch with this one:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3/...
Here is what I come up with (do you see anything wrong with doing it this way?):
diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qmap.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-05-10 08:47:27.000000000 -0500 @@ -50,6 +50,7 @@ #endif // QT_H
#ifndef QT_NO_STL +#include <cstddef> #include <iterator> #include <map> #endif @@ -107,7 +108,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -223,7 +224,7 @@ #endif typedef T value_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif @@ -604,7 +605,7 @@ typedef value_type& reference; typedef const value_type& const_reference; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluelist.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-05-10 08:46:46.000000000 -0500 @@ -50,6 +50,7 @@ #ifndef QT_NO_STL #include <iterator> #include <list> +#include <cstddef> #endif
//#define QT_CHECK_VALUELIST_RANGE diff -Naur --label qt-x11-free-3.3.8b qt-x11-free-3.3.8b qt-x11-free-3.3.8b/src/tools/qvaluevector.h --- qt-x11-free-3.3.8b +++ qt-x11-free-3.3.8b/src/tools/qvaluevector.h 2011-05-10 08:46:46.000000000 -0500 @@ -244,7 +244,7 @@ typedef const value_type& const_reference; typedef size_t size_type; #ifndef QT_NO_STL
- typedef ptrdiff_t difference_type;
- typedef std::ptrdiff_t difference_type;
#else typedef int difference_type; #endif
UUGH! I killed Qt3.... After adding the qmap.h patch I get a Qt3 symbol lookup error I don't even recognize:
../../../include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic -L /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/plugins listvieweditor.ui -i listvieweditor.h -o listvieweditor.cpp /home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/bin/uic: symbol lookup error: /opt/trinity/lib/libkdecore.so.4: undefined symbol: _ZN7KGlobal20deleteStaticDeletersEv make[4]: *** [listvieweditor.cpp] Error 127 make[4]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer/designer' make[3]: *** [sub-designer] Error 2 make[3]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/tools' make[1]: *** [sub-tools] Error 2 make[1]: Leaving directory `/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b' make: *** [init] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
It has got to be the qmap.h patch, because I've been using the gcc46.diff without issue and all I did was ass the qmap.h <cstddef> include based on Baho's suggestion :)
I rebuilt my qt3 and it compiles just fine with my qt.diff patch
I am going to see if it fixes the poppler-qt3 issue.
cp -f "../doc/html/y2k.html" "/build/pkg/usr/qt3/doc/html/" make[2]: Leaving directory `/build/src/qt-x11-free-3.3.8b/src' make[1]: Leaving directory `/build/src/qt-x11-free-3.3.8b' `/build/pkg/usr/qt3/mkspecs/linux-g++/linux-g++' -> `../linux-g++' `/build/pkg/usr/qt3/lib/libqt.so' -> `libqt-mt.so' install: creating directory `/build/pkg/etc' install: creating directory `/build/pkg/etc/profile.d' ==> Tidying install... -> Removing doc files... -> Purging other files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... ==> WARNING: Package contains reference to $srcdir ==> Creating package... -> Generating .PKGINFO file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: qt3 3.3.8b-6 (Tue May 10 00:32:23 UTC 2011)
On 05/10/2011 05:37 PM, Baho Utot wrote:
It has got to be the qmap.h patch, because I've been using the gcc46.diff without issue and all I did was ass the qmap.h <cstddef> include based on Baho's suggestion :)
I rebuilt my qt3 and it compiles just fine with my qt.diff patch
I am going to see if it fixes the poppler-qt3 issue.
cp -f "../doc/html/y2k.html" "/build/pkg/usr/qt3/doc/html/" make[2]: Leaving directory `/build/src/qt-x11-free-3.3.8b/src' make[1]: Leaving directory `/build/src/qt-x11-free-3.3.8b' `/build/pkg/usr/qt3/mkspecs/linux-g++/linux-g++' -> `../linux-g++' `/build/pkg/usr/qt3/lib/libqt.so' -> `libqt-mt.so' install: creating directory `/build/pkg/etc' install: creating directory `/build/pkg/etc/profile.d' ==> Tidying install... -> Removing doc files... -> Purging other files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... ==> WARNING: Package contains reference to $srcdir ==> Creating package... -> Generating .PKGINFO file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: qt3 3.3.8b-6 (Tue May 10 00:32:23 UTC 2011)
Hah!
With the combined gcc46.diff and the qmap,h <cstddef> patches:
make[3]: Entering directory `/build/src/qt-x11-free-3.3.8b/plugins/src/styles' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/build/src/qt-x11-free-3.3.8b/plugins/src/styles' make[2]: Leaving directory `/build/src/qt-x11-free-3.3.8b/plugins/src' make[1]: Leaving directory `/build/src/qt-x11-free-3.3.8b' ==> Tidying install... -> Purging other files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... -> Removing libtool .la files... ==> WARNING: Package contains reference to $srcdir ==> Creating package... -> Generating .PKGINFO file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: trinity-qt3 3.3.8b-1 (Wed May 11 00:30:04 UTC 2011)
-rw-r--r-- 1 nobody nobody 8880732 May 10 19:30 trinity-qt3-3.3.8c-1-x86_64.pkg.tar.xz
There was something in the libkdecore.so that was really mucked things up. Strange....
On 05/10/2011 08:00 PM, David C. Rankin wrote:
I am going to see if it fixes the poppler-qt3 issue.
Did poppler-qt3 build? Mine still failed in the archroot after successful qt3 and pyqt3 builds:
checking for libqt3... no configure: error: in `/build/src/poppler-0.16.4': configure: error: Qt development libraries not found See `config.log' for more details ==> ERROR: A failure occurred in build(). Aborting... Build failed, check /dat_e/david/bld/david/build
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.
Baho,
What I am doing is building kdegraphics without -DWITH_PDF=ON, kpdf works without poppler-qt3.
Because one of the kfile preview plugins requires poppler-qt3
It's not completely needed, but also whenever someone rewrites kpdf (with poppler) it would be needed
Calvin Morrison
On 05/09/2011 07:02 PM, Baho Utot wrote:
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.
That's where I am right now. I wanted to try the -DWITH_PDF=ON to see what additional functionality that provided. I don't know for sure, but I think it might be used for pdf thumbnailing or other ancillary pdf processing functions. The current kpdf works great with kdegraphics built without -DWITH_PDF=ON, so I'm not driving myself crazy over it (I've already done that long ago :)
However - what sucks is I'm the poppler-qt3 maintainer for AUR, but I'm NOT the AUR maintainer of Qt3 - issues.....
That's where I am right now. I wanted to try the -DWITH_PDF=ON to see what additional functionality that provided. I don't know for sure, but I think it might be used for pdf thumbnailing or other ancillary pdf processing functions. The current kpdf works great with kdegraphics built without -DWITH_PDF=ON, so I'm not driving myself crazy over it (I've already done that long ago :)
However - what sucks is I'm the poppler-qt3 maintainer for AUR, but I'm NOT the AUR maintainer of Qt3 - issues.....
Here we go.
1) yes it is the thumbnailing plugin that it is used for, nothing else, unfortunately if you disable it, you loose all of your kfile-plugins.
2) make your own package, like trinity-qt3 ( i think i own that one, but you can have it) that way you can muck around with it, and give it what we need.
On 05/09/2011 07:32 PM, Calvin Morrison wrote:
That's where I am right now. I wanted to try the -DWITH_PDF=ON to see what additional functionality that provided. I don't know for sure, but I think it might be used for pdf thumbnailing or other ancillary pdf processing functions. The current kpdf works great with kdegraphics built without -DWITH_PDF=ON, so I'm not driving myself crazy over it (I've already done that long ago :)
However - what sucks is I'm the poppler-qt3 maintainer for AUR, but I'm NOT the AUR maintainer of Qt3 - issues.....
Here we go.
- yes it is the thumbnailing plugin that it is used for, nothing
else, unfortunately if you disable it, you loose all of your kfile-plugins.
- make your own package, like trinity-qt3 ( i think i own that one,
but you can have it) that way you can muck around with it, and give it what we need.
I should have time to try the rebuild with Baho's patch and then see if kdegraphics will build with -DWITH_PDF=ON. If so, we are in good shape.
Once we get a consistent set of patches for Qt3 to work with gcc 4.6, things should be stable for a while.