Problem OpenGL on Mac OS X 10.6 - Fixed

Hi all,

I can’t quite get opengl to work on my macbook pro… Trying an example:

root -l glrose.C root [0]
Processing glrose.C…
dlopen error: dlopen(/usr/local/root-opt/lib/root/libRGL.so, 9): Symbol not found: ___GLXEW_ARB_multisample
Referenced from: /usr/local/root-opt/lib/root/libRGL.so
Expected in: flat namespace
in /usr/local/root-opt/lib/root/libRGL.so
Load Error: Failed to load Dynamic link library /usr/local/root-opt/lib/root/libRGL.so
Error in TCint::AutoLoad: failure loading library libRGL.so for class TX11GLManager
Error in TPluginHandler::SetupCallEnv: class TX11GLManager not found in plugin RGL
Error in TRootCanvas::CreateCanvas: GL manager plugin failed
*** Interpreter error recovered ***
root [1]

Some info about my installation:

root-config --config
–prefix=/usr/local/root-opt --with-x11-libdir=/opt/local/lib/ --with-xpm-libdir=/opt/local/lib/ --with-xft-libdir=/opt/local/lib/ --with-xext-libdir=/opt/local/lib/ --with-opengl-libdir=/opt/local/lib/

root-config --version
5.29/01

root-config --features
asimage astiff bonjour builtin_afterimage cintex editline exceptions fftw3 gviz genvector krb5 ldap mathmore memstat odbc opengl python reflex shared ssl tmva x11 xft xml xrootd thread

g++ --version
i686-apple-darwin10-g+±4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

otool -L /usr/local/root-opt/lib/root/libRGL.so
/usr/local/root-opt/lib/root/libRGL.so:
/usr/local/root-opt/lib/root/libRGL.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)
/opt/local/lib/libftgl.2.dylib (compatibility version 4.0.0, current version 4.3.0)
/opt/local/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.2.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/opt/local/lib/libGLEW.1.5.7.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libGLU.1.dylib (compatibility version 1.3.0, current version 1.3.0)
/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)

I’ve been trying to find in which library I should have ___GLXEW_ARB_multisample but no luck…

Any ideas out there?

kind regards

Joa

Hi again,

Problem solved. I had libGLEW.dylib from MacPorts, and a variant made for the mac framework,
not to work with x11. Changing this with

sudo port install glew +x11

seems to have fixed

Sorry for the trouble

Joa