Bug#379940: boson: detects incorrectly DRI off, when DRI on

Andreas Beckermann b_mann at gmx.de
Sat Sep 23 22:39:58 UTC 2006


Hi

On Saturday 23 September 2006 18:34, Eddy Petrişor wrote:
> On 20/09/06, Andreas Beckermann <b_mann at gmx.de> wrote:
> > > Hmm, what is wrong? Could you expand?
> >
> > Well, apparently you have either the data package not installed, or
> > configured/installed it to a different location than the boson binary was
> > configured to.
> >
> > > > Does anything change if you start boson using
> > > > LD_PRELOAD_LIBRARY=/usr/lib/libGL.so boson
> > > > ?
> > >
> > > If by "anything you meant "the rendering message dissapears", then the
> > > answer is no.
> >
> > Umm and what if you do
> > LD_PRELOAD=/usr/lib/libGL.so boson
> > instead? Sorry about that error
>
> This way it works. and the game moves at an acceptable speed (there
> are some inconveniences, but it works) and the warnign is not
> displayed.

Ok, thanks, that helped a lot.
This means that mesa has problems with dlopen()ing libGL.so (which we do).
Further investigations showed that apparently RTLD_GLOBAL is required as 
dlopen() flag for mesa's libGL.so - QLibrary (which we use for loading 
libGL.so) does not specify this flag, so it may indeed be the cause of this 
problem.
I have just committed a patch to boson subversion which loads libGL.so 
manually using dlopen() and provides the RTLD_GLOBAL flag, so it _might_ be 
fixed now.
However I cannot test this myself, as both of my systems have NVidia cards and 
thus I don't have DRI drivers that support direct rendering anyway.

Could you try to compile current boson subversion and see if the problem still 
exists?

CU
Andi




More information about the Pkg-games-devel mailing list