Message: Re: Installing in win7, CMake error, Can you help me? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Installing in win7, CMake error, Can you help me? 

Forum: Installation and Configuration
Re: Question Installing in win7, CMake error, Can you help me?
Date: 25 Mar, 2013
From: Ben Morgan <Ben Morgan>

On Sun, 17 Mar 2013 12:55:28 GMT, rocgold wrote:
> Hello
> 
> I install geant4.9.6.p01 in win7, the error in CMake is following:
> 
> CMake Error at analysis/CMakeLists.txt:74 (include): include could not
> find load file: Geant4MacroLibraryTargets
> 
> CMake Error at analysis/CMakeLists.txt:81 (GEANT4_LIBRARY_TARGET):
> Unknown CMake command "GEANT4_LIBRARY_TARGET".
> 
> CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command
> is present. A line of code such as cmake_minimum_required(VERSION 2.8)
> 
> should be added at the top of the file. The version specified may be
> lower if you wish to support older CMake versions for this project. For
> more information run "cmake --help-policy CMP0000". This warning is for
> project developers. Use -Wno-dev to suppress it. Configuring incomplete,
> errors occurred!

What path did you supply to CMake as the source directory for Geant4? This needs to be the directory that the source bundle unpacks to which should create the hierarchy:

+- geant4.9.6.p01/
   +- CMakeLists.txt
   +- cmake/
   +- config/
   +- environments/
   +- examples/
   +- LICENSE
   +- physics_lists
   +- ReleaseNotes/
   +- source/

The error messages look like you might have pointed CMake to the geant4.9.6.p01/source directory rather than the geant4.9.6.p01/ directory. If that's the case, simply rerun CMake and point it to the geant4.9.6.p01/ directory, it should then work.

Cheers,

Ben.

 Add Message Add Message
to: "Re: Installing in win7, CMake error, Can you help me?"

 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 ]