Mac os X stuff
- Pour installer Geant4 via fink , il faut que Fink utilise arborescence instable.
Il faut modifier /sw/etc/fink.conf et ajouter unstable/main et unstable/crypto à la ligne Trees.
Puis fink selfupdate et fink index.
- La commande seq en bash n'est pas présente sur BDS il faut la remplacer par jot
exemple: jot 10 50 60 est équivalent à seq 50 60
- La commande ldd n'est pas disponible sous os X, on peut la remplacer par otool -L
Xcode for developing Geant4
Let try to compile examples/novice/N04 with Xcode
(maybe there is something more easy)
- Open Xcode (:))
- Select New Project from file menu and select External Build System
- Select your project Name: XcodeN04 for example and give
the path where the example is installed (for me /Applications/geant4.8.3/examples/novice/N04/)
- Open the disclosure triangle beside the XcodeN04 (left side)
drag the folder containing the sources files src (Tell Xcode not to copy files)
- From the Project Menu choose New Target and select Shell Script Target
and give a name Xenv.sh (for example) and close the pop up window
- Open the disclosure triangle beside Xenv.sh and double click on Run Script
- Add those following line between #shell script... and exit 0 :
# shell script goes here
source $G4INSTALL/env.sh
make
exit 0
(give the full path of $G4INSTALL)
- From the Project Menu Set Active Target select the name of your script
file here Xenv.sh
you can build now, it should work ...