Hi J-S,

The only that comes to my mind is change all RPATHS on dependent
libraries. This is a little bit complicated, and maybe a "I need to
reinstall OS" :S.

Using "otool -L" you can see all the rpaths associated to a library or
executable in mac.
Using "install_name_tool" you can change a concrete rpath for a
library or executable.

Some preinstalled frameworks and libraries on macosx have their rpaths
prefixed, so doing this you can point all these libraries to your mesa
libraries.

To avoid a complete mess in your system, maybe you can copy all
frameworks and libraries to a dir, and change all rpaths of all these
libraries and your applications. But this is really tricky.

There are also the env var DYLD_FRAMEWORK_PATH, that could help.

Good luck!
Rafa.


2010/9/20 Jean-Sébastien Guay <[email protected]>:
> Hi Jordi,
>
>> Did you try LD_PRELOAD? Something like 'export
>> LD_PRELOAD=/usr/lib/mesa/libGL.so'
>> May be it can do the trick..
>
> Seems like the MacOSX version of LD_PRELOAD is DYLD_INSERT_LIBRARIES. So
> having built a recent mesa now, I tried:
>
> DYLD_INSERT_LIBRARIES=...path/to/libGL.dylib osgversion
>
> and I get the same message:
>
> dyld: Symbol not found: _gll_noop
>  Referenced from:
> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
>  Expected in: /sw/lib/mesa/libGL.1.dylib
>  in /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
> Trace/BPT trap
>
> I can run with DYLD_PRINT_LIBRARIES=YES and I see each library that's
> loaded. The problem seems to come from the fact that the QuartzCore library
> (and others) depends on other libraries that are in the OpenGL.framework, so
> it loads that all the time, even if I want to use Mesa in its place.
>
> Seems to me there's too much magic going on behind the scenes for Mesa to be
> usable under MacOS X. Other libraries (including the window system) depend
> on OpenGL and shared libraries are being loaded from other places on the
> system... Unless someone with more knowledge than me in this area could
> help, I'm stuck. :-(
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
http://gvsig3d.blogspot.com
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to