Qt Libraries -- ./configure not finding them
Hi all,
I am trying to compile a couple of KDE apps not included in the Debian
collection, and I am running into some trouble. I download and untar/gunzip
the source and then run configure:
$ ./configure --prefix=/usr --with-qt-includes=/usr/include/qt \
--with-qt-libraries=/usr/lib
and lo and behold, it errors out with the following message:
checking for: Qt... configure: error: Qt (>= Qt 2.2.2) (libraries) not
found. Please check your installation!
For more details about this problem, look at the end of config.log.
I think I have the libraries that I need installed:
$ dpkg -l '*qt*' | grep ii
ii libqt-dev 2.3.1-10 Qt GUI development headers, static libraries
ii libqt2 2.3.1-10 Qt GUI Library (runtime version).
This is happening with all the KDE apps I've tried (kdevmon and kdao
specifically, but others as well).
I would appreciate some suggestions. I've tried both "apt-get install
--reinstall" for the libqt packages as well as removing them and reinstalling
them (not fun, since it takes all the KDE packages with it).
Thanks,
Evan Malahy
PS - Here's the offending section of the config.log:
configure:5266: checking for Qt
configure: 5328: /usr/include/qt/qstyle.h
taking that
configure:5427: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions
-fno-check-new -I/usr/include/qt -I/usr/X11R6/include -L/usr/lib
-L/usr/X11R6/lib conftest.C -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM
-lICE 1>&5
/tmp/ccR7Is9E.o: In function `main':
/tmp/ccR7Is9E.o(.text+0x67): undefined reference to
`QIconView::QIconView(QWidget*, char const*, unsigned)'
/tmp/ccR7Is9E.o(.text+0x71): undefined reference to
`QIconView::setWordWrapIconText(bool)'
/tmp/ccR7Is9E.o(.text+0x76): undefined reference to `QString::shared_null'
/tmp/ccR7Is9E.o(.text+0x9b): undefined reference to `QString::setLatin1(char
const*, int)'
/tmp/ccR7Is9E.o(.text+0xb0): undefined reference to `QString::shared_null'
/tmp/ccR7Is9E.o(.text+0xbb): undefined reference to
`QStringData::deleteSelf()'
/tmp/ccR7Is9E.o(.text+0xcd): undefined reference to `QIconView::~QIconView()'
/tmp/ccR7Is9E.o(.text+0xe2): undefined reference to `QString::shared_null'
/tmp/ccR7Is9E.o(.text+0xf1): undefined reference to
`QString::makeSharedNull()'
/tmp/ccR7Is9E.o: In function `QValueListNode<QString>::QValueListNode()':
/tmp/ccR7Is9E.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0x8):
undefined reference to `QString::shared_null'
/tmp/ccR7Is9E.o(.gnu.linkonce.t._ZN14QValueListNodeI7QStringEC1Ev+0x21):
undefined
reference to `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;
}
Reply to: