Re: [bugle-users] Ubuntu 11.10 with nVidia: fall to indirect mode and OpenGL 1.4
Status: Inactive
Brought to you by:
bmerry
|
From: _ _ <fbe...@gm...> - 2011-10-20 17:26:17
|
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. >From this, I investigated further: 3. "ldconfig -p" displays /etc/ld.so.cache and it shows that for libGL.so.1 the nvidia lib is listed first (actually the mesa version is not even listed). It also shows that for libGL.so, the mesa lib is listed first (before the nvidia one), hence the discrepancy. The mesa libGL.so is a symlink to the mesa libGL.so.1. So when glxinfo looks for libGL.so.1 through bugle, it ends up finding it already has it from mesa libGL.so and never picks the nvidia one. 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. Regards, -- François Bertel On Thu, Oct 20, 2011 at 7:58 AM, Bruce Merry <bm...@gm...> wrote: > > On 19 October 2011 07:26, _ _ <fbe...@gm...> wrote: > > Hello, > > > > The issue that happened before with Ubuntu 10.04, re-appeared with Ubuntu > > 11.10 (and actually previously with Ubuntu 11.04 too). > > > > ref: http://sourceforge.net/mailarchive/message.php?msg_id=25902804 > > > > My computer is a laptop Sony Vaio VPCZ12EGX with an nVidia GeForce GT 330M, > > 1GB. This the x86_64 version of Ubuntu 11.10. > > > > It happens both with release 0.0.20101121 and svn/trunk. > > I'm able to reproduce this on an 11.10 machine, so hopefully I'll be > able to dig into it when I get time. > > Cheers > Bruce > -- > Dr Bruce Merry > bmerry <@> gmail <.> com > http://www.brucemerry.org.za/ > http://blog.brucemerry.org.za/ |