I wanted to compile gtkglarea on a slack 8.0 system using the latest nvidia drivers and I recieived a error during the ./configure phase that OpenGL could not be found nor could Mesa. I expected the latter and nothing I tried would produce a positive result for the OpenGL.
My system is setup (AFAIK) properly according to the NVIDIA faq and all the other information I read on the web. I ran the nvidia_test script and they came back ok.
This is not the first OpenGL app I had problems with. I tried adding -lGLU and -lglut, but this did not solve the issue. The config.log would report problems with glbase.h and similar files.
Finally I took a stab at linking /usr/lib/libMesa.so with /usr/lib/libGL.so (libMesa.so did not exist on my system before doing this) and the compile went through saying it found Mesa. Running make produced errors because everything was being compiled with -lMesaGL and -lMesaGLU. I went to each Makefile I could find and changed the -lMesaGL to -lGL and -lMesaGLU to -lGLU and this seemed to work.
Where is the problem here? I’m kind of baffled. How can I make sure everything is configured correctly and where do I look to configuring this information?
Could it be that glut needs to be compiled on my machine (I used a pre-compiled package). Or maybe GTK should be compiled also?
Thanks for any advice.