The configure script fails when checking for the right name of the qt library and trying to compile with it.

The library name in /usr/lib/qt3/lib is libqt-mt.so.3.0.5

After failing on compilation with -lqt3, -lqt2 -lqt, (since they don't exist), configure still fails with the right library name
(-lqt-mt -- there is a link in /usr/lib/qt3/lib from libqt-mt.so to the actual lib) with the following message:

configure:11825: g++ -o conftest -O -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -I/usr/lib/qt3//include -L/usr/lib/qt3//lib -isystem /usr/X11R6/include conftest.cc -lSM -lICE -lc -lm -L/usr/X11R6/lib -lX11 -lqt-mt >&5
/root/tmp/ccRJN0xG.o: In function `main':
/root/tmp/ccRJN0xG.o(.text+0x11): undefined reference to `QString::QString(char const *)'
/root/tmp/ccRJN0xG.o(.text+0x29): undefined reference to `QString::shared_null'
/root/tmp/ccRJN0xG.o(.text+0x31): undefined reference to `QString::shared_null'
/root/tmp/ccRJN0xG.o(.text+0x3f): undefined reference to `QStringData::deleteSelf(void)'
collect2: ld returned 1 exit status


The missing stuff seems pretty basic.

I got my qt's off the Mandrake 9.0 distribution. They are:

libqt3-3.0.5-7mdk
libqt3-devel-3.0.5-7mdk



Miki Dovrat wrote:
I tried ./configure --with-frontend=qt --with-qt-includes=/usr/lib/qt3/include/ --with-qt-libraries=/usr/lib/qt3/lib

on Mandrake 9.0 and I still get this message:

configure: error: Cannot compile a simple Qt executable. Check you have the right $QTDIR !

My environment variable:

QTDIR=/usr/lib/qt3/

is set to the right location (qt3 is really there, and so is the devel tools), and configure still complains.

Any suggestions?










Reply via email to