Little bug in OpenGL project

Andreas Schlapbach schlpbch at bluewin.ch
Sun Apr 2 16:19:52 UTC 2000


Hello

Great work everybody. But here's a little bug. Trying to compile the
OpenGl project leads to:

/bin/sh ../libtool --silent --mode=link g++  -O0 -g3 -Wall  -o opengl
-L/opt/kde/lib  -L/usr/X11R6/lib -rpath /opt/kde/lib -rpath
/usr/X11R6/lib openglview.o opengldoc.o opengl.o main.o opengldoc.moc.o
opengl.moc.o openglview.moc.o  -lkfile -lkfm -lkdeui -lkdecore -lqt
-lqgl -lMesaGL -lXmu -lXext -lX11  
/usr/i486-linux/bin/ld: cannot open -lqgl: No such file or directory

Looking at the Makefile tells why:

all_includes = -I/opt/kde/include -I/usr/lib/qt/include 
-I/usr/X11R6/include
all_libraries = -L/opt/kde/lib  -L/usr/X11R6/lib
install_root =
..
qt_includes = /usr/lib/qt/include
qt_libraries =
x_includes = /usr/X11R6/include
x_libraries = /usr/X11R6/lib   

The directory with the qt-libraries is missing. Could somebody fix this?

Maybe a somewhat more extended example would be fine. If you're doing
some bigger OpenGL project, the linking gets harder:
 
LIBS            = -lXt -lXi -lXmu -lXext -lX11 -lglut -lMesaGLU -lMesaGL
-lm     

Maybe this libraries should also be linked against in the example
project.

And what about a comment in the source code that tells a new user that
he first has to compile the qt-extensions?

Just wondering,

Andreas

--
>> Linux - Where do you want to go tomorrow? <<

Andreas Schlapbach
mailto:schlpbch at iam.unibe.ch
http://iamexwiwww.unibe.ch/studenten/schlpbch





More information about the KDevelop mailing list