-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 23 February 2004 07:05 am, Martijn Houtman wrote:
Hello,
When compiling the examples in the Qt examples dir (opengl gears example) and bumped into some errors. Firstly, I get the following linking errors:
gear.o(.gnu.linkonce.d._ZTV10GearWidget+0xc): undefined reference to `QGLWidget::className() const' gear.o(.gnu.linkonce.d._ZTV10GearWidget+0x10): undefined reference to `QGLWidget::qt_cast(char const*)' gear.o(.gnu.linkonce.d._ZTV10GearWidget+0x14): undefined reference to `QGLWidget::qt_invoke(int, QUObject*)'
Now, when I replace the -lqt in the Makefile by -lqt-mt, they link just fine. Is this a bug in the Makefile's from Trolltech, or some weird behaviour in SuSE's qt libs? These are the (unsupported?) qt3-3.3.0-47 libs from supplementary/KDE/update_for_9.0.
Ok, replacing the qt with qt-mt works fine, but then the output is scrambled (take a look at http://www.suse-irc.org/temp/snapshot1.png). This did not occur with the regular qt libs SuSE 9.0 provides, but then I cannot run KDE 3.2 :)
Thanks in advance, -- tinus.
Quite strange. I was unable to make gear at all until I added -lGL to the LIBS = $(SUBLIBS) -L/usr/lib/ -L$(QTDIR)/lib/ -L/usr/X11R6/lib/ -lqt-mt - -lGL -lXext -lX11 -lm in Makefile. After that it compiled and ran perfectly. I copied the example form $QTDIR/doc/examples/opengl/gear/, deleted the gear and gear.o, Ran qmake - -project, qmake, hacked the Makefile as above, and ran make successfully. qmake -version Qmake version: 1.07a (Qt 3.3.0) Qmake is free software from Trolltech AS. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAOiSnH2SF0i7rrGwRAu3iAKCZp2mkx5wkMlVSO7dckRtvzzWV3gCgoyp5 aqkPaqygGbQ1KmieVW65sDk= =IKRe -----END PGP SIGNATURE-----