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

Re: LibGL



A Dimecres 28 Febrer 2007 18:36, Lennart Sorensen va escriure:
> 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

Ok, 

I begin to understand. But, if I link a program with -lGL, which one use: 
libGL.so.1 or libGL.so ?

> > 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.

Ok, but it's only a problem of the extensions, not a "normal" and compatible 
code, no?

Regards,

Leo

-- 
--
Linux User 152692
PGP: 0xF944807E
Catalonia

Attachment: pgpnWORWjmGRi.pgp
Description: PGP signature


Reply to: