So I’m trying to run a simulation in Garfield++ and as far as I can tell I almost have it working. Root, Geant4, Garfield, and SRIM/TRIM are all installed and I think they all work individually but I get the following error when I try to run something of my own with make.
/home/jason/garfieldpp/Examples/IsobutaneGrid/grid.C:8:10: fatal error: TCanvas.h: No such file or directory 8 | #include <TCanvas.h> | ^~~~~~~~~~~ compilation terminated. make: *** [CMakeFiles/grid.dir/build.make:82: CMakeFiles/grid.dir/grid.C.o] Error 1 make: *** [CMakeFiles/Makefile2:95: CMakeFiles/grid.dir/all] Error 2 make: *** [Makefile:103: all] Error 2
I think this is saying that Garfield and Root aren’t communicating with each other properly, but I’m not 100% sure of that. I do know that if I try to open it up in ccmake I see this.
CMAKE_BUILD_TYPE CMAKE_INSTALL_PREFIX /usr/local Garfield_DIR /home/jason/garfieldpp/CMake ROOT_DIR /snap/root-framework/202/usr/local/cmake ROOT_genmap_CMD ROOT_genmap_CMD-NOTFOUND ROOT_rootdraw_CMD ROOT_rootdraw_CMD-NOTFOUND
I suspect that if I can fix those last two lines it’ll solve my problem but I’m not really sure how to do that.
Any help would be appreciated.
ROOT Version: 6.24/00
Platform: Ubuntu 21.04
Compiler: g++ 10.3 / cmake 3.18.4 when appropriate