Hello and sorry for the naivety of the question, it has been a long time since I used Geant4. I have installed Geant4 and it works fine until I try to visualise the run with QT (the GUI opens up ok, it only breaks when I run particles). I have compiled 10.07.01 with QT 5.15.2 and cmake 3.19.8 and am on MacOS 10.15.7.
this is my make command:
cmake -DCMAKE_INSTALL_PREFIX=~/Documents/Geant4/geant4.10.07-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DGEANT4_BUILD_MULTITHREADED=ON ~/Documents/Geant4/geant4.10.07.p01
I get this error after running /run/beamOn 1:
Run 0 starts.
zsh: illegal hardware instruction ./exampleB1
and the window crashes. I was wondering if there was any known conflicts with these versions or if I am doing something stupid?
Thanks in advance,
The cmake command you give, followed by make, builds the Geant4 libraries. What cmake command (followed by make) did you use to build your application?
What is the datestamp on exampleB1?
ls -l exampleB1
thanks for the reply. For building the application I simply used
cmake -DGeant4_DIR=~/Documents/Geant4/geant4.10.07-install/lib/Geant4-10.7.0 ~/Documents/Geant4/geant4.10.07/examples/basic/B1
The stamp is as follows:
-rwxr-xr-x 1 aodhan staff 151864 18 May 10:19 exampleB1
I am also going to try and downgrade my version of QT also. If I fix it I will leave a comment.
For reference, the problem appeared to be a mismatch between my OS and whatever version of Xcode was being shipped with my version of MacPorts. Everything works fine with MacOS 11.3
OK. Thanks for letting us know. Good to know things work on MacOS 11.