Hello friends
while installing geant4 when I enter this command in terminal
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/include/geant4-v11.1.2_install
/usr/local/include/geant4-v11.1.2_source
-DGEANT4_INSTALL_DATA=ON
-DGEANT4_INSTALL_EXAMPLES=ON
-DGEANT4_USE_OPENGL_X11=ON
-DGEANT4_USE_GDML=ON
-DGEANT4_USE_RAYTRACER_X11=ON
-DGEANT4_BUILD_MULTITHREADED=ON
-DGEANT4_USE_QT=ON
I am facing something like this…
Why command not found?!
guembou
September 20, 2023, 8:34am
2
Hi,
I guess you are failing to have all the details on the same line. having independent instructions and that’s the problem. Don’t just copy and paste, maybe.
Instead of
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/include/geant4-v11.1.2_install
/usr/local/include/geant4-v11.1.2_source
-DGEANT4_INSTALL_DATA=ON
-DGEANT4_INSTALL_EXAMPLES=ON
-DGEANT4_USE_OPENGL_X11=ON
-DGEANT4_USE_GDML=ON
-DGEANT4_USE_RAYTRACER_X11=ON
-DGEANT4_BUILD_MULTITHREADED=ON
-DGEANT4_USE_QT=ON
try this →
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/include/geant4-v11.1.2_install /usr/local/include/geant4-v11.1.2_source -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_EXAMPLES=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_QT=ON
Please make sure the only space between active dir is “space”, not “enter” or “tab”.
Oh yes, solved!
Thank you
I installed geant4 but when I run example1 I get this error!
I don’t know what to do?
guembou
September 21, 2023, 5:10am
5
hi,
I read that it was a recent known issue with CMake 3.27 as reported here: 2556 – Changes to FindEXPAT in CMake 3.27 break Geant4PackageCache.cmake file .
The best solution suggested was to install Geant4 with the option -DGEANT4_INSTALL_PACKAGE_CACHE=OFF
to disable the install of that file (Or to simply delete it from an existing install, which will not break anything).
Please, refer to the discussion [Issues Compiling a Geant4 Example on macOS: Incorrect Macro Invocation in Geant4PackageCache.cmake ]
Please, also check whether you’ve installed all the required Software Required to Build Geant4.
system
Closed
September 28, 2023, 5:11am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.