Hi Martin, you seem to be linking with ALL ROOT shared libraries, *.sl, (including the ROOT OpenGL interface). This is probably not what you want. To do it the right way have a look at $ROOTSYS/test/Makefile. There you see with which ROOT libs you have to link to get a running app (with or without graphics). Cheers, Fons. PS: to use OpenGL get the Mesa OpenGL libs installed (see ROOT availability page to find pointer to Mesa web site). Once you have Mesa installed execute in root ".x GL.C". This macro is distributed in the $ROOTSYS/macros directory and shows how libRGL.sl and Mesa are dynamically loaded (GL.C is currently only in the HP and Linux distributions, others will follow soon). It looks like this (for HP): { gSystem.Load("/usr/lib/libXext.sl"); gSystem.Load("/usr/lib/X11R4/libXmu.sl"); gSystem.Load("$OPENGL/lib/libMesaGL.sl"); gSystem.Load("$OPENGL/lib/libMesaGLU.sl"); gSystem.Load("$OPENGL/lib/libMesaGLw.sl"); gSystem.Load("$OPENGL/lib/libMesaaux.sl"); gSystem.Load("$ROOTSYS/lib/libRGL.sl"); } > > Dear rooters, > > I have written code using some of the root libraries. > It worked fine with the g++ compiler. > Now I switched to the aCC compiler and am linking against the aCC > version of the root libs. > It compiles,links,but when I run it, I get a whole load > of error messages: > > aCC runtime: Error 215 from shl_findsym(/afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl,_shlInit) > /lib/dld.sl: Unresolved symbol: glwMDrawingAreaWidgetClass (data) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > /lib/dld.sl: Unresolved symbol: typeid__XT12TGLViewerImp_ (data) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > /lib/dld.sl: Unresolved symbol: glNormal3fv (code) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > /lib/dld.sl: Unresolved symbol: glMatrixMode (code) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > /lib/dld.sl: Unresolved symbol: __ct__11THelpDialogFPCc (code) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > /lib/dld.sl: Unresolved symbol: glCullFace (code) from > /afs/cern.ch/user/w/woudstra/public/root/lib/libRGL.sl > etc. > etc. > > Can somebody please help me? Thanks a lot. > > Martin. > -- 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:26:21 MET