Re: Qt libraries allegedly not found


Subject: Re: Qt libraries allegedly not found
From: cdowns (cdowns@skillsoft.com)
Date: Mon Nov 19 2001 - 12:37:29 MST


Make sure tou have added the $PATH /usr/lib to /etc/ld.so.conf and then run ldconfig.

~>D

Ludwig wrote:

> Whenever I configure anything that requires Qt, the configure script can't find the Qt libraries, even when I specifically tell it where they are with --with-qt-dir=[path] or --with-qt-libraries=[path]. $QTDIR is set correctly, I have all the qt-2.3.1-3 packages installed including qt-devel-2.3.1-3, and I have symlinks named "qt" and "qt2" in /usr/lib pointing to /usr/lib/qt-2.3.1.
>
> The error message claims that the libraries aren't found. All the includes of conftest.C are in /usr/lib/qt-2.3.1/include/ (except for confdefs.h, which is in the directory with configure) so I don't know what the problem is. Since I'm using KMail to write this, Qt is obviously functioning. Here's the tail of config.log:
>
> configure:5313: checking for Qt
> tried NO
> configure:5472: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -I/usr/lib/qt/include -I/usr/X11R6/include -L/usr/lib/qt/lib -L/usr/X11R6/lib conftest.C -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE 1>&5
> conftest.C: In function `int main()':
> conftest.C:13: warning: unused variable `QStringList*t'
> conftest.C:18: warning: unused variable `int magnolia'
> /tmp/cchICwU7.o: In function `main':
> /tmp/cchICwU7.o(.text+0x1e): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.text+0x80): undefined reference to `QIconView::QIconView(QWidget*, char const*, unsigned)'
> /tmp/cchICwU7.o(.text+0x80): relocation truncated to fit: R_PPC_REL24 QIconView::QIconView(QWidget*, char const*, unsigned)
> /tmp/cchICwU7.o(.text+0x8c): undefined reference to `QIconView::setWordWrapIconText(bool)'
> /tmp/cchICwU7.o(.text+0x8c): relocation truncated to fit: R_PPC_REL24 QIconView::setWordWrapIconText(bool)
> /tmp/cchICwU7.o(.text+0x92): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.text+0xc0): undefined reference to `QString::setLatin1(char const*, int)'
> /tmp/cchICwU7.o(.text+0xc0): relocation truncated to fit: R_PPC_REL24 QString::setLatin1(char
> const*, int)
> /tmp/cchICwU7.o(.text+0xde): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.text+0xe6): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.text+0xf0): undefined reference to `QStringData::deleteSelf()'
> /tmp/cchICwU7.o(.text+0xf0): relocation truncated to fit: R_PPC_REL24 QStringData::deleteSelf()
> /tmp/cchICwU7.o(.text+0xf8): undefined reference to `QIconView::~QIconView()'
> /tmp/cchICwU7.o(.text+0xf8): relocation truncated to fit: R_PPC_REL24 QIconView::~QIconView()
> /tmp/cchICwU7.o(.text+0x12a): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.text+0x130): undefined reference to `QString::makeSharedNull()'
> /tmp/cchICwU7.o(.text+0x130): relocation truncated to fit: R_PPC_REL24 QString::makeSharedNull()
> /tmp/cchICwU7.o: In function `QValueListNode<QString>::QValueListNode()':
> /tmp/cchICwU7.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0xe): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0x1a): undefined reference to `QString::shared_null'
> /tmp/cchICwU7.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0x48): undefined reference to `QString::makeSharedNull()'
> /tmp/cchICwU7.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0x48): relocation truncated
> to fit: R_PPC_REL24 QString::makeSharedNull()
> collect2: ld returned 1 exit status
> configure: failed program was:
> #include "confdefs.h"
> #include <qglobal.h>
> #include <qapplication.h>
> #include <qevent.h>
> #include <qstring.h>
> #include <qstyle.h>
> #include <qiconview.h>
> #if ! (QT_VERSION >= 222)
> #error 1
> #endif
>
> int main() {
> QStringList *t = new QStringList();
> QIconView iv(0);
> iv.setWordWrapIconText(false);
> QString s;
> s.setLatin1("Elvis is alive", 14);
> int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
> return 0;
> }

--
--------------------------------
 Network Security Administrator
     Christopher M Downs
    Skillsoft Corporation
  http://www.skillsoft.com
"you can't point and click your
 way to super cracker status -"
--------------------------------



This archive was generated by hypermail 2a24 : Mon Nov 19 2001 - 12:50:53 MST