Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install cygwin, if you do not already have it.
    Include gcc-g77 in the installation
    You may need to install an older version of "make"
    Rename the link.exe to link_cyg.exe, so it will not be used.  See:  http://geant4.web.cern.ch/geant4/support/windows_note.shtml
  2. Obtain and build CLHEP 1.9.2.3 (the source for 1.9.2.2 no longer seems to be available)
  3. Obtain the source from /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/geant4-8.0.p01-gl4-src.tar.gz and unpack a geant4.8.0.p01 directory will be created.
  4. In a DOS command window, set up to use VS 2008:
    1. set PATH=
    2. set LIB=
    3. set INCLUDE=
    4. Run C:\Program Files\Microsoft Visual Studio 9.0\Common\Tools\vsvars32.bat
    5. set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib;%LIB%
    6. set PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;%PATH%
    7. set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;include;%INCLUDE%
  5. Start up a cygwin session:
    cd cygwin/bin
    bash --login -i
  6. Enter the directory containing your G4 source code
  7. Set the G4_NO_VERBOSE flag
    export G4_NO_VERBOSE=1
  8. set CLHEP_LIB to CLHEP.lib (avoid trouble building shared libraries)
    export CLHEP_LIB=CLHEP.lib
  9. Create a data directory in the top-level of the G4 source
  10. Run G4's Configure script
    ./Configure -build
    1. OS: WIN-VC
    2. Expect to run these binaries on multiple machines:  y
    3. You'll answer where the source is located
    4. Take default for where to install the libraries
    5. Copy all headers into one directory
    6. Store data in data directory
    7. Accept default directories
    8. Provide the location of CLHEP
      Base Directory:  $GLAST_EXT/CLHEP/1.9.2.3
      1. and double-check the setting of CLHEP_LIB
    9. Do not Build shared libraries - lwe haven't been able to use them with GR for some time
    10. Build static libraries too
    11. Do not build in DEBUG
    12. G4UI_NONE  accept default n
    13. G4UI_BUILD_XAW_SESSION  accept default n
    14.  G4UI_BUILD_XM_SESSION  accept default n
    15.  G4VIS_NONE  accept default n
    16. G4VIS_BUILD_OPENGLX_DRIVER  accept default n
    17. G4VIS_BUILD_OPENGLXM_DRIVER  accept default n
    18. G4VIS_BULID_DAWN_DRIVER  accept default n
    19. G4VIS_BUILD_OIX_DRIVER  accept default n
    20. G4VIS_BUILD_RAYTRACERXX_DRIVER  Set to Yes
    21. G4VIS_BUILD_VRML_DRIVER  Set to Yes
    22. G4LIB_BUILD_G3TOG4   Set to Yes
    23. G4LIB_BUILD_ZLIB   Set to Yes
    24. G4ANALYSIS_USE  Accept default n
  11. After the build is complete, do ./Configure -install
    This should copy al the headers to the top level include directory
  12. Rename all the *.a static libraries to *.lib