Difference: LinuxDD4hep (1 vs. 8)

Revision 82014-11-11 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 27 to 27
 
  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)
Added:
>
>
  1. 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:

Revision 72014-06-03 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Added:
>
>
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

Line: 31 to 33
 
[protopop@ppepc102 build]$ make test
Running tests...
Changed:
<
<
Test project /afs/phas.gla.ac.uk/user/p/protopop/DD4hep/build
>
>
Test project /afs/phas.gla.ac.uk/user/p/protopop/ilc_soft/DD4hep/build
  Start 1: t_test_example
Changed:
<
<
1/3 Test #1: t_test_example ................... Passed 0.23 sec
>
>
1/3 Test #1: t_test_example ................... Passed 0.52 sec
  Start 2: t_test_units
Changed:
<
<
2/3 Test #2: t_test_units ..................... Passed 0.34 sec
>
>
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

Changed:
<
<
Total Test time (real) = 1.04 sec
>
>
Total Test time (real) = 1.73 sec
 

First example

  1. cd DD4hep
Added:
>
>
  1. (source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-17/init_ilcsoft.sh)
 
  1. source ./bin/thisdd4hep.sh
  2. cd examples/firstExample
  3. mkdir build; cd build/

Revision 62014-05-21 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 11 to 11
 

Installation Steps

Changed:
<
<
On top a a working ILCSoft installation, say v01-14:
>
>
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
Deleted:
<
<
  1. (comment out unnecessary packages in CMakeLists.txt)
 
  1. mkdir build
Changed:
<
<
  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
>
>
  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-17/init_ilcsoft.sh
 
  1. cd build/
Changed:
<
<
  1. cmake ..
  2. make -j install
>
>
  1. cmake -DBUILD_TESTING=On ..
  2. make install
 
Changed:
<
<

First test

>
>
Troubleshooting:
 
Changed:
<
<
  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
  2. cd examples/firstexample
  3. mkdir build
  4. source bin/thisdd4hep.sh
>
>
  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)

Testing:

[protopop@ppepc102 build]$ make test
Running tests...
Test project /afs/phas.gla.ac.uk/user/p/protopop/DD4hep/build
    Start 1: t_test_example
1/3 Test #1: t_test_example ...................   Passed    0.23 sec
    Start 2: t_test_units
2/3 Test #2: t_test_units .....................   Passed    0.34 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.04 sec

First example

  1. cd DD4hep
  2. source ./bin/thisdd4hep.sh
  3. cd examples/firstExample
  4. mkdir build; cd build/
 
  1. cmake -DDD4hep_DIR=../../ ../
  2. make -j
  3. ./bin/Test_execute ../compact/Sensor_Test.xml
\ No newline at end of file
Added:
>
>
You will see something like this:

SensorTest.png

META FILEATTACHMENT attachment="SensorTest.png" attr="" comment="firstExample (screen shot)" date="1400669217" name="SensorTest.png" path="SensorTest.png" size="172416" user="DanProtopopescu" version="2"

Revision 52014-05-19 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 16 to 16
 
  1. get DD4hep with 'svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep'
  2. cd DD4hep
Changed:
<
<
  1. comment out unnecessary packages in CMakeLists.txt
>
>
  1. (comment out unnecessary packages in CMakeLists.txt)
 
  1. mkdir build
  2. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
  3. cd build/

Revision 42014-05-17 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 6 to 6
 

Ingredients

Changed:
<
<
  1. CMake
  2. Xerces-C
  3. expat-devel
  4. Geant4
>
>
  1. ILCSoft installation
 
  1. DD4hep
Deleted:
<
<

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

Deleted:
<
<
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
  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
 
Changed:
<
<
Expat:
>
>
On top a a working ILCSoft installation, say v01-14:
 
Changed:
<
<
  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
>
>
  1. get DD4hep with 'svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep'
 
  1. cd DD4hep
Changed:
<
<
  1. edit DDG4/src/Geant4UIManager.cpp and change line 55 to ui = new G4UIExecutive(1,(char**)args);//,m_sessionType.c_str());
>
>
  1. comment out unnecessary packages in CMakeLists.txt
 
  1. mkdir build
Added:
>
>
  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
 
  1. cd build/
Changed:
<
<
  1. source /data/ppe01/sl5x/x86_64/root/5.34.07/bin/thisroot.sh
  2. source ~/Utils4DD4hep/packages/Geant4/bin/geant4.sh
  3. 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. cmake ..
 
  1. make -j install

First test

Line: 75 to 28
 
  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
  2. cd examples/firstexample
  3. mkdir build
Added:
>
>
  1. source bin/thisdd4hep.sh
 
  1. cmake -DDD4hep_DIR=../../ ../
  2. make -j
Changed:
<
<
>
>
  1. ./bin/Test_execute ../compact/Sensor_Test.xml

Revision 32014-05-12 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 67 to 67
 
  1. cd build/
  2. source /data/ppe01/sl5x/x86_64/root/5.34.07/bin/thisroot.sh
  3. source ~/Utils4DD4hep/packages/Geant4/bin/geant4.sh
Changed:
<
<
  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 ../trunk/
  2. make -j install fails because of coding errors in DDRec/src/Surface.cpp
>
>
  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
  2. make -j install

First test

  1. source /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
  2. cd examples/firstexample
  3. mkdir build
  4. cmake -DDD4hep_DIR=../../ ../
  5. make -j

Revision 22014-05-12 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="GlaDD4hep"

Building DD4hep on a linux box with ILCSoft already installed

Line: 60 to 60
  DD4hep itself:
Changed:
<
<
  1. get DD4hep with svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep
>
>
  1. get DD4hep from https://svnsrv.desy.de/viewvc/aidasoft/DD4hep/?view=tar
 
  1. cd DD4hep
  2. edit DDG4/src/Geant4UIManager.cpp and change line 55 to ui = new G4UIExecutive(1,(char**)args);//,m_sessionType.c_str());
  3. mkdir build
  4. cd build/
  5. source /data/ppe01/sl5x/x86_64/root/5.34.07/bin/thisroot.sh
  6. source ~/Utils4DD4hep/packages/Geant4/bin/geant4.sh
Changed:
<
<
  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 ..
  2. make
  3. make install
>
>
  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 ../trunk/
  2. make -j install fails because of coding errors in DDRec/src/Surface.cpp

Revision 12014-05-12 - DanProtopopescu

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="GlaDD4hep"

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 dos:

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 with svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep
  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 ..
  9. make
  10. make install
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback