Re: View with OpenGL problem

O'NEEL Bruce (beoneel@acm.org)
Fri, 04 Dec 1998 16:36:07 +0100 (MET)


Hi,
Thanks. I guessed (correctly it turns out) that the linux binary
would come with GL.C, downloaded it and extracted GL.C and it works
with one change:

{
// gSystem.Load("/usr/X11/lib/libXmu.so");
gSystem.Load("$OPENGL/lib/libMesaGL.so");
gSystem.Load("$OPENGL/lib/libMesaGLU.so");
gSystem.Load("$ROOTSYS/lib/libRGL.so");
}

I had just finished a source install of ROOT on Solaris 2.5.1 and
figured that while I was going to the trouble I'd build Mesa 3.0 and
test it out with root. Once GL.C was in place everything works just
fine as the directions say it should.

Thanks very much!

cheers

bruce

Fons Rademakers writes:
> 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