Building DD4hep on a linux box with ILCSoft already installed

Ingredients

  1. CMake
  2. Xerces-C
  3. expat-devel
  4. Geant4
  5. DD4hep

Problems

  1. Need CMake 2.8 or newer
  2. Geant4 must be compiled with GDML and needs expat-devel
  3. Downloaded root binary needs libpcre.dylib
  4. DD4hep needs libssl.1.0.0.dylib

Installation Steps

Would be great if this could have been done simpler, but after a lot of frustrating trial and error I collected this list of must do’s:

CMake:

  1. get cmake-2.8.12.2 from http://www.cmake.org
  2. unpack
  3. cd cmake-2.8.12.2/
  4. ./bootstrap --prefix=~/Utils4DD4hep/packages/cmake
  5. make
  6. make install
  7. export PATH=~/Utils4DD4hep/packages/cmake/bin:$PATH

Xerces-C:

  1. get Xerces-C from http://xerces.apache.org/xerces-c
  2. unpack
  3. cd xerces-c-3.1.1/
  4. set ac_default_prefix=~/Utils4DD4hep/packages/xercesc in the configure script
  5. ./configure
  6. make
  7. make install

Expat:

  1. install expat-devel on the machine via yum

Geant4:

  1. get geant4.9.5.p02 source from http://geant4.web.cern.ch/geant4/support/source_archive.shtml
  2. unpack
  3. cd geant4.9.5.p02/
  4. mkdir build
  5. cd build
  6. cmake -DCMAKE_INSTALL_PREFIX=~/Utils4DD4hep/packages/Geant4 -DGEANT4_USE_GDML=ON -DXERCESC_INCLUDE_DIR=~/Utils4DD4hep/packages/xercesc/include -DXERCESC_LIBRARY=~/Utils4DD4hep/packages/xercesc/lib/libxerces-c.so -DEXPAT_INCLUDE_DIR=/usr/include -DEXPAT_LIBRARY=/lib64/libexpat.so.0 ..
  7. make
  8. make install

DD4hep itself:

  1. get DD4hep from https://svnsrv.desy.de/viewvc/aidasoft/DD4hep/?view=tar
  2. cd DD4hep
  3. edit DDG4/src/Geant4UIManager.cpp and change line 55 to ui = new G4UIExecutive(1,(char**)args);//,m_sessionType.c_str());
  4. mkdir build
  5. cd build/
  6. source /data/ppe01/sl5x/x86_64/root/5.34.07/bin/thisroot.sh
  7. source ~/Utils4DD4hep/packages/Geant4/bin/geant4.sh
  8. cmake -DCMAKE_INSTALL_PREFIX=~/DD4hep -DDD4HEP_WITH_GEANT4=on -DGeant4_DIR=~/Utils4DD4hep/packages/Geant4/lib64/Geant4-9.5.2 -DDD4HEP_USE_XERCESC=ON -DXERCESC_ROOT_DIR=~/Utils4DD4hep/packages/xercesc ../trunk/
  9. make -j install fails because of coding errors in DDRec/src/Surface.cpp


This topic: LinearCollider > WebHome > GlaDD4hep > LinuxDD4hep
Topic revision: r2 - 2014-05-12 - DanProtopopescu
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback