Re: [ROOT]: Gui, TCanvas, and mouse events

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Feb 08 2003 - 22:42:39 MET


Christian,

You should use the Makefile from the new tar file. You will see that
among other things, it has -lHtml in the link sequence.

Rene Brun

On 
Sat, 8 Feb 2003, cstrato wrote:

> Dear Rene
> 
> Thank you for this new version.
> Interestingly, compilation causes now the following error:
> [localhost:~/ROOT/rootcode/RootShower] cc% make -f Makefile.macosx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c GButtonFrame.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c GTitleFrame.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c MyDetector.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c MyEvent.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c MyParticle.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RSAbout.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RSEnv.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RSHelptext.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RSMsgBox.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RootShower.cxx
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c SettingsDlg.cxx
> Generating dictionary RootShowerDict.cxx...
> c++ -O -pipe -Wall -I/Users/cc/ROOT/root/include -c RootShowerDict.cxx
> c++ -O -Xlinker -bind_at_load -flat_namespace GButtonFrame.o 
> GTitleFrame.o MyDetector.o MyEvent.o MyParticle.o RSAbout.o RSEnv.o 
> RSHelptext.o RSMsgBox.o RootShower.o SettingsDlg.o RootShowerDict.o 
> -L/Users/cc/ROOT/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad 
> -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lm -L/sw/lib -ldl 
> -lEG -o RootShower
> /usr/bin/ld: Undefined symbols:
> _MakeClass__5THtmlPCcb
> _MakeIndex__5THtmlPCc
> __._5THtml
> ___5THtml
> make: *** [RootShower] Error 1
> 
> What does 5THtml mean?
> 
> Best regards
> Christian
> 
> 
> 
> Rene Brun wrote:
> 
> > Hi Christian,
> > 
> > You did not indicate which version of RootShower that you have 
> > installed.
> > I have copied the latest version from Bertrand at:
> >   ftp://root.cern.ch/root/RootShower.tar.gz
> > 
> > Rene Brun
> > 
> > On Sat, 8 Feb 2003, 
> > cstrato wrote:
> > 
> > 
> >>Dear Bertrand
> >>
> >>Thank you for this file, sorrowly it does not help.
> >>
> >>Best regards
> >>Christian
> >>
> >>
> >>Bertrand Bellenot wrote:
> >>
> >>
> >>>Hello Christian,
> >>>
> >>>Sorry, I'm not a Mac expert, and cannot help about this point. 
> >>>As the config file .rootshowerrc file is missing into the tar file, 
> >>>here it comes, copy it into your $(HOME) directory; it should 
> >>>work without it, but it is better to have it anyway...
> >>>
> >>>Cheers,
> >>>Bertrand.
> >>>
> >>>----- Original Message ----- 
> >>>From: "cstrato" <cstrato@aon.at>
> >>>To: "Bertrand Bellenot" <bellbert@scopus.ch>
> >>>Cc: <roottalk@pcroot.cern.ch>
> >>>Sent: Saturday, February 08, 2003 8:41 PM
> >>>Subject: Re: [ROOT]: Gui, TCanvas, and mouse events
> >>>
> >>>
> >>>
> >>>
> >>>>Dear Bertrand
> >>>>
> >>>>Thank you, you are right. I forgot to change the Makefile
> >>>>for MacOS X. Now I can compile the program but I am unable
> >>>>to run it. I get either Permission denied or Segmentation fault:
> >>>>[localhost:~/ROOT/rootcode/RootShower] cc% ./RootShower
> >>>>./RootShower: Permission denied.
> >>>>[localhost:~/ROOT/rootcode/RootShower] cc% chmod u+x RootShower
> >>>>[localhost:~/ROOT/rootcode/RootShower] cc% ./RootShower
> >>>>Segmentation fault
> >>>>
> >>>>I am enclosing the changed Makefile. Is it possible that you
> >>>>or a Mac expert could check if there is something wrong with it?
> >>>>
> >>>>Thank you.
> >>>>
> >>>>Best regards
> >>>>Christian
> >>>>
> >>>>
> >>>>Bertrand Bellenot wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hello Christian,
> >>>>>
> >>>>>As the problem seems to be at RootShower dictionary compilation, 
> >>>>>Try to delete RootShowerDict.h and RootShowerDict.cxx, and then 
> >>>>>recompile, so rootcint will recreate correct dictionaries. 
> >>>>>
> >>>>>Cheers,
> >>>>>Bertrand
> >>>>>
> >>>>>----- Original Message ----- 
> >>>>>From: "cstrato" <cstrato@aon.at>
> >>>>>To: <roottalk@pcroot.cern.ch>
> >>>>>Sent: Friday, February 07, 2003 10:27 PM
> >>>>>Subject: Re: [ROOT]: Gui, TCanvas, and mouse events
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >>>--------------------------------------------------------------------------------
> >>>
> >>>
> >>>
> >>>
> >>>>#########################################
> >>>>
> >>>>ARCH          = macosx
> >>>>
> >>>>CXX           =
> >>>>ObjSuf        = o
> >>>>SrcSuf        = cxx
> >>>>ExeSuf        =
> >>>>DllSuf        = so
> >>>>OutPutOpt     = -o 
> >>>>
> >>>>ROOTCFLAGS   := $(shell root-config --cflags)
> >>>>ROOTLIBS     := $(shell root-config --libs)
> >>>>ROOTGLIBS    := $(shell root-config --glibs)
> >>>>ROOTLIBDIR   := $(shell root-config --libdir)
> >>>>
> >>>>CXX           = c++
> >>>>CXXFLAGS      = -O -pipe -Wall
> >>>>LD            = c++
> >>>>LDFLAGS       = -O -Xlinker -bind_at_load -flat_namespace
> >>>># The SOFLAGS will be used to create the .dylib; the .so will
> >>>># be created separately
> >>>>DllSuf        = dylib
> >>>>SOFLAGS       = -dynamiclib -flat_namespace -undefined suppress
> >>>>
> >>>>CXXFLAGS     += $(ROOTCFLAGS)
> >>>>LIBS          = $(ROOTLIBS) $(SYSLIBS)
> >>>>GLIBS         = $(ROOTGLIBS) $(SYSLIBS)
> >>>>
> >>>>#########################################
> >>>>
> >>>>ROOTSHOWERS  := $(wildcard *.cxx) RootShowerDict.$(SrcSuf)
> >>>>ROOTSHOWERO  := $(ROOTSHOWERS:.cxx=.o)
> >>>>ROOTSHOWER    = RootShower$(ExeSuf)
> >>>>
> >>>>OBJS          = $(ROOTSHOWERO)
> >>>>
> >>>>PROGRAMS      = $(ROOTSHOWER)
> >>>>
> >>>>#########################################
> >>>>
> >>>>.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
> >>>>
> >>>>all:            $(PROGRAMS)
> >>>>
> >>>>$(ROOTSHOWER):     $(ROOTSHOWERO)
> >>>>$(LD) $(LDFLAGS) $^ $(GLIBS) -lEG $(OutPutOpt)$@
> >>>># We need to make both the .dylib and the .so
> >>>># $(LD) $(SOFLAGS) $^ $(OutPutOpt) $@
> >>>>$(LD) -bundle -undefined suppress -Wl,-x $(LDFLAGS) $^ \
> >>>>  $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
> >>>>@echo "$@ done"
> >>>>
> >>>>RootShowerDict.$(SrcSuf): MyParticle.h MyDetector.h MyEvent.h RSLinkDef.h
> >>>>@echo "Generating dictionary $@..."
> >>>>@rootcint -f $@ -c $^
> >>>>
> >>>>#########################################
> >>>>
> >>>>.$(SrcSuf).$(ObjSuf):
> >>>>$(CXX) $(CXXFLAGS) -c $<
> >>>>
> >>>>#########################################
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> > 
> > 
> > 
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET