CMake erro no CMakeLists.txt: 13 (find_package): por não fornecer “FindGeant4.cmake” em CMAKE_MODULE_PATH

0

Eu tenho um problema ao tentar instalar o Geant4 no sistema Linux.

$ cmake ..
CMake Error at CMakeLists.txt:13 (find_package):
  By not providing "FindGeant4.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Geant4", but
  CMake did not find one.

  Could not find a package configuration file provided by "Geant4" with any
  of the following names:

    Geant4Config.cmake
    geant4-config.cmake

  Add the installation prefix of "Geant4" to CMAKE_PREFIX_PATH or set
  "Geant4_DIR" to a directory containing one of the above files.  If "Geant4"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/dell/Desktop/geant4/geant4.9.6/examples/basic/B1/build/CMakeFiles/CMakeOutput.log".

Eu tentei:

apt-get install g++

Mas eu recebo:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
    
por HF FH 07.03.2017 / 21:59

1 resposta

1

Você só precisa fornecer o geant4.sh

No bash shell, forneça o comando:

source /path_to_geant4_install/bin/geant4.sh

E então, cmake

    
por Pushan Gore 20.07.2017 / 08:57