I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
Thanks
Le 14/12/2011 01:22, Baho Utot a écrit :
I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
They are in Qt3 library libqt-mt (libqt-mt.so.3.3.8) and headers ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
Did you follow the Trinity Build HowTo?
2011/12/14 Laurent Dard f.couperin@online.fr:
Le 14/12/2011 01:22, Baho Utot a écrit :
I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
They are in Qt3 library libqt-mt (libqt-mt.so.3.3.8) and headers ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
Did you follow the Trinity Build HowTo?
-- Laurent Dard
BTW: is there any way to tell autoconf/autotools where it should look for qt3/tqt? On my system it keeps detecting Qt4 (which is not even present on the system) and searches for tqt4.
On Wednesday 14 December 2011 04:54:56 pm Laurent Dard wrote:
Le 14/12/2011 01:22, Baho Utot a écrit :
I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
They are in Qt3 library libqt-mt (libqt-mt.so.3.3.8) and headers ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
Here is from my build log when running configure
Detected TQt3... checking for pkg-config... /usr/bin/pkg-config checking for pthread_create in -lpthread... yes checking for extra includes... no checking for extra libs... no checking for libz... -lz checking for libpng... -lpng -lz -lm checking for libjpeg6b... no checking for libjpeg... -ljpeg checking for perl... /usr/bin/perl checking for Qt... libraries /opt/trinity/lib, headers /opt/trinity/include using -mt checking for moc... /opt/trinity/bin/moc checking for uic-tqt... /usr/bin/uic-tqt checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if TQt is available... yes checking for tmoc... /usr/bin/tmoc checking for dcopidl... /opt/trinity/bin/dcopidl checking for dcopidl2cpp... /opt/trinity/bin/dcopidl2cpp checking for mcopidl... /opt/trinity/bin/mcopidl checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults
You see from above that it finds the qt headers and libs
Did you follow the Trinity Build HowTo?
cd to package sub dir source /etc/profile.d/qt3.sh cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" make -f "admin/Makefile.common" ./configure prefix=/opt/trinity make make install
Pukes on the make step with multiple link and header errors for example....
libtool: link: g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -o .libs/kmix kmix.la.o -L/opt/trinity/lib ./.libs/libkdeinit_kmix.so /opt/trinity/lib/libkdeui.so /opt/trinity/lib/libkutils.so -lasound -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/opt/trinity/lib .libs/kmixapplet.o: In function `KMixApplet::reportBug()': kmixapplet.cpp:(.text+0x21c): undefined reference to `QDialog::exec()' .libs/kmixapplet.o: In function `KMixApplet::resizeEvent(QResizeEvent*)': kmixapplet.cpp:(.text+0x312): undefined reference to `QWidget::updateGeometry()' .libs/kmixapplet.o: In function `KMixApplet::staticMetaObject()': kmixapplet.cpp:(.text+0x465): undefined reference to `QMetaObject::new_metaobject(char const*, QMetaObject*, QMetaData const*, int, QMetaData const*, int, QMetaProperty const*, int, QMetaEnum const*, int, QClassInfo const*, int)' kmixapplet.cpp:(.text+0x479): undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject*&)' .libs/kmixapplet.o: In function `AppletConfigDialog::staticMetaObject()': kmixapplet.cpp:(.text+0x527): undefined reference to `QMetaObject::new_metaobject(char const*, QMetaObject*, QMetaData const*, int, QMetaData const*, int, QMetaProperty const*, int, QMetaEnum const*, int, QClassInfo const*, int)' kmixapplet.cpp:(.text+0x53b): undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject*&)' .libs/kmixapplet.o: In function `KMixApplet::about()': kmixapplet.cpp:(.text+0x647): undefined reference to `QDialog::exec()' .libs/kmixapplet.o: In function `AppletConfigDialog::activeColors(QColor&, QColor&, QColor&) const': kmixapplet.cpp:(.text+0x81b): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x82f): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x84c): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x85c): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x87a): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x88a): undefined reference to `QColor::operator=(QColor const&)' .libs/kmixapplet.o: In function `AppletConfigDialog::mutedColors(QColor&, QColor&, QColor&) const': kmixapplet.cpp:(.text+0x95b): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x96f): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x98c): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x99c): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x9bd): undefined reference to `QColor::QColor(QColor const&)' kmixapplet.cpp:(.text+0x9cd): undefined reference to `QColor::operator=(QColor const&)' .libs/kmixapplet.o: In function `AppletConfigDialog::AppletConfigDialog(QWidget*, char const*)': kmixapplet.cpp:(.text+0xa9f): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xb23): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xb2f): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xb74): undefined reference to `i18n(char const*)' kmixapplet.cpp:(.text+0xb98): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xba4): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xbe0): undefined reference to `QVBoxLayout::QVBoxLayout(QWidget*, int, int, char const*)' kmixapplet.cpp:(.text+0xc32): undefined reference to `QBoxLayout::addWidget(QWidget*, int, int)' kmixapplet.cpp:(.text+0xc51): undefined reference to `QString::makeSharedNull()' .libs/kmixapplet.o: In function `KMixApplet::preferences()': kmixapplet.cpp:(.text+0xc9d): undefined reference to `QWidget::raise()' kmixapplet.cpp:(.text+0xcfc): undefined reference to `QObject::connect(QObject const*, char const*, QObject const*, char const*)' kmixapplet.cpp:(.text+0xd22): undefined reference to `QObject::connect(QObject const*, char const*, QObject const*, char const*)' .libs/kmixapplet.o: In function `KMixApplet::loadConfig(KConfig*, QString const&)': kmixapplet.cpp:(.text+0xe0a): undefined reference to `QString::QString(char const*)' kmixapplet.cpp:(.text+0xe44): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xe50): undefined reference to `QStringData::deleteSelf()' .libs/kmixapplet.o: In function `KMixApplet::loadConfig()': kmixapplet.cpp:(.text+0xe9c): undefined reference to `kdDebug(int)' kmixapplet.cpp:(.text+0xea2): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xeb8): undefined reference to `kdbgstream::~kdbgstream()' kmixapplet.cpp:(.text+0xece): undefined reference to `KConfigBase::setGroup(char const*)' kmixapplet.cpp:(.text+0xee8): undefined reference to `QString::QString(char const*)' kmixapplet.cpp:(.text+0xf0e): undefined reference to `KConfigBase::readEntry(char const*, QString const&) const' kmixapplet.cpp:(.text+0xf27): undefined reference to `QString::operator=(QString const&)' kmixapplet.cpp:(.text+0xf44): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xf61): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xf98): undefined reference to `KConfigBase::readEntry(char const*, QString const&) const' kmixapplet.cpp:(.text+0xfb1): undefined reference to `QString::operator=(QString const&)' kmixapplet.cpp:(.text+0xfcc): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xfe7): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0x1001): undefined reference to `KConfigBase::readBoolEntry(char const*, bool) const' kmixapplet.cpp:(.text+0x102f): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x1048): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x1070): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x1089): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x10b1): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x10ca): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x10f2): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x110b): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x1133): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x114c): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x1174): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const' kmixapplet.cpp:(.text+0x118d): undefined reference to `QColor::operator=(QColor const&)' kmixapplet.cpp:(.text+0x11a7): undefined reference to `QString::QString(char const*)' kmixapplet.cpp:(.text+0x11d6): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0x1206): undefined reference to `QString::fromUtf8(char const*, int)' kmixapplet.cpp:(.text+0x1219): undefined reference to `QString::operator+=(QString const&)' kmixapplet.cpp:(.text+0x1234): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0x124d): undefined reference to `QChar::null' kmixapplet.cpp:(.text+0x128e): undefined reference to `QString::fromUtf8(char const*, int)' kmixapplet.cpp:(.text+0x12a1): undefined reference to `QString::operator+=(QString const&)' kmixapplet.cpp:(.text+0x12bc): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0x12d5): undefined reference to `QChar::null' kmixapplet.cpp:(.text+0x12f7): undefined reference to `kdbgstream::flush()' kmixapplet.cpp:(.text+0x1314): undefined reference to `kdbgstream::flush()' kmixapplet.cpp:(.text+0x1321): undefined reference to `QString::makeSharedNull()' .libs/kmixapplet.o: In function `KMixApplet::saveConfig(KConfig*, QString const&)': kmixapplet.cpp:(.text+0x1370): undefined reference to `KConfigBase::setGroup(QString const&)' kmixapplet.cpp:(.text+0x13bf): undefined reference to `KConfigBase::writeEntry(char const*, QString const&, bool, bool, bool)' kmixapplet.cpp:(.text+0x13d4): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0x13e0): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0x13fa): undefined reference to `QString::QString(char const*)' kmixapplet.cpp:(.text+0x1430): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0x143c): undefined reference to `QStringData::deleteSelf()' .libs/kmixapplet.o: In function `KMixApplet::saveConfig()':
Le 15/12/2011 01:06, Baho Utot a écrit :
On Wednesday 14 December 2011 04:54:56 pm Laurent Dard wrote:
Le 14/12/2011 01:22, Baho Utot a écrit :
I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
They are in Qt3 library libqt-mt (libqt-mt.so.3.3.8) and headers ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
Here is from my build log when running configure
There must be something wrong in your commands. How did you configure qt3?
checking for Qt... libraries /opt/trinity/lib, headers /opt/trinity/include using -mt checking for moc... /opt/trinity/bin/moc
That's very unusual. Did you really configured qt3 itself with "-prefix=/opt/trinity"? That's probably why the build fails.
Since you installed tqtinterface in /usr, I think qt3 should have been installed in the same place: ./configure -prefix /usr -headerdir /usr/include/qt ... For details, see: http://www.linuxfromscratch.org/blfs/view/svn/x/qt.html http://cblfs.cross-lfs.org/index.php/Qt3
(When installing qt3 in /opt, it is installed in his own directory.)
Your trinity installation should be working at this stage. Does it? Can you run qt programs (designer...)?
checking for uic-tqt... /usr/bin/uic-tqt checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if TQt is available... yes checking for tmoc... /usr/bin/tmoc checking for dcopidl... /opt/trinity/bin/dcopidl checking for dcopidl2cpp... /opt/trinity/bin/dcopidl2cpp checking for mcopidl... /opt/trinity/bin/mcopidl checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults
You see from above that it finds the qt headers and libs
I'm not sure it found something else than references to the directories, with pkg-config. But I didn't look deep in the configure script.
What is the output of those commands? ls -l /opt/trinity/include/qwidget.h ls -l /opt/trinity/lib/libqt-mt.* cat /usr/lib/pkgconfig/tqt.pc cat /opt/trinity/lib/pkgconfig/qt-mt.pc
Can you compile a little program? cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib #include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } EOF
Did you follow the Trinity Build HowTo?
cd to package sub dir source /etc/profile.d/qt3.sh
What is its content?
cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" make -f "admin/Makefile.common" ./configure prefix=/opt/trinity
That's a bit too short, maybe... --sysconfdir=/etc/trinity --disable-rpath --with-extra-libs=/opt/trinity/lib --with-xinerama --enable-closure
(With qt3 in /usr: --with-qt-dir=/usr/share/qt ; --with-qt-includes and --with-qt-libraries may be specified.)
On Thursday 15 December 2011 03:29:14 pm Laurent Dard wrote:
Le 15/12/2011 01:06, Baho Utot a écrit :
On Wednesday 14 December 2011 04:54:56 pm Laurent Dard wrote:
Le 14/12/2011 01:22, Baho Utot a écrit :
I need some help with the autoconf packages.
When building it finds qt3 and tqtinterface but it keeps failing on linking QString and QWidget. So I think it is missing some library. What is weird is that all the libraries are in /opt/trinity/lib and /usr/lib. ldconfig.so.conf has those paths.
What library are these in.
They are in Qt3 library libqt-mt (libqt-mt.so.3.3.8) and headers ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
Here is from my build log when running configure
There must be something wrong in your commands. How did you configure qt3?
./configure -prefix /opt/trinity \ -sysconfdir /etc/qt \ -fast \ -qt-gif \ -system-zlib \ -platform linux-g++ \ -plugin-sql-{mysql,psql,sqlite} \ -plugin-imgfmt-{jpeg,mng,png} \ -system-{libmng,libjpeg,libpng} \ -thread \ -no-exceptions \ -no-nis \ -no-stl \ -no-ipv6 \ -no-nas-sound \ -no-tablet # -cups \ # -sm \
checking for Qt... libraries /opt/trinity/lib, headers /opt/trinity/include using -mt checking for moc... /opt/trinity/bin/moc
That's very unusual. Did you really configured qt3 itself with "-prefix=/opt/trinity"? That's probably why the build fails.
Yes.
Why would the build fail?
I have tried using /usr for everything (entire build from start to finish all packages) and it still failed.
I have tried to stick to the How to docs on trinity, but I have read that everything should be in /opt/trinity except for tqtinterface.
What do you suggest?
I can rebuild all of trinity quite easily, so if I need to change all the prefix(s) I can.
Since you installed tqtinterface in /usr, I think qt3 should have been installed in the same place: ./configure -prefix /usr -headerdir /usr/include/qt ... For details, see: http://www.linuxfromscratch.org/blfs/view/svn/x/qt.html http://cblfs.cross-lfs.org/index.php/Qt3
(When installing qt3 in /opt, it is installed in his own directory.)
Your trinity installation should be working at this stage. Does it?
Yes, I am posting from TDE using kmail (this email)
Can you run qt programs (designer...)?
It opens but it is a mess
checking for uic-tqt... /usr/bin/uic-tqt checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if TQt is available... yes checking for tmoc... /usr/bin/tmoc checking for dcopidl... /opt/trinity/bin/dcopidl checking for dcopidl2cpp... /opt/trinity/bin/dcopidl2cpp checking for mcopidl... /opt/trinity/bin/mcopidl checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults
You see from above that it finds the qt headers and libs
I'm not sure it found something else than references to the directories, with pkg-config. But I didn't look deep in the configure script.
OK
What is the output of those commands? ls -l /opt/trinity/include/qwidget.h
ls -l /opt/trinity/include/qwidget.h -rw-r--r-- 1 root root 34577 Dec 11 16:21 /opt/trinity/include/qwidget.h
ls -l /opt/trinity/lib/libqt-mt.*
ls -l /opt/trinity/lib/libqt-mt.* -rw-r--r-- 1 root root 801 Dec 11 16:21 /opt/trinity/lib/libqt-mt.la -rw-r--r-- 1 root root 784 Dec 11 16:21 /opt/trinity/lib/libqt-mt.prl lrwxrwxrwx 1 root root 17 Dec 11 16:21 /opt/trinity/lib/libqt-mt.so -> libqt-mt.so.3.3.8 lrwxrwxrwx 1 root root 17 Dec 11 16:21 /opt/trinity/lib/libqt-mt.so.3 -> libqt-mt.so.3.3.8 lrwxrwxrwx 1 root root 17 Dec 11 16:21 /opt/trinity/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.8 -rwxr-xr-x 1 root root 7836332 Dec 11 16:21 /opt/trinity/lib/libqt-mt.so.3.3.8
cat /usr/lib/pkgconfig/tqt.pc
cat /usr/lib/pkgconfig/tqt.pc prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include/tqt
tmoc_executable=/usr/bin/tmoc moc_executable=/opt/trinity/bin/moc uic_executable=/opt/trinity/bin/uic
Name: TQt Description: Interface and abstraction library for Qt and Trinity Version: 3.5.13 Libs: -L${libdir} -ltqt -L/opt/trinity/lib -lqt-mt Cflags: -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -I/opt/trinity/include -I${includedir} -include tqt.h
The Libs line looks like it shows libaries in both /usr/lib and /opt/triniy/lib, so it should find both qt3 and tqtinterface correct?
cat /opt/trinity/lib/pkgconfig/qt-mt.pc
cat /usr/lib/pkgconfig/qt-mt.pc
prefix=/opt/trinity exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include qt_config=qt warn_on release incremental link_prl thread nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace inputmethod network canvas table xml opengl sql release dll thread largefile system-mng system-jpeg system-png gif system-zlib bigcodecs x11sm xshape xinerama xcursor xrandr xrender xftfreetype xkb inputmethod dylib create_prl link_prl qt warn_on depend_includepath qmake_cache x11 x11inc create_libtool create_pc moc x11lib
Name: Qt Description: Libqt-mt.so.3.3.8 Library Version: 3.3.8 Libs: -L${libdir} -lqt-mt -L/usr/X11R6/lib -L/usr/X11R6/lib -lz -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread Cflags: -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I${includedir}
Notice that I have qt-mt.pc in /usr/lib/pkgconfig, I moved it there to try to solve this problem.
Can you compile a little program? cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib #include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } EOF
cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib #include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } EOF
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.6-20111125/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.2 20111125 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/cc1plus -quiet -v -I /opt/trinity/include -D_GNU_SOURCE - -quiet -dumpbase - -mtune=generic -march=pentiumpro -auxbase - -version -o /tmp/ccat4q1p.s GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/trinity/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 437f58a575e931cdb258e763fc4b9d9d <stdin>:1:1: error: stray ‘#’ in program <stdin>:1:1: error: expected unqualified-id before ‘-’ token
Did you follow the Trinity Build HowTo?
cd to package sub dir source /etc/profile.d/qt3.sh
What is its content?
cat /etc/profile.d/qt3.sh
export QT_XFT=true QTDIR=/opt/trinity PATH=${QTDIR}/bin:${PATH:=} PATH=${PATH%:} LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH:=} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} LD_LIBRARY_PATH=/lib:/usr/lib:${LD_LIBRARY_PATH} export QTDIR PATH LD_LIBRARY_PATH
cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" make -f "admin/Makefile.common" ./configure prefix=/opt/trinity
That's a bit too short, maybe... --sysconfdir=/etc/trinity --disable-rpath --with-extra-libs=/opt/trinity/lib --with-xinerama --enable-closure
Yes I know it was but I was just trying to get past the compile errors and then I will go back and fix that up
Thank you very much for helping me with this problem.
I am gratefull
Le 15/12/2011 23:37, Baho Utot a écrit :
Why would the build fail?
I'm trying to understand.
Even if your intallation of qt isn't common, it should work. And I can't say for sure that installing it in /usr will solve your problem.
But installing Qt3 in /usr is known to work so it's better to do it this way, I think.
I have tried using /usr for everything (entire build from start to finish all packages) and it still failed.
I have tried to stick to the How to docs on trinity, but I have read that everything should be in /opt/trinity except for tqtinterface.
What do you suggest?
I can rebuild all of trinity quite easily, so if I need to change all the prefix(s) I can.
The dependencies in /usr. The KDE packages in /opt/trinity.
* in /usr: qt3 tqtinterface arts (dbus bindings)
* in /opt/trinity kde*
The web page isn't clear. But it says: "Please note that you can find spec/dsc/PKGBUILD/emerge files at our GIT repositories."
I would add the slackware instructions from Darrell Anderson: http://humanreadable.nfshost.com/sdeg/kde_35x.htm and his build scripts: http://humanreadable.nfshost.com/files/kde-35-buildtree.tar.gz (look at the *.SlackBuild files).
And the instructions from BLFS and CLFS to build KDE3 are still useful for me.
Your trinity installation should be working at this stage. Does it?
Yes, I am posting from TDE using kmail (this email)
Can you run qt programs (designer...)?
It opens but it is a mess
Notice that I have qt-mt.pc in /usr/lib/pkgconfig, I moved it there to try to solve this problem.
That's a known bug in qt3.
"For Qt, pkg-config will look for the file lib/pkgconfig/qt-mt.pc which must be modified if relocating the package. This file is set up correctly by the build process. " http://www.linuxfromscratch.org/blfs/view/svn/x/qt.html
Can you compile a little program? cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib #include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } EOF
cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib #include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } EOF
It can't work: Kmail broke the first line. (But this test seems no more important: your Qt installation is working.)
Maybe this will work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - -I/opt/trinity/include \ -L/opt/trinity/lib
This one will test pkg-config and it *must* work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs qt-mt`
cat /etc/profile.d/qt3.sh
export QT_XFT=true QTDIR=/opt/trinity PATH=${QTDIR}/bin:${PATH:=} PATH=${PATH%:} LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH:=} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} LD_LIBRARY_PATH=/lib:/usr/lib:${LD_LIBRARY_PATH} export QTDIR PATH LD_LIBRARY_PATH
I imagine you have this somewhere:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/trinity/lib/pkgconfig
That's a bit too short, maybe... --sysconfdir=/etc/trinity --disable-rpath --with-extra-libs=/opt/trinity/lib --with-xinerama --enable-closure
Yes I know it was but I was just trying to get past the compile errors and then I will go back and fix that up
I would try to add these flags:
--with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-qt-libraries=${QTDIR}/lib \ --enable-closure \ --disable-rpath
Thank you very much for helping me with this problem.
Unfortunately, it is still a mistery...
On Friday 16 December 2011 08:09:26 am Laurent Dard wrote:
Le 15/12/2011 23:37, Baho Utot a écrit :
Why would the build fail?
I'm trying to understand.
So am I ;)
Even if your intallation of qt isn't common, it should work. And I can't say for sure that installing it in /usr will solve your problem.
But installing Qt3 in /usr is known to work so it's better to do it this way, I think.
I have tried using /usr for everything (entire build from start to finish all packages) and it still failed.
I have tried to stick to the How to docs on trinity, but I have read that everything should be in /opt/trinity except for tqtinterface.
What do you suggest?
I can rebuild all of trinity quite easily, so if I need to change all the prefix(s) I can.
The dependencies in /usr. The KDE packages in /opt/trinity.
in /usr: qt3 tqtinterface arts (dbus bindings)
in /opt/trinity kde*
Ok I will rebuild the dependencies to be in /usr
The web page isn't clear. But it says: "Please note that you can find spec/dsc/PKGBUILD/emerge files at our GIT repositories."
I would add the slackware instructions from Darrell Anderson: http://humanreadable.nfshost.com/sdeg/kde_35x.htm and his build scripts: http://humanreadable.nfshost.com/files/kde-35-buildtree.tar.gz (look at the *.SlackBuild files).
And the instructions from BLFS and CLFS to build KDE3 are still useful for me.
Your trinity installation should be working at this stage. Does it?
Yes, I am posting from TDE using kmail (this email)
Maybe this will work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - -I/opt/trinity/include \ -L/opt/trinity/lib
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.6-20111125/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.2 20111125 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/cc1plus -quiet -v -I /opt/trinity/include -D_GNU_SOURCE - -quiet -dumpbase - -mtune=generic -march=pentiumpro -auxbase - -version -o /tmp/ccHNHtNt.s GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/trinity/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 437f58a575e931cdb258e763fc4b9d9d COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' as --32 -o /tmp/ccSXYdvD.o /tmp/ccHNHtNt.s COMPILER_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtbegin.o -L/opt/trinity/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../.. /tmp/ccSXYdvD.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crtn.o /tmp/ccSXYdvD.o: In function `main': :(.text+0x20): undefined reference to `QApplication::QApplication(int&, char**)' :(.text+0x31): undefined reference to `QApplication::~QApplication()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0xc): undefined reference to `QGList::clear()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x10): undefined reference to `QGList::~QGList()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x14): undefined reference to `QGList::~QGList()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x18): undefined reference to `QPtrCollection::newItem(void*)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x1c): undefined reference to `__cxa_pure_virtual' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x20): undefined reference to `QGList::compareItems(void*, void*)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x24): undefined reference to `QGList::read(QDataStream&, void*&)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x28): undefined reference to `QGList::write(QDataStream&, void*) const' /tmp/ccSXYdvD.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /tmp/ccSXYdvD.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x8): undefined reference to `typeinfo for QPtrCollection' collect2: ld returned 1 exit status
This one will test pkg-config and it *must* work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs qt-mt`
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.6-20111125/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.2 20111125 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/cc1plus -quiet -v -I /opt/trinity/include -D_GNU_SOURCE -D QT_SHARED -D QT_NO_DEBUG -D QT_THREAD_SUPPORT -D _REENTRANT - -quiet -dumpbase - -mtune=generic -march=pentiumpro -auxbase - -version -o /tmp/ccUL67fU.s GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/trinity/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 437f58a575e931cdb258e763fc4b9d9d COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' as --32 -o /tmp/cczzCrOu.o /tmp/ccUL67fU.s COMPILER_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtbegin.o -L/opt/trinity/lib -L/usr/X11R6/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../.. /tmp/cczzCrOu.o -lqt-mt -lz -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crtn.o /usr/bin/ld: /tmp/cczzCrOu.o: undefined reference to symbol 'vtable for __cxxabiv1::__si_class_type_info@@CXXABI_1.3' /usr/bin/ld: note: 'vtable for __cxxabiv1::__si_class_type_info@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status
cat /etc/profile.d/qt3.sh
export QT_XFT=true QTDIR=/opt/trinity PATH=${QTDIR}/bin:${PATH:=} PATH=${PATH%:} LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH:=} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} LD_LIBRARY_PATH=/lib:/usr/lib:${LD_LIBRARY_PATH} export QTDIR PATH LD_LIBRARY_PATH
I imagine you have this somewhere:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/trinity/lib/pkgconfig
No I don't have that as I move all of the *.pc files to /usr/lib/pkgconfig. When I build I do a make DESTDIR=<someplace> then I make a tarball of <someplace> then I do /bin/tar -tf <tarball> |& tee filelist to get a list of files installed from the package. I then look at filelist and fixup the files that should be in another place like the pkgconfig files or the files that go into /etc
I would try to add these flags:
--with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-qt-libraries=${QTDIR}/lib \ --enable-closure \ --disable-rpath
Ok I will try
Thank you very much for helping me with this problem.
Unfortunately, it is still a mistery...
Thanks
On Fri, 16 Dec 2011 09:20:06 -0500 Baho Utot baho-utot@columbus.rr.com wrote:
On Friday 16 December 2011 08:09:26 am Laurent Dard wrote:
Le 15/12/2011 23:37, Baho Utot a écrit :
Why would the build fail?
I'm trying to understand.
So am I ;)
Even if your intallation of qt isn't common, it should work. And I can't say for sure that installing it in /usr will solve your problem.
But installing Qt3 in /usr is known to work so it's better to do it this way, I think.
I have tried using /usr for everything (entire build from start to finish all packages) and it still failed.
I have tried to stick to the How to docs on trinity, but I have read that everything should be in /opt/trinity except for tqtinterface.
What do you suggest?
I can rebuild all of trinity quite easily, so if I need to change all the prefix(s) I can.
The dependencies in /usr. The KDE packages in /opt/trinity.
in /usr: qt3 tqtinterface arts (dbus bindings)
in /opt/trinity kde*
Ok I will rebuild the dependencies to be in /usr
The web page isn't clear. But it says: "Please note that you can find spec/dsc/PKGBUILD/emerge files at our GIT repositories."
I would add the slackware instructions from Darrell Anderson: http://humanreadable.nfshost.com/sdeg/kde_35x.htm and his build scripts: http://humanreadable.nfshost.com/files/kde-35-buildtree.tar.gz (look at the *.SlackBuild files).
And the instructions from BLFS and CLFS to build KDE3 are still useful for me.
Your trinity installation should be working at this stage. Does it?
Yes, I am posting from TDE using kmail (this email)
Maybe this will work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - -I/opt/trinity/include \ -L/opt/trinity/lib
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.6-20111125/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.2 20111125 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/cc1plus -quiet -v -I /opt/trinity/include -D_GNU_SOURCE - -quiet -dumpbase - -mtune=generic -march=pentiumpro -auxbase - -version -o /tmp/ccHNHtNt.s GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/trinity/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 437f58a575e931cdb258e763fc4b9d9d COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' as --32 -o /tmp/ccSXYdvD.o /tmp/ccHNHtNt.s COMPILER_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtbegin.o -L/opt/trinity/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../.. /tmp/ccSXYdvD.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crtn.o /tmp/ccSXYdvD.o: In function `main': :(.text+0x20): undefined reference to `QApplication::QApplication(int&, char**)' :(.text+0x31): undefined reference to `QApplication::~QApplication()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0xc): undefined reference to `QGList::clear()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x10): undefined reference to `QGList::~QGList()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x14): undefined reference to `QGList::~QGList()' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x18): undefined reference to `QPtrCollection::newItem(void*)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x1c): undefined reference to `__cxa_pure_virtual' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x20): undefined reference to `QGList::compareItems(void*, void*)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x24): undefined reference to `QGList::read(QDataStream&, void*&)' /tmp/ccSXYdvD.o:(.rodata._ZTV6QGList[vtable for QGList]+0x28): undefined reference to `QGList::write(QDataStream&, void*) const' /tmp/ccSXYdvD.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /tmp/ccSXYdvD.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x8): undefined reference to `typeinfo for QPtrCollection' collect2: ld returned 1 exit status
The linker forgot to link the Qt library.
This one will test pkg-config and it *must* work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs qt-mt`
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.6-20111125/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.2 20111125 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/cc1plus -quiet -v -I /opt/trinity/include -D_GNU_SOURCE -D QT_SHARED -D QT_NO_DEBUG -D QT_THREAD_SUPPORT -D _REENTRANT - -quiet -dumpbase - -mtune=generic -march=pentiumpro -auxbase - -version -o /tmp/ccUL67fU.s GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/trinity/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.2 20111125 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 4.6.2 20111125 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 437f58a575e931cdb258e763fc4b9d9d COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' as --32 -o /tmp/cczzCrOu.o /tmp/ccUL67fU.s COMPILER_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/opt/trinity/include' '-L/opt/trinity/lib' '-L/usr/X11R6/lib' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtbegin.o -L/opt/trinity/lib -L/usr/X11R6/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../.. /tmp/cczzCrOu.o -lqt-mt -lz -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../crtn.o /usr/bin/ld: /tmp/cczzCrOu.o: undefined reference to symbol 'vtable for __cxxabiv1::__si_class_type_info@@CXXABI_1.3' /usr/bin/ld: note: 'vtable for __cxxabiv1::__si_class_type_info@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status
The linker even forgets linking the libstdc++, but not libqt-mt this time. Perhaps this is because of using 'gcc -x c++' instead of 'g++', I don't really know because I always use the latter.
cat /etc/profile.d/qt3.sh
export QT_XFT=true QTDIR=/opt/trinity PATH=${QTDIR}/bin:${PATH:=} PATH=${PATH%:} LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH:=} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} LD_LIBRARY_PATH=/lib:/usr/lib:${LD_LIBRARY_PATH} export QTDIR PATH LD_LIBRARY_PATH
I imagine you have this somewhere:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/trinity/lib/pkgconfig
No I don't have that as I move all of the *.pc files to /usr/lib/pkgconfig. When I build I do a make DESTDIR=<someplace> then I make a tarball of <someplace> then I do /bin/tar -tf <tarball> |& tee filelist to get a list of files installed from the package. I then look at filelist and fixup the files that should be in another place like the pkgconfig files or the files that go into /etc
I would try to add these flags:
--with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-qt-libraries=${QTDIR}/lib \ --enable-closure \ --disable-rpath
Ok I will try
Thank you very much for helping me with this problem.
Unfortunately, it is still a mistery...
Thanks
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 16/12/2011 15:32, /dev/ammo42 a écrit :
The linker forgot to link the Qt library.
Yes. I forgot "-lqt-mt" in my test...
My version of qt is the git one (TQt3), and this test compiles with -ltqt-mt (and QApplication replaced by TQApplication):
echo "#include <qapplication.h> int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ -I/usr/include/qt \ -L/usr/lib64 \ -ltqt-mt
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.6.1/configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-clocale=gnu --enable-languages=c,c++,fortran --disable-libstdcxx-pch --with-system-zlib --enable-bootstrap Thread model: posix gcc version 4.6.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-I' '/usr/include/qt' '-L/usr/lib64' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1plus -quiet -v -I /usr/include/qt -D_GNU_SOURCE - -quiet -dumpbase - -mtune=generic -march=x86-64 -auxbase - -version -o /tmp/ccaji7Kr.s GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/qt /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1 /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/x86_64-unknown-linux-gnu /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/backward /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include /usr/local/include /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a8d7778be5bd8b39de05fe54f871cfea COLLECT_GCC_OPTIONS='-v' '-I' '/usr/include/qt' '-L/usr/lib64' '-mtune=generic' '-march=x86-64' as --64 -o /tmp/ccRcu0Sy.o /tmp/ccaji7Kr.s COMPILER_PATH=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-I' '/usr/include/qt' '-L/usr/lib64' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/crtbegin.o -L/usr/lib64 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../.. /tmp/ccRcu0Sy.o -ltqt-mt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/crtend.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crtn.o
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs qt-mt`
...
The linker even forgets linking the libstdc++, but not libqt-mt this time. Perhaps this is because of using 'gcc -x c++' instead of 'g++', I don't really know because I always use the latter.
Here it works perfectly, on Debian with the stable version and on LFS with the git one.
On LFS:
echo "#include <qapplication.h> int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs tqt-mt`
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.6.1/configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-clocale=gnu --enable-languages=c,c++,fortran --disable-libstdcxx-pch --with-system-zlib --enable-bootstrap Thread model: posix gcc version 4.6.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_TABLET_SUPPORT' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/usr/include/qt' '-L/usr/lib64' '-L/usr/X11R7/lib64' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1plus -quiet -v -I /usr/include/qt -D_GNU_SOURCE -D QT_SHARED -D QT_TABLET_SUPPORT -D QT_NO_DEBUG -D QT_THREAD_SUPPORT -D _REENTRANT - -quiet -dumpbase - -mtune=generic -march=x86-64 -auxbase - -version -o /tmp/cch2LRs9.s GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/qt /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1 /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/x86_64-unknown-linux-gnu /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/backward /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include /usr/local/include /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a8d7778be5bd8b39de05fe54f871cfea COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_TABLET_SUPPORT' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/usr/include/qt' '-L/usr/lib64' '-L/usr/X11R7/lib64' '-mtune=generic' '-march=x86-64' as --64 -o /tmp/ccyoRtIW.o /tmp/cch2LRs9.s COMPILER_PATH=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-D' 'QT_SHARED' '-D' 'QT_TABLET_SUPPORT' '-D' 'QT_NO_DEBUG' '-D' 'QT_THREAD_SUPPORT' '-D' '_REENTRANT' '-I' '/usr/include/qt' '-L/usr/lib64' '-L/usr/X11R7/lib64' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/crtbegin.o -L/usr/lib64 -L/usr/X11R7/lib64 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../.. /tmp/ccyoRtIW.o -ltqt-mt -lz -lGL -lXmu -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/crtend.o /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/crtn.o
Le 16/12/2011 15:20, Baho Utot a écrit :
Ok I will rebuild the dependencies to be in /usr
Good luck. I'll be away for some days or weeks. I hope I'll have good news when reopening this mailing list.
Maybe this will work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - -I/opt/trinity/include \ -L/opt/trinity/lib
It can't work. I forgot "-lqt-mt"...
This one will test pkg-config and it *must* work:
echo "#include <qapplication.h> int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }" | gcc --verbose -x c++ - \ `pkg-config --cflags --libs qt-mt`
...
/usr/lib/libstdc++.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status
There IS something wrong in your installation...
Le 15/12/2011 01:06, Baho Utot a écrit :
kmixapplet.cpp:(.text+0xb98): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xba4): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xbe0): undefined reference to `QVBoxLayout::QVBoxLayout(QWidget*, int, int, char const*)' kmixapplet.cpp:(.text+0xc32): undefined reference to `QBoxLayout::addWidget(QWidget*, int, int)'
QString, QWidget...
What I don't understand is that kmix/kmixapplet.cpp contains TQString, TQWidget...
Are you building the 3.5.13 version?
On Fri, 16 Dec 2011 14:56:18 +0100 Laurent Dard f.couperin@online.fr wrote:
Le 15/12/2011 01:06, Baho Utot a écrit :
kmixapplet.cpp:(.text+0xb98): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xba4): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xbe0): undefined reference to `QVBoxLayout::QVBoxLayout(QWidget*, int, int, char const*)' kmixapplet.cpp:(.text+0xc32): undefined reference to `QBoxLayout::addWidget(QWidget*, int, int)'
QString, QWidget...
What I don't understand is that kmix/kmixapplet.cpp contains TQString, TQWidget...
Are you building the 3.5.13 version?
tqt.h contains #defines which are interpreted by the preprocessor, so for example for TQString, the tqt.h file contains the #define TQString QString so the compiler (which is cc1plus) has QString in its input (and not TQString).
On Friday 16 December 2011 08:56:18 am Laurent Dard wrote:
Le 15/12/2011 01:06, Baho Utot a écrit :
kmixapplet.cpp:(.text+0xb98): undefined reference to `QString::shared_null' kmixapplet.cpp:(.text+0xba4): undefined reference to `QStringData::deleteSelf()' kmixapplet.cpp:(.text+0xbe0): undefined reference to `QVBoxLayout::QVBoxLayout(QWidget*, int, int, char const*)' kmixapplet.cpp:(.text+0xc32): undefined reference to `QBoxLayout::addWidget(QWidget*, int, int)'
QString, QWidget...
What I don't understand is that kmix/kmixapplet.cpp contains TQString, TQWidget...
Are you building the 3.5.13 version?
Yes from the released tarballs.
I build from 3.5.13-complete.tar which contains the tar balls.
After I get a basic tde-3.5.13 installed I will try to build the git versions to pickup all the fixes.
Thanks