Building DD4hep on a linux box with ILCSoft already installed

The Glasgow DD4hep installation is located in /afs/ This wiki describes how this software package was built.


  1. ILCSoft installation
  2. DD4hep

Installation Steps

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

  1. get DD4hep with 'svn co DD4hep'
  2. cd DD4hep
  3. mkdir build
  4. source /afs/
  5. cd build/
  6. cmake -DBUILD_TESTING=On ..
  7. make install


  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.


[protopop@ppepc102 build]$ make test
Running tests...
Test project /afs/
    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/
  3. source ./bin/
  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:


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
Ideas, requests, problems regarding TWiki? Send feedback