Message: Unable to use -DGEANT4_USE_SYSTEM_CLHEP=ON on Mac OS X Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Unable to use -DGEANT4_USE_SYSTEM_CLHEP=ON on Mac OS X 

Forum: Installation and Configuration
Date: 06 Sep, 2012
From: Mojca Miklavec <Mojca Miklavec>

Hello,

The built-in CLHEP which works fine for Geant4 9.5.p01, but not for Gate 6.2. So I tried to use external CLHEP and failed (in both Geant4 and Gate):

    > cmake -DGEANT4_USE_SYSTEM_CLHEP=ON -DCLHEP_CONFIG_EXECUTABLE=/opt/local/bin/clhep-config ../geant4.9.5.p01
    -- The C compiler identification is GNU 4.2.1
    -- The CXX compiler identification is Clang 3.1.0
    -- Checking whether C compiler has -isysroot
    -- Checking whether C compiler has -isysroot - yes
    -- Checking whether C compiler supports OSX deployment target flag
    -- Checking whether C compiler supports OSX deployment target flag - yes
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- setting default compiler flags for CXX
    -- 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
    -- Found CLHEP Version 2.1.2.5
    -- Found CLHEP: /opt/local/lib/libCLHEP.dylib (Required is at least version "2.1.0.1") 
    -- Found EXPAT: /usr/lib/libexpat.dylib (found version "2.0.1") 
    -- The following Geant4 features are enabled:
    GEANT4_USE_SYSTEM_CLHEP: Using external install of CLHEP
    GEANT4_USE_SYSTEM_EXPAT: Using system install of EXPAT

    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/me/app/geant4/geant4.9.5.p01-build
    > make
    Scanning dependencies of target G4global
    [  0%] Building CXX object source/global/CMakeFiles/G4global.dir/HEPNumerics/src/G4AnalyticalPolSolver.cc.o
    ...
    [  1%] Building CXX object source/global/CMakeFiles/G4global.dir/management/src/G4ios.cc.o
    make[2]: *** No rule to make target `/opt/local/lib/libCLHEP.dylib', needed by `outputs/library/Darwin-clang/libG4global.dylib'.  Stop.
    make[1]: *** [source/global/CMakeFiles/G4global.dir/all] Error 2
    make: *** [all] Error 2

I would be grateful for any hints. There is a related problem in http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1328. Actually the bug in tracker is the one I had problems with when building Gate - only the linking stage misses linker flags. The issue above is related, but not the same.

Thank you, Mojca

 Add Message Add Message
to: "Unable to use -DGEANT4_USE_SYSTEM_CLHEP=ON on Mac OS X"

 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 ]