You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Prerequisites

Python

If you don't already have it (python external libraries under GLAST_EXT don't count) install python from the official site .  Version should be at least 2.5; 2.6 or 2.7 preferred.  Do not install anything in the 3.x series.

SCons

You'll need 1.3.0 or newer; 2.1.0 is preferred.  You can get it from the official SCons site .

GlastRelease

GR source

First determine what specific tag you want.  (Currently - May 26th - LATEST 5670 looks like a good bet.)  It can be checked out of CVS

cvs co -d GR-5670 -r GlastRelease-LATEST-1-5670 GlastRelease-scons

(note the -d option above is not necessary. Including -d GR-5670 will cause the top-level directory of the check-out code to be called GR-5670.  By default it would be named after the module being checked out; i.e., GlastRelease-scons)

or you can copy a zip file of source from SLAC nfs.  In this case, the path is

/nfs/farm/g/glast/u52/ReleaseManagerBuild/Windows-i386-32bit-vc90/Debug/GlastRelease/GlastRelease-LATEST-1-5670-source.zip

Replace "source" above with "devel" to get a zip file which includes final build products along with source.

At some point - but apparently not quite yet - it will be possible to download the zip files by using one of the SCons installers.

Externals

You will also need a compatible set of externals.  Until the installer is working properly, the easiest way to get any that you don't already have is probably to copy them from the V disk.

Here are the ones used in the SCons build for LATEST 5670:

CLHEP 2.1.2.2-dbg $GLAST_EXT\CLHEP\2.1.2.2-dbg\vc90\lib

cfitsio v3060A $GLAST_EXT\cfitsio\v3060A\vc90\lib

swig 1.3.31 $GLAST_EXT\swig\1.3.31\vc90

xerces 2.8.0-gl1-dbg $GLAST_EXT\xerces\2.8.0-gl1-dbg\vc90\bin

cppunit 1.10.2 $GLAST_EXT\cppunit\1.10.2\vc90\lib

python 2.6.5 $GLAST_EXT\python\2.6.5\vc90

ROOT v5.26.00a-gl3-dbg $GLAST_EXT\ROOT\v5.26.00a-gl3-dbg\vc90\lib

TMineExt 3.2.5 $GLAST_EXT\TMineExt\3.2.5\lib

gaudi v21r7-gl1-dbg $GLAST_EXT\gaudi\v21r7-gl1-dbg\vc90\lib

geant4 9.4.p03-gl1-dbg $GLAST_EXT\geant4\9.4.p03-gl1-dbg\vc90\lib

ldf v07-01-01-gl1 $GLAST_EXT\ldf\v07-01-01-gl1\vc90\lib

mysql 5.1.39 $GLAST_EXT\mysql\5.1.39\vc90\lib\opt

zlib 1.1.4 $GLAST_EXT\zlib\1.1.4\vc90

extFiles v0r9 $GLAST_EXT\extFiles\v0r9

obf B3-0-0 $GLAST_EXT\obf\B3-0-0\lib

OmniOrb 4.1.4 $GLAST_EXT\OmniOrb\4.1.4\vc90\lib

fox 1.4.34-gl2-dbg $GLAST_EXT\fox\1.4.34-gl2-dbg\vc90\lib

Building Preliminary Targets

There is a certain amount of bootstrapping which has to take place before you can use Visual Studio.  Assuming scons is in your path and GLAST_EXT is properly defined, from a VS 2008 console window you can cd to the root directory of your GlastRelease source and issue the following commands:

scons --with-GLAST-EXT=%GLAST_EXT% --compile-debug --vc9 setup

scons --with-GLAST-EXT=%GLAST_EXT% --compile-debug --vc9 StudioFiles

scons --with-GLAST-EXT=%GLAST_EXT% --compile-debug --vc9 to_install

The first creates a file, _setup.bat, which defines environment variables needed before starting up Visual Studio or for running executables belonging to GR once they are built.

The StudioFiles target includes project files for all library and executable targets.  It also writes a solution file for each package and two special files all.sln (references all project files) and allGleam.sln (references all library projects plus Gleam and test_Gleam projects).  

to_install installs all headers, xml files, job options files, etc.  (Recall that, unlike CMT, SCons as we have customized it installs all source files needed at build or run-time as well as libraries and executables.) Almost all of these installs can now be done inside Visual Studio but some critical ones are missing.  I hope to fix this before long.

Starting up VS

Bring up a VS 2008 console window.  Run the setup file created above.  Relative to the root directory of your source installation, it will have a path more or less like

bin\WIndows-i386-32bit-vc90-Debug_setup.bat

Next cd into the directory containing the project and solution files.  Relative to the root directory this will be something like

studio\Windows-i386-vc90-Debug

Then start up VS on one of the solution files, e.g.

devenv allGleam.sln

  • No labels