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()':