Building DD4hep on a linux box with ILCSoft already installed

The Glasgow DD4hep installation is located in /afs/phas.gla.ac.uk/data/ilc/software/DD4hep. This wiki describes how this software package was built.

Ingredients

  1. ILCSoft installation
  2. DD4hep

Installation Steps

On top a a working ILCSoft installation, say v01-17:

  1. get DD4hep with 'svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep'
  2. cd DD4hep
  3. mkdir build
  4. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-17/init_ilcsoft.sh
  5. cd build/
  6. cmake -DBUILD_TESTING=On ..
  7. make install

Troubleshooting:

  1. better to have a working ILCSoft installation, else, if trying to install from scratch it gets very complicated
  2. Root older than 5.34 gives problems at compilation (mismatching function prototypes)
  3. for the last compilation, had to edit CMakeLists.txt and insert an add_subdirectory(DDG4) on line 156, and then change in DDG4/include/DDG4/IoStreams.h two things: boost/iostreams/detail/path.hpp to boost/filesystem/path.hpp and boost::iostreams::detail::path to boost::filesystem::path.

Testing:

[protopop@ppepc102 build]$ make test
Running tests...
Test project /afs/phas.gla.ac.uk/user/p/protopop/ilc_soft/DD4hep/build
    Start 1: t_test_example
1/3 Test #1: t_test_example ...................   Passed    0.52 sec
    Start 2: t_test_units
2/3 Test #2: t_test_units .....................   Passed    0.50 sec
    Start 3: t_test_surface
3/3 Test #3: t_test_surface ...................   Passed    0.36 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   1.73 sec

First example

  1. cd DD4hep
  2. (source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-17/init_ilcsoft.sh)
  3. source ./bin/thisdd4hep.sh
  4. cd examples/firstExample
  5. mkdir build; cd build/
  6. cmake -DDD4hep_DIR=../../ ../
  7. make -j
  8. ./bin/Test_execute ../compact/Sensor_Test.xml

You will see something like this:

SensorTest.png

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng SensorTest.png r2 r1 manage 168.4 K 2014-05-21 - 10:46 DanProtopopescu firstExample (screen shot)
Topic revision: r8 - 2014-11-11 - DanProtopopescu
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback