operating system: macOS Catalina 10.15.5
geant4 version: 4.10.16
The code was copied from my supervisor and it runs perfectly on his computer. But when I makefile, an error occur:
In file included from /Users/yu/g4work/B1/src/B1ActionInitialization.cc:33:
/Users/g4work/B1/include/B1RunAction.hh:37:10: fatal error: ‘TFile.h’ file not found
#include “TFile.h”
^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/exampleB1.dir/src/B1ActionInitialization.cc.o] Error 1
make[1]: *** [CMakeFiles/exampleB1.dir/all] Error 2
I guess it’s a root header file but I‘ve already installed root.
How can I fix this problem?