Little bug in OpenGL project

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


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 
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

Maybe this libraries should also be linked against in the example

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,


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

Andreas Schlapbach
mailto:schlpbch at

More information about the KDevelop mailing list