[pkg-nvidia-devel] nvidia-glx-dev and libgl1-dev

Russ Allbery rra at debian.org
Tue Jun 1 17:58:18 UTC 2010


Andreas Beckmann <debian at abeckmann.de> writes:

> while experimenting with triggers for setting up libGL.so, I came to
> reconsider some old decisions:

> Q: Why does nvidia-glx-dev conflict with libgl1-dev?
> A: Because they both ship the GL headers.

> But do we really need the NVIDIA GL headers? Especially if we work hard
> later on not to link with the NVIDIA libGL (during compilation).

> What about moving the NVIDIA GL headers to /usr/include/nvidia/GL and
> depending on libgl1-dev? So we should get much more deterministic setups
> and if someone *really* wants to build with the NVIDIA headers (there
> might be some NVIDIA extensions), they can use -I/usr/include/nvidia and
> then they still need to figure out, how *not* to link with the MESA
> libGL.so.

That sounds like a much better idea, yes.

> In this setup, we will *never* need a /usr/lib/libGL.so symlink pointing
> to the NVIDIA libGL.so.* (but we could create one in /usr/lib/nvidia).
> This would also mean, no more workarounds in the shlibs files to select
> *not* nvidia-glx but libgl1.

Yes.  That means that people who really, really want to link to the NVIDIA
libraries can just use -L/usr/lib/nvidia.  That sounds great.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>



More information about the Pkg-nvidia-devel mailing list