Re: [bugle-users] Ubuntu 11.10 with nVidia: fall to indirect mode and OpenGL 1.4
Status: Inactive
Brought to you by:
bmerry
From: Bruce M. <bm...@gm...> - 2011-10-20 18:27:40
|
On 20 October 2011 19:26, _ _ <fbe...@gm...> wrote: > Hi Bruce, > > I actually found out what happens. > > 1. when glxinfo is run straight from the shell, it first looks for libGL.so.1 > 2. when glxinfo is run through bugle, bugle first looks for libGL.so > > I figured this out by setting the environment variable LD_DEBUG to all > (see man ld.so for details) to trace what ld.so is doing. Nice! <snip> > So, that's the fault. I'm not sure what the right solution is: > > 1. I have to find out why the mesa package is required (probably some > dependencies) > 2. I have to find out why mesa is listed before nvidia in > /etc/ld.so.cache (what were the arguments passed to the last call to > ldconfig when /etc/ld/so.cache?, maybe there is something to look for > in the /etc/alternatives mechanism?) > 3. maybe bugle should try to look for libGL.so.1 instead of libGL.so? > 4. I'm pretty sure if I remove the mesa symlink libGL.so, I will have > the correct behavior but it looks hackish. I think the correct solution is 3: bugle should load libGL.so.1. That is the SONAME that applications will actually store in their ELF headers and which is used for dynamic linking, so BuGLe should match it. libGL.so is the name that the (build-time) linker seeks when given -lGL, but it then looks inside the library it finds the SONAME to use for dynamic linking. Bruce -- Dr Bruce Merry bmerry <@> gmail <.> com http://www.brucemerry.org.za/ http://blog.brucemerry.org.za/ |