Message: Re: 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

News Re: Installation of Geant4.10.p02 on OS X 10.9.3 

Forum: Installation and Configuration
Re: Question Installation of Geant4.10.p02 on OS X 10.9.3 (Stefan E. Mueller)
Date: 27 Jun, 2014
From: Stefan E. Mueller <Stefan E. Mueller>

OK,

thanks to the suggestion by Ben Morgan, I managed to build and install Geant4.10.p02 on OS X 10.9.3.

I moved the directory /install to /old_install by doing (as root)

>> mv /install /old_install (just to make sure I could move it back in case it turns out it is really used by some application)

Then I used the following flags with CMAKE

>> cmake -DCMAKE_CXX_FLAGS="-U__STRICT_ANSI__" -DGEANT4_BUILD_CXXSTD=c++11 -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

and this time, it ran till the end without error.

Then simply the commands

>> make -j2

>> make install

completed the installation.

But now when I try to build example B1, I get an error when linking:

Linking CXX executable exampleB1
Undefined symbols for architecture x86_64:
  "G4Exception(char const*, char const*, G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)", referenced from:
      B1PrimaryGeneratorAction::GeneratePrimaries(G4Event*)       in B1PrimaryGeneratorAction.cc.o
  "operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4BestUnit)", referenced from:
      B1RunAction::EndOfRunAction(G4Run const*)  in B1RunAction.cc.o
  "___emutls_v.G4cout_p", referenced from:
      B1RunAction::EndOfRunAction(G4Run const*)  in B1RunAction.cc.o
  "___emutls_v._ZN14G4GeomSplitterI8G4LVDataE6offsetE", referenced from:
      G4LogicalVolume::GetSolid() const in B1PrimaryGeneratorAction.cc.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [exampleB1] Error 1
make[1]: *** [CMakeFiles/exampleB1.dir/all] Error 2
make: *** [all] Error 2

Not there yet.

Stefan

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

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: "Re: 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 ]