I have just finished installing Garfield++ by following the instructions from: http://garfieldpp.web.cern.ch/garfieldpp/getting-started/. When I try to build and run a given example following the instructions from the same website. I get an error stating:
fatal error: TApplication.h: No such file or directory
4 | #include <TApplication.h>
make: *** [CMakeFiles/gem.dir/build.make:63: CMakeFiles/gem.dir/gem.C.o] Error 1
make: *** [CMakeFiles/Makefile2:76: CMakeFiles/gem.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
How do I fix this issue? My suspicion is that perhaps I may have install ROOT incorrectly?
To install ROOT, I did the following:
2)Extract the file using tar -xzvf root_v6.20.02.source.tar.gz root-6.20.02
3)cmake …/root-6.20.02/ -Dall=ON
4)cmake --build . – -j6
After this, I tried running root and everything seems fine.
Another thing I have noticed is that when I try to do
cmake [-DCMAKE_INSTALL_PREFIX=<installdir>] [-DWITH_DOCS=ON] [-DWITH_EXAMPLES=ON] $GARFIELD_HOME
I got an error about not being able to find this directory. Please let me know if there is anything else I need to provide to make the problem more clear. Thank you.