|Message: linking geant4 with root||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)|
Dear Geant4 Experts,
Iím trying to compile my code, which is based on basic example B3 of GEANT4. When I try to build my program using the cmake command, I get an error referring to TROOT.h not being found, despite it being defined in the header and source files of my code. The error message seen on screen once I try to compile is shown below. Could someone please let me know how to resolve this? Both my root and geant4 are working fine on my mac when I run example codes. ----------------------- pzw@machintosh$ g4make /Users/pzw/G4WORK/PET_Simulation -- The C compiler identification is AppleClang 22.214.171.12400051 -- The CXX compiler identification is AppleClang 126.96.36.19900051 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/pzw/G4WORK/PET_Simulation-build pzw@machintosh$ make -j2 Scanning dependencies of target testPET [ 20%] Building CXX object CMakeFiles/testPET.dir/src/PETActionInitialization.cc.o [ 20%] Building CXX object CMakeFiles/testPET.dir/testPET.cc.o [ 30%] Building CXX object CMakeFiles/testPET.dir/src/PETAnalysisManager.cc.o In file included from /Users/pzw/G4WORK/PET_Simulation/src/PETAnalysisManager.cc:1: /Users/pzw/G4WORK/PET_Simulation/include/PETAnalysisManager.hh:6:10: fatal error: 'TROOT.h' file not found #include "TROOT.h" ^ In file included from /Users/pzw/G4WORK/PET_Simulation/testPET.cc:42: /Users/pzw/G4WORK/PET_Simulation/include/PETAnalysisManager.hh:6:10: fatal error: 'TROOT.h' file not found #include "TROOT.h" ^ 1 error generated. make: *** [CMakeFiles/testPET.dir/src/PETAnalysisManager.cc.o] Error 1 make: *** Waiting for unfinished jobs.... 1 error generated. make: *** [CMakeFiles/testPET.dir/testPET.cc.o] Error 1 make: *** [CMakeFiles/testPET.dir/all] Error 2 make: *** [all] Error 2 pzw@machintosh$
|Inline Depth:||Outline Depth:||Add message:|