Error on Geant4config.cmake

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

_Geant4 Version:4.11.0
_Operating System:ubunut
_Compiler/Version:gcc 12

Hello everybody.
All my geantv4s are giving me this problem.
I don’t know if it’s hard to cmake
please, help me

Where is Geant4 installed on this system? As the message indicates, CMake cannot locate the install in standard locations, so needs to be run either as:

$ cmake -DCMAKE_PREFIX_PATH=/location/where/you/installedgeant4/ <otherargs>


$ cmake -DGeant4_DIR=/path/to/directory/holdingGeant4Config/ <otherargs>

This is covered in more detail in the Application Developer Guide

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.