I'm trying to build a program (kxmleditor) from src.rpm using rpm --rebuild. The process gets as far as "Checking for Qt..." then fails. Below is the relevant (I hope!) portion of my config.log.
Quote:
configure:19179: checking for Qt
configure: 19241: /usr/lib/qt3/lib/include/qstyle.h
configure: 19241: /usr/lib/qt3/lib/qstyle.h
configure: 19241: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
tried /usr/lib/qt3/lib/lib
configure:19346: rm -rf SunWS_cache; g++ -o conftest -O2 -O2 -march=i686 -fno-exceptions -fno-check-new -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/qt3/lib -L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
/root/tmp/ccVUhtn4.o: In function `main':
/root/tmp/ccVUhtn4.o(.text+0x8): undefined reference to `QString::null'
/root/tmp/ccVUhtn4.o(.text+0xd): undefined reference to `QStyleFactory::create(QString const &)'
/root/tmp/ccVUhtn4.o(.text+0x1a): undefined reference to `QCursor::QCursor(int)'
/root/tmp/ccVUhtn4.o(.text+0x24): undefined reference to `QCursor::~QCursor(void)'
collect2: ld returned 1 exit status
configure:19349: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 302)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:19388: error: Qt (>= Qt 3.0.2) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
|
I have /usr/lib/qt3/lib in my PATH, and also setup as $QTDIR. The configure process seems to find Qt (if I'm interpreting PID 19241 correctly...); I can't see why this is failing.
I'm using KDE 3.0.4 stable. Qt is 3.0.5. Please help! Thanks!