On Wed, 31 Aug 2005, Sacha Ligthert wrote:
I took for a test SDLgears from the SDL website and tried to configure
and compile it.
Configure halted with:
checking for OpenGL support... no
configure: error: Unable to find OpenGL headers and libraries
You have to tell the configure script where to look for the headers and
libs. I can't tell you what to do in this special case, but a good
starting point is to run 'configure --help' and look for options that
could be set. Then look at the log configure creates to see where it
fails.
Compiling the suplied gears.c, the first error was:
$ gcc gears.c
gears.c:39:21: GL/glut.h: No such file or directory
I've tried adding -gl,-glu,-glut,-I/usr/local/include/GL/glut.h in
several combinations (some capped) without result.
An application using glut had the following options for the compiler:
-I/usr/local/include/ -I/usr/X11R6/include -L/usr/local/lib
-L/usr/X11R6/lib -lGL -lglut -lm -lGLU -lX11 -lXext -lXmu -lXi
You really have to set the path to the include directory with -I. Not the
path including the filename. And the libs are case sensitive too, I think
the example above should give you a good start.
Greetings
Markus