[ubuntu-x] [libgl1-mesa-dev] mesa libGL.so link should not put in /usr/lib/x86_64-linux-gnu
kajo keji
kajokeji.2013 at gmail.com
Tue Dec 3 09:07:50 UTC 2013
Thank you Michael for your answer
As for you, my libGL.so.1 link to the proprietary lib :
libGL.so.1 (libc6,x86-64) => /usr/lib/fglrx/libGL.so.1
libGL.so.1 (libc6) => /usr/lib32/fglrx/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/fglrx/libGL.so
So libGL.so.1 seems to be used instead of libGL.so, here is the magic for
me. I am a bit lost about how shared library names are handled...
2013/12/3 Michael Schaller <misch at google.com>
> Kajo, it depends on your LD config.
> On my Ubuntu x86_64 with binary NVIDIA driver it looks like this:
>
> $ ldconfig -p | grep libGL.so.1
> libGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-current/libGL.so.1
> libGL.so.1 (libc6) => /usr/lib32/nvidia-current/libGL.so.1
>
> $ cat /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf
> /usr/lib/nvidia-current
> /usr/lib32/nvidia-current
>
> As you can see with /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf in place
> Mesa's libGL.so.1 is completely disabled.
>
>
> On Tue, Dec 3, 2013 at 9:03 AM, kajo keji <kajokeji.2013 at gmail.com> wrote:
>
>> Thank you for your answer Maarten.
>> You right !! After some clean up of my links and sudo ldconfig,
>> everything are good. I just don't know how program select the good library
>> at runtime as in my ld cache the mesa's comes first (ldconfig -p) :
>> libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
>> libGL.so (libc6,x86-64) => /usr/lib/fglrx/libGL.so
>>
>>
>> 2013/12/2 Maarten Lankhorst <maarten.lankhorst at canonical.com>
>>
>>> op 02-12-13 14:29, kajo keji schreef:
>>> > I suppose that is the aim of x86_64-linux-gnu_gl_conf alternative to
>>> manage
>>> > the link towards mesa, fglrx or nvidia lib, isn't it ?
>>> > The same for i386-linux-gnu_gl_conf.
>>> The abi is fixed and libGL.so is only used for linking. It doesn't
>>> matter that applications link against mesa, they will still use the correct
>>> library at runtime.
>>>
>>> ~Maarten
>>>
>>
>>
>> --
>> Ubuntu-x mailing list
>> Ubuntu-x at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-x
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-x/attachments/20131203/08cbf9a4/attachment.html>
More information about the Ubuntu-x
mailing list