[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LibGL



On Wed, Feb 28, 2007 at 06:12:33PM +0100, Leopold Palomo Avellaneda wrote:
> when, so _all_ the programs (or almost) in debian use the mesa libGL? 

No they use whichever libGL you currently have.  If you have nvidia-glx
installed, they use that, otherwise they use mesa if that is installed.

Whatever /usr/lib/libGL.so.1 is a symlink to, is what is used.

When compiling, the headers used and whatever /usr/lib/libGL.so is a
symlink to, is what the program is compiled against, although any
compatible library (same major ABI version) should work with the
program.  Debian compiles stuff against mesa, but you can use those
programs with ati or nvidia since they both provide libGL.so.1 that is
compatible with the mesa libGL.so.1

> There's something wrong here. You cannot compile a program that is you have 
> the nvidia libGL (or ati) use it or the generic mesa?

Anything compiled against libGL.so version 1 should run with any of
them.  Of course if compiled against the headers of the nvidia or ati
one it might be possible to use some extensions that mesa doesn't have,
in which case it might only run with those extensions, but that all
comes down to how the opengl code was written.

--
Len Sorensen



Reply to: