After installing Geant4 with qt5, I tried to run example B1 and this report occurred:
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PART70000
issued by : G4NuclideTable
G4ENSDFSTATEDATA environment variable must be set
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
I use M1 MAC, Geant4 11.0.3 with qt5, and this is the first time running geant4.
Seems I missed G4ENSDFSTATEDATA environment variable, may I ask how can I add it to solve this error?
I checked that the CMAKE_INSTALL_PREFIX directory is /usr/local, then I sourced geant4.sh in the terminal /usr/local/bin. However the same error occurred when I run the example again. Sorry for being stupid, please let me know what I am doing wrong.
download the G4ENSDFSTATEDATA data from the geant4 website https://geant4.web.cern.ch/support/download and paste it in your install directory as ~/genat4****-install/share/Genat4-v11-***/data/
if data folder is not there first create and paste the extracted folder there.