Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Studio 2008 full install, not sure if the Express edition has SDK set up the same way.
  2. GoGui 0.9.5 or later (and a couple required libraries if you don't already have them)
    #
  3. Install SCons 1.2.0.d2009022
  4. Obtain External libraries for Visual Studio 2008 from /nfs/farm/g/glast/u05/extlib/VC90  Currently that would include:
    ape 2.5.1
    cfitsio v3060A
    CLHEP 1.9.4.2
    cppunit 1.10.2
    f2c 3.4-gl1
    fftw 3.1.2
    ROOT v5.20.00-gl4
    swig 1.3.31
    xerces 2.8.0
  5. Obtain a copy of a LATEST ST build from CVS, i.e. ScienceTools-LATEST-1-2829:
    cvs -z9 co -r ScienceTools-LATEST-1-2829 -d ScienceTools-1-2829 ScienceTools-scons
    1. To determine what LATEST builds are currently available use the RMViewer available from ftp://ftp-glast.slac.stanford.edu/glast.u05/RMViewer/
  6. cd into the top-level ScienceTools directory and do:## cvs update -A -l
    1. cvs update -A -l site_scons\site_tools
  7. Add the files makeStudio.py and msvs.py in CVS. These files should be added to site_scons/site_tools under the top ScienceTools (or other container) directory.
  8. Edit the file site_scons\site_tools\registerTargets.py
    1. Uncomment the line from makeStudio.py import *
    2. Uncomment the section calling makeStudio at the bottom of the registerTargets.py file
  9. Update externals.scons to use ROOT v5.20.00-gl4 for windows
  10. Update SConstruct to uncomment the line:
    import msvs
    and comment out the line
    import SCons.Tool.msvs as msvs
  11. Start up GoGui and take a look at the GoGui Hints on the page:  https://confluence.slac.stanford.edu/display/SAS/SCons+and+Windows+-+a+LogThere is also an attachment to this page that includes an overview of the file structure and a Windows-specific section:  http://confluence.slac.stanford.edu/download/attachments/40633641/SCons_files_overview.pdf?version=2
    1. Users should go to the utility options item in the Options menu to make sure the correct SCons will be used.  For windows this means going to Options->utility Options->scons command to something like:  C:\Python25\Scripts\scons.bat
    2. Go also to build options under the Options menu and select vc9 for the compiler.
    3. Under Options choose setup the base path and point to the installation of the ScienceTools source
  12. Choose the top-level package in the Navigator panel and then
    1. In the command line text box, type setup and Enter.  This will create the file _setup.bat, used to set environment variables when Studio is invoked.
    2. In the command line text box type, to_install and Enter.  Installs includes, xml files, python files, etc in the top-level directory.
    3. In the commnad line tesxt box type, StudioFiles and Enter.  Creates all project and solution files.
  13. You should now have solution files for most if not all of the packages in the ST distribution.  To open one using Visual Studio, choose a package, such as facilties and click on the MSC++ icon in the GoGui window.
  14. You can also create solution files for individual packages by highlighting a package name in the Navigator window and clicking on "Build".