I have a problem with rootcint (root version 5.20/00) under my mac
(powerbook intel 10.5.6).When I trying to compile my program
I obtain the following error message
on my mac rootcint seems to need the include path:
In my makefile when I replace this line
$(ROOTCINT) -f $@ -c $^
by
$(ROOTCINT) -f $@ -c -I$(ROOTSYS)/include -I$(ROOTSYS)/cint/cint/include $^
my program compile .
I am a bit puzzled. I routinely develop on MacOs 10.5 and never seen this problem. I also download the tar file for v5.22 (from root.cern.ch/root/Version522.html) and did:export ROOTSYS=${PWD}
export PATH=${ROOTSYS}/bin:${PATH}
export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH}
cd test
rm -f EventDict.cxx
gmake EventDict.cxx and this was successful (i.e. EventDict.cxx was produced and no error message was printed.
If a similar test fails for you, can you send the result of
echo $ROOTSYS
echo $PWD
rootcint -f EventDict.cxx -c -v -p Event.h EventLinkDef.h
seems to be good isn’t it ?
Can you try to compile the tar.gz I attached ?
Try to make, if it doesn’t work go to the makefile
comment this line: (ROOTCINT) -f @ -c ^
and uncomment
(ROOTCINT) -f @ -c -I(ROOTSYS)/include -I$(ROOTSYS)/cint/cint/include
-I$(ROOTSYS)/cint/cint/stl/ -I$(ROOTSYS)/cint/cint/lib $^
Did export ROOTSYS=${PWD}
export PATH=${ROOTSYS}/bin:${PATH}
export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH}
cd test
rm -f EventDict.cxx
gmake EventDict.cxxsucceed or fail?
oups sorry…
In my previous reply I didn’t take a new terminal so some ROOT variable was still there.
If I took a new terminal:
export ROOTSYS=${PWD}
export PATH=${ROOTSYS}/bin:${PATH}
export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH}
cd test
rm -f EventDict.cxx
make EventDict.cxx
export ROOTSYS=${PWD} [/quote]Sorry, my description was missing an important step : cd where_root_is. I.e. I mean (in your case):
cd /Applications/root
export ROOTSYS=${PWD}. If the current directory was anything but /Applications/root, rootcint should be failing in exactly the way you saw .