Hi Bruce, the macro GL.C looks like this (on Linux, Solaris should be pretty similar): { gSystem.Load("/usr/X11/lib/libXmu.so"); gSystem.Load("$ROOTSYS/opengl/lib/libMesaGL.so"); gSystem.Load("$ROOTSYS/opengl/lib/libMesaGLU.so"); gSystem.Load("$ROOTSYS/lib/libRGL.so"); } The idea is that you put a link in $ROOTSYS to your OpenGL directory: cd $ROOTSYS; ln -s /usr/local/src/Mesa-2.2 opengl If you use another version of OpenGL modify accordingly. Also you probably still have to build $ROOTSYS/lib/libRGL.so (the ROOT interface to OpenGL). With the current Makefile this requires you do: export OPENGL=/usr/local/src/Mesa-2.2 cd $ROOTSYS/src; make The new Makefile (coming soon) will just trigger on the existence of $ROOTSYS/opengl so you won't need to set the $OPENGL anymore. Cheers, Fons. O'NEEL Bruce wrote: > > Hi, > When I run with my newly rebuilt root on Solaris I get the following > problem when I choose "View with OpenGL" off of the menu. A brief > search for Mesa or OpenGL on the root site mentions loading GL.C, but, > no GL.C seems to come with either 2.00/13 or 2.20/01. Obviously I'm > doing something silly... > > Thanks! > > cheers > > bruce > > root [0] .x demos.C > root [1] TFile** hsimple.root > TFile* hsimple.root > KEY: TH1F hpx;1 This is the px distribution > KEY: TH2F hpxpy;1 py vs px > KEY: TProfile hprof;1 Profile of pz versus px > KEY: TNtuple ntuple;1 Demo ntuple > Error in <TROOT::Macro>: macro GL.C not found in path .:/isdc/software/root/macros > Error in <TPad::x3d>: OpenGL shared libraries not loaded -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET