Message: Building exemple B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Building exemple B1 

Forum: Installation and Configuration
Date: 28 Aug, 2016
From: PENABEI Samafou Benjamin <PENABEI Samafou Benjamin>

Hello Dear!

I have just installed the last version of Geant4, I tried to build the example B1 but I get some error about CMake (find package). I don't know how to do. Please find below the result of compilation. If someone can help me to resolve it. Thank you in advance for your help.

penabei@localhost B1-build]$ cmake -DGeant4_DIR=/home/penabei/geant4.10.02.p02/geant4.10.02-install/lib64/Geant4.10.2.2 $HOME/examples/basic/B1/
-- The C compiler identification is GNU 6.1.1
-- The CXX compiler identification is GNU 6.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:15 (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/penabei/B1-build/CMakeFiles/CMakeOutput.log".

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: Building exemple B1   (PENABEI Samafou Benjamin - 30 Aug, 2016)
(_ None: Re: Building exemple B1   (=?UTF-8?Q?Tevfik_Kaplano=c4=9flu_Iradets?= - 30 Aug, 2016)
(_ None: Re: Building exemple B1   (PENABEI Samafou Benjamin - 31 Aug, 2016)
 Add Message Add Message
to: "Building exemple B1"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]