On Thursday 05 February 2004 05:28, Stefan Hundhammer wrote:
On Thursday 05 February 2004 02:59, Steven T. Hatton wrote:
This is with QT3.3 from a fresh snapshot. This is also what I encountered when I tried to use the QT with SuSE's 'supplementary' KDE 3.2.0.
Is there something I need to add to my includes or other arguments to `make'?
According to
http://doc.trolltech.com/3.3/opengl.html
Qt's "configure" script will autodetect presence of OpenGL if you have it installed.
Does SuSE 9.0 have the development libs for OpenGL?
Yes, of course: Install package XFree86-Mesa-devel*.rpm.
I believe OpenGL is installed since my OpenGL screensavers work.
Suggestions?
Check if XFree86-Mesa-devel is installed and if it isn't install it, run "configure" for your Qt lib again and rebuild Qt.
I'm not sure where I went wrong with the QT build, but it looks like my build of the examples was going against the old QT libs. I now have a build of QT with multithreading enabled, and that results in a different error. qmake -project && qmake && make g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/mkspecs/default -I. -I. -I/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/include -o cube.o cube.cpp g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/mkspecs/default -I. -I. -I/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/include -o main.o main.cpp g++ -Wl,-rpath,/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/lib -o cube cube.o main.o -L/home/hattons/opt/com/trolltech/qt-x11-free-3.3.0b1/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm cube.o(.text+0x6ec): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `gluPickMatrix' collect2: ld returned 1 exit status make: *** [cube] Error 1 I tried to build the same source on a different SuSE 9.0 box and encountered the same problem as described in my original message in this thread. That box has the SuSE 9.0 release QT and KDE. There's something strange going on.
CU
Stefan Hundhammer <sh@suse.de> Penguin by conviction.
STH