Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarrand committed Jun 9, 2018
1 parent 8802323 commit 92bb39e
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -39,39 +39,4 @@

See the <app> section on http://gbarrand.github.io for more.

///////////////////////////////////////////////////////////////////////////////////////////////////////
/// For apps related to geant4 (g4exa, g4view, MEMPHYS, MEMPHYS_vis) : ////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////
The packing comes with a inexlib/ourex/geant4<version> in sync with the code of the app, and the build
can proceed by using the upper commands, but you may want to build the app by using an already installed
geant4. As our distribution packing (done with bush/app_distrib) does not handle (yet) shared libraries,
you must have a geant4 built with archive libs (<geant4_install_dir>/[lib,lib64]/libG4FR.a, etc...). If not,
a below "build -sys_geant4" will stop. (The check for geant4 archives is done by bush/use/geant4<version>).
We remember that to have archive libraries for geant4, you have to build it with the cmake option
"-DBUILD_STATIC_LIBS=ON" (and "-DBUILD_SHARED_LIBS=ON" to have also shared libs).

The to build the app distribution :
UNIX> cd <app>/mgr

sh> . <geant4_install_dir>/bin/geant4.sh
( csh> source <geant4_install_dir>/bin/geant4.csh )
UNIX> geant4-config # to test that this program is here.

Linux> <if needed source setup a gcc_[version].[sh,csh] file to have the correct g++>
( csh> source gcc_493.csh # on Lund iridium )
UNIX> ./build -sys_geant4 # -sys_geant4 to use the geant4 pointed by geant4-config.
( UNIX> ./build -sys_geant4 -v # to see built files.)
( UNIX> ./build -sys_geant4 -x # for a full trace.)

Darwin> ./build -sys_geant4 -x11 -bin_x11 # to build the X11 version on macOS.

At end, you should have a distribution file :
bin_<config>/distrib/<app>-<version>-<platform>.zip

WARNING, WARNING, WARNING, WARNING, WARNING, WARNING, WARNING, WARNING, WARNING :
If running from the build area by having done the "source geant4 setup", be sure that the
environment variables : G4NEUTRONHPDATA, G4LEDATA, G4LEVELGAMMADATA, G4ENSDFSTATEDATA, G4SAIDXSDATA
points to valid Geant4 data directories. If not, you are going to have crashes at startup.
The best, if building by using an installed geant4 (a "sys_geant4"), is to run the app from
a brand new shell.

0 comments on commit 92bb39e

Please sign in to comment.