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

Reply via email to