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.
Hi all,
May Meeting will probably be postponed due to us frozen on cmake.
If anyone still has a topic they *really* need to discuss, or if
anyone wants to help speed up porting,
throw us a message at irc.freenode.net/#trinity-desktop.
PS. If anyone hasn't seen, there's a new trinity website (trinitydesktop.org).
PSS. gcc46 problems are being corrected. For those of you who want to give
Trinity a try at building, make sure you know what gcc version you are using.
AFAIK, Fedora 15+, openSUSE Factory, Arch Linux, and Debian are on this version.
--
later, Robert Xu
Tim, Serghei,
As we find the headers that need to be patched with '#include <cstddef>', can
those be updated in SVN? Is there any reason not? If adding the include won't
impact those building on gcc < 4.6, then I say we do it so that the code is 4.6
compliant and won't need fixing later.
What say the experts?
So far I have:
kdegraphics:
--- kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h
+++ kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h 2011-05-08
11:47:20.000000000 -0500
@@ -56,6 +56,7 @@
#ifndef _GSMARTPOINTER_H_
#define _GSMARTPOINTER_H_
+#include <cstddef>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
They can be handled in the build scripts, but I would like to minimize the
proliferation of patch files and eliminated the if "already applied" then "don't
patch again dummy" fi statements :p
--
David C. Rankin, J.D.,P.E.
Guys,
This is bizarre. I went to build Qt3 this morning, applied a new patch, and
Qt3 wouldn't compile. So I removed the patch just to make sure nothing on the
system had changed to prevent building and -- I STILL GET THE ERROR??
So I went to a box where Qt3 built a day or so ago which still had the Qt3
build directory in place from the last time it built and went to build it again
- I get the same symbol lookup error.
The only thing that changes was qt 4.7.3-1 was pulled in as a dependency of
poppler-qt when I attempted to build kdegraphics with -DWITH_PDF=ON. I thought
Qt3 would build fine with Qt4 installed? Is this something new with the new
version?
The symbol error has me scratching my head. I can't for the life of me figure
out what this error is telling me:
g++ -c -pipe -fPIC -Wall -W -march=i686 -mtune=generic -O2 -pipe -D_REENTRANT
-DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
-I/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../shared -I../uilib -I../../../include
-I/usr/X11R6/include -I.moc/release-shared-mt/ -o ./editfunctions.o
editfunctions.cpp
/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 newform.ui -i
newform.h -o newform.cpp
g++ -c -pipe -fPIC -Wall -W -march=i686 -mtune=generic -O2 -pipe -D_REENTRANT
-DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
-I/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../shared -I../uilib -I../../../include
-I/usr/X11R6/include -I.moc/release-shared-mt/ -o ./newform.o newform.cpp
In file included from ../../../include/qdragobject.h:50:0,
from ../../../include/qiconview.h:51,
from newform.cpp:13:
../../../include/qimage.h: In member function ‘bool
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
../../../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...
I get that it is a uic symbol lookup error:
/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
How does one fix a symbol lookup error like this?
Also why does the Qt3 build even look to /opt/trinity/lib/libkdecore.so.4?
How can I prevent this from happening? This built fine before the Qt4 package
installed. Short of removing Qt4, what is the best way to try and fix this?
The build script is here:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/trinity-qt3…
The Qt3 package built fine when I uploaded it a day ago:
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/master/src/trinity…
Any help appreciated :)
--
David C. Rankin, J.D.,P.E.
Hi all,
Please note that the new NetworkManager release changes the API in a
way that breaks many applications using it.
The Trinity NetworkManager applet should be increased in priority for
cmake so that changes may be made to accommodate this breakage.
--
later, Robert Xu
Baho, Calvin:
I have finished the libcaldav and libcarddav pkgbuilds that include patches
to fix the /usr/include/libcaldav-@VERSION@ problem. These are needed if you
want to build kdepim with:
-DWITH_CALDAV=ON \
-DWITH_CARDDAV=ON \
I am building with the following:
cmake ${srcdir}/${_svnmod} \
-DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DQT_VERSION=3 \
-DWITH_ARTS=ON \
-DWITH_BIRTHDAYS=ON \
-DWITH_CALDAV=ON \
-DWITH_CARDDAV=ON \
-DWITH_EGROUPWARE=ON \
-DWITH_GROUPDAV=ON \
-DWITH_INDEXLIB=ON \
-DWITH_PAM=ON \
-DWITH_SASL=ON \
-DBUILD_ALL=ON
make
--
David C. Rankin, J.D.,P.E.