Versions Compared

Key

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

Installing the DST Tools

Preliminaries

The DST maker and HpsEvent API require the following packages before they can be built: You must have these build tools available on the system.

  • GCC
    • version >= 4.8 (need C++11 support)
  • CMake
    • version >= 2.8

These package dependencies must be installed as well (details covered below):

  • LCIO
    • trunk or the last release should work fine
  • The LCIO C++ API
  • ROOT data analysis frameworkROOT
    • tested with 5.34/11 but any version greater than this should work
  • Generalized Broken Lines
    • CMake
      • version >= 2.8
    • Doxygen (Optional. Used
      • tag for 1.16.2 is used

    If you want to build the documentation then this is also required.

    ...

     

    Linux Build Environment

    SLAC

    The default, shared Linux environment at SLAC can not be used as the version of gcc is too old.

    On SLAC, a A more recent environment can be setup and checked as follows.

    ...

    You should see the following GCC version.

    No Format
    gcc (GCC) 4.8.2

    This version should support C++11.

    Installing CMake

    It is likely your system already has a recent enough version of CMake installed on it.

    ...

    No Format
    $ which cmake
    /usr/bin/cmake
    
    $ cmake
    cmake version 2.8.12.2
    [...]

    If CMake is not found or the version is too old, then follow the Installing CMake guide to build it.

    ...

    Follow the instructions at the ROOT website to install it. 

    Then you will want to source the setup script which will set the ROOTSYS variable.

    Code Block
    languagebash
    . bin/thisroot.sh

    This should set ROOTSYS to point at your ROOT installation.

    Installing GBL

    Code Block
    languagebash
    cd workdir
    svn checkout http://svnsrv.desy.de/public/GeneralBrokenLines/tags/V01-16-02 GeneralBrokenLines
    cd GeneralBrokenLines/cpp
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=../.. ..
    make install
    cd ../..
    export GBL_DIR=$PWD

    ...