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

Andreas Beckmann debian at abeckmann.de
Tue Jun 1 10:06:18 UTC 2010


Hi,

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.

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.

We might even get around *without* triggers at all.


Andreas



More information about the Pkg-nvidia-devel mailing list