opengl libraries on linux system

Hi,

I try to compile examples given with OOC5.2. I use an Ubuntu distribution (based on debian) and I have some problems with OpenGl library.

./configure says that it can't fin opengl library :

checking for OpenGL... configure: error: OpenGL (libraries) not found.

The folowing libraries are present on my system :
/usr/incluse/GL/gl.h
/usr/X11R6/lib/libGL.so
/usr/X11R6lib/libGLU.so

So , according to me, the opengl libraries are installed.

Is someone have an idea ?

Best regards

Laurent

khwf's picture

Opencascade's configure script uses some predefined paths to discover includes and libraries of OpenGL (and other 3dparty tools TclTK, ...).
The pathes of your OpenGL implementation are the common paths, but you can try to give the pathes direct as input:

export INCL_GL=/usr/incluse
export LIB_GL=/usr/X11R6/lib
>./configure --with-gl-include=$INCL_GL --with-gl-libraries=$LIB_GL

if you have a look in the configure script, you will see that some paths elements will be added per default in the search pathes.

good luck
khwf

Laurent's picture

I had already try this, but with no success :-(

vegarede's picture

/usr/incluse/GL/gl.h, or... /usr/include/GL/gl.h ?