mysql navigator won't compile -- undefined reference to Qt2

mysql navigator won't compile -- undefined reference to Qt2

Post by Jeroen » Thu, 02 Aug 2001 14:07:35



Hi,

mysql navigator fails to compile on my Mandrake8.0 system, though I
believe I _have_ set the correct linker dirs/options:

make[1]: Entering directory `/usr/local/src/mysqlnavigator-1.2.4/src/main'
g++  -o ../../bin/mysql_navigator ./main.o  -L/usr/lib/qt2/lib -L/usr/X11R6/lib -L../../lib -lmysqlui -lqt -lXext -lX11 -lm
./main.o: In function `main':
./main.o(.text+0x1b): undefined reference to `QApplication::QApplication(int&, char**)'
./main.o(.text+0x20): undefined reference to `QString::shared_null     '
......
../../lib/libmysqlui.so: undefined reference to `QHeader::label(int) const'
collect2: ld returned 1 exit status
make[1]: *** [../../bin/mysql_navigator] Error 1
make[1]: Leaving directory `/usr/local/src/mysqlnavigator-1.2.4/src/main'
make: *** [src/main] Error 2

and

locate libqt
gives me:

/usr/lib/libqt-mt.so.2
/usr/lib/libqt-mt.so.2.2
/usr/lib/libqt-mt.so.2.3.0
/usr/lib/libqt.so.2
/usr/lib/libqt.so.2.2
/usr/lib/libqt.so.2.3.0
/usr/lib/qt2/lib/libqt-mt.so.2
/usr/lib/qt2/lib/libqt-mt.so.2.2
/usr/lib/qt2/lib/libqt-mt.so.2.3.0
/usr/lib/qt2/lib/libqt.so.2
/usr/lib/qt2/lib/libqt.so.2.2
/usr/lib/qt2/lib/libqt.so.2.3.0
/usr/lib/qt2/lib/libqt.so
/usr/lib/libqtmcop.la
/usr/lib/libqtmcop.so
/usr/lib/libqtmcop.so.0
/usr/lib/libqtmcop.so.0.0.0
/usr/lib/libqt-mt.so
/usr/lib/libqt.so

(the ones in /usr/lib/ are actually symbolic links to
/usr/lib/qt2/lib/....)

So ld should be able to find and link with the libs?!

Any ideas?

Cheers,
Jeroen