Installing Geant4 v10.0.0

Please fill out the following information to help in answering your question, and also see tips for posting code snippets

_Geant4 Version: v10.0.0
_Operating System: Linux 20.04

I am trying to install geant410.0.0 in order to install G4DS10. But I am facing the error below:

CMake Error at cmake/Modules/Geant4MacroLibraryTargets.cmake:111 (add_library):
No SOURCES given to target: G4visHepRep
Call Stack (most recent call first):
cmake/Modules/Geant4MacroLibraryTargets.cmake:291 (GEANT4_LIBRARY_TARGET)
source/visualization/HepRep/CMakeLists.txt:18 (GEANT4_GLOBAL_LIBRARY_TARGET)

How should I solve it?

With Geant4 10.0 no longer being supported or tested (it is ~7 years since the last patch), it’s not going to be easy to provide support here. All I can imagine is that the CMake version in use is parsing the information in those files incorrectly. Depending on what that version is, you might try using an older CMake version, such as 2.8.12, or 3.1-3.3.

1 Like

Thank you so much for your reply, Is there any direct link to download the correct code, what I found is corrupted!

Links to releases back to 9.6 are available here: All Geant4 releases - Geant4