---+ Building DD4hep on a linux box with ILCSoft already installed %TOC% ---++ Ingredients 1. CMake 1. Xerces-C 1. expat-devel 1. Geant4 1. DD4hep ---++ Problems 1. Need CMake 2.8 or newer 1. Geant4 must be compiled with *GDML* and needs *expat-devel* 1. Downloaded root binary needs libpcre.dylib 1. 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 dos: CMake: 1. get cmake-2.8.12.2 from http://www.cmake.org 1. unpack 1. cd cmake-2.8.12.2/ 1. ./bootstrap --prefix=~/Utils4DD4hep/packages/cmake 1. make 1. make install 1. export PATH=~/Utils4DD4hep/packages/cmake/bin:$PATH Xerces-C: 1. get Xerces-C from http://xerces.apache.org/xerces-c 1. unpack 1. cd xerces-c-3.1.1/ 1. set ac_default_prefix=~/Utils4DD4hep/packages/xercesc in the configure script 1. ./configure 1. make 1. 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 1. unpack 1. cd geant4.9.5.p02/ 1. mkdir build 1. cd build 1. 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 .. 1. make 1. make install DD4hep itself: 1. get DD4hep from https://svnsrv.desy.de/viewvc/aidasoft/DD4hep/?view=tar 1. cd DD4hep 1. edit DDG4/src/Geant4UIManager.cpp and change line 55 to ui = new !G4UIExecutive(1,(char**)args);//,m_sessionType.c_str()); 1. mkdir build 1. cd build/ 1. source /data/ppe01/sl5x/x86_64/root/5.34.07/bin/thisroot.sh 1. source ~/Utils4DD4hep/packages/Geant4/bin/geant4.sh 1. 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 ../tags/v00-06 1. make -j install ---++ First test 1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh 1. cd examples/firstexample 1. mkdir build 1. cmake -DDD4hep_DIR=../../ ../ 1. make -j 1.
This topic: LinearCollider
>
WebHome
>
GlaDD4hep
>
LinuxDD4hep
Topic revision: r3 - 2014-05-12 - DanProtopopescu
Copyright © 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