|Message: CERN Root compilation not working on Geant4 examples||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have installed Geant4 and root on a mac. I am not able to run Geant4 examples that make use of root
root-config seems to work pb-d-128-141-38-117:Anaex02-build stefanov$ root-config --incdir /sw/root/include
pb-d-128-141-38-117:Anaex02-build stefanov$ printenv |grep ROOT ROOTSYS=/sw/root
All root tests of the realease are working fine.
I have managed to compile and run examples for Geant4, but when I try to compile and example which contains root histograms I get the following error.
pb-d-128-141-38-117:Anaex02-build stefanov$ pwd /Users/stefanov/src/Anaex02-build
pb-d-128-141-38-117:Anaex02-build stefanov$ cmake -DGeant4_DIR=/sw/geant4/lib/Geant4-9.5.1/ ../AnaEx02 -- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is Clang 4.0.0 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /Users/stefanov/src/Anaex02-build
pb-d-128-141-38-117:Anaex02-build stefanov$ make AnaEx02 Scanning dependencies of target AnaEx02 [ 11%] Building CXX object CMakeFiles/AnaEx02.dir/AnaEx02.cc.o [ 22%] Building CXX object CMakeFiles/AnaEx02.dir/src/DetectorConstruction.cc.o [ 33%] Building CXX object CMakeFiles/AnaEx02.dir/src/DetectorMessenger.cc.o [ 44%] Building CXX object CMakeFiles/AnaEx02.dir/src/EventAction.cc.o [ 55%] Building CXX object CMakeFiles/AnaEx02.dir/src/HistoManager.cc.o /Users/stefanov/src/AnaEx02/src/HistoManager.cc:36:10: fatal error: 'TH1D.h' file not found #include "TH1D.h" ^ 1 error generated. make: *** [CMakeFiles/AnaEx02.dir/src/HistoManager.cc.o] Error 1 make: *** [CMakeFiles/AnaEx02.dir/all] Error 2 make: *** [CMakeFiles/AnaEx02.dir/rule] Error 2 make: *** [AnaEx02] Error 2
It seems that the lines in the GnuMakefile responsible for proper link includes and links are not working.
Maybe somebody had the same problem and can help? I understand it is a very basic one.
|Inline Depth:||Outline Depth:||Add message:|