Thursday, April 1, 2010

OpenGL Library

Libraries

There are two link-level libraries. libGL includes the OpenGL and GLX entry points and in general depends on underlying hardware and/or X server dependent code that may or may not be incorporated into this library. libGLU includes the GLU utility routines and should be hardware independent, using only the OpenGL API.

Each library has two names: the link name used on the ld command line, and the DT_SONAME within that library (specified by the -soname switch when linking the library), defining where it's looked up at runtime. Both forms must exist so that both linking and running will operate properly. The library names are:

Link name Runtime name (DT_SONAME)
libGL.so libGL.so.1
libGLU.so libGLU.so.1

libGL.so and libGLU.so should be symbolic links pointing to the runtime names, so that future versions of the standard can be implemented transparently to applications by changing the link.

Generally, the libraries are in the folder:
   /usr/lib/libGL.so.1
/usr/lib/libGLU.so.1

No comments:

Post a Comment