Message: Installation of Geant4.10.p02 on OS X 10.9.3 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Installation of Geant4.10.p02 on OS X 10.9.3 

Forum: Installation and Configuration
Date: 23 Jun, 2014
From: Stefan E. Mueller <Stefan E. Mueller>

Dear all,

I am having problems installing Geant4.10.p02 on OS X Mavericks (10.9.3).

After having solved the problem with an inappropriate math.h-file (by giving the flag -DCMAKE_CXX_FLAGS="-U__STRICT_ANSI__" to the cmake-command), I am stuck at [ 97%] with the following messages:

In file included from /Applications/geant4.10.00.p02/source/visualization/RayTracer/src/G4RTJpegMaker.cc:33:
In file included from /Applications/geant4.10.00.p02/source/visualization/RayTracer/include/G4RTJpegMaker.hh:42:
In file included from /Applications/geant4.10.00.p02/source/visualization/RayTracer/include/G4VFigureFileMaker.hh:40:
In file included from /Applications/geant4.10.00.p02/source/global/management/include/globals.hh:49:
In file included from /Applications/geant4.10.00.p02/source/global/management/include/G4ios.hh:39:
In file included from /Applications/geant4.10.00.p02/source/global/management/include/G4Types.hh:67:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:133:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:192:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:
In file included from /include/stdlib.h:61:
/include/available.h:111:6: error: __MAC_OS_X_VERSION_MAX_ALLOWED must be >=
      __MAC_OS_X_VERSION_MIN_REQUIRED
    #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_...
     ^
1 error generated.

It seems that the files /include/stdlib.h and /include/available.h are the cause of the problem. It may be that /include/stdlib.h is an old version (kept from previous version of OS X), but simply removing it brought up other problems. In fact, there are several files named stdlib.h on my Mac (and the one in /include/ is not the newest one!). I didn't succeed to make the install procedure of Geant4 use one of the other stdlib.h (and I don't know if this would solve the problem).

The error message given is also a little bit strange. I tried to set

    export MACOSX_DEPLOYMENT_TARGET=10.9

before executing cmake, but also this doesn't help.

Here are my cake options:

cmake -DCMAKE_CXX_FLAGS="-U__STRICT_ANSI__" -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_RAYTRACER_X11=ON -DCMAKE_INSTALL_PREFIX=/Applications/geant4.10.00.p02 /Applications/geant4.10.00.p02

Anybody succeeded to install Geant4.10.p02 on OS X 10.9.3? Any ideas?

Thanks,

Stefan

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

1 Note: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Ben Morgan - 24 Jun, 2014)
1 More: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Stefan E. Mueller - 26 Jun, 2014)
(_ None: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Ben Morgan - 26 Jun, 2014)
2 None: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Marty - 26 Jun, 2014)
1 More: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Stefan E. Mueller - 27 Jun, 2014)
2 More: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Stefan E. Mueller - 27 Jun, 2014)
1 None: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Marty - 27 Jun, 2014)
3 News: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Stefan E. Mueller - 27 Jun, 2014)
1 Ok: Re: Installation of Geant4.10.p02 on OS X 10.9.3   (Stefan E. Mueller - 01 Jul, 2014)
 Add Message Add Message
to: "Installation of Geant4.10.p02 on OS X 10.9.3"

 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 ]