TWiki
>
LinearCollider Web
>
GlaDD4hep
>
MacDD4hep
(2014-05-12,
DanProtopopescu
)
(raw view)
E
dit
A
ttach
---+ Attempting to build DD4hep on a Mac %TOC% ---++ Ingredients 1. CMake 2.8 or higher 1. Xerces-C (might be optional) 1. Geant4 1. CLHEP (might be optional) 1. Root 1. DD4hep ---++ Problems 1. Need CMake 2.8 or newer 1. Geant4 must be compiled with GDML 1. Downloaded root binary needs libpcre.dylib 1. DD4hep needs libssl.1.0.0.dylib 1. ILCSoft is required and did not install on a Mac ---++ 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=/Users/protopop/DD4hep 1. make 1. make install 1. export PATH=$PATH:/Users/protopop/DD4hep/cmake-2.8.12.2/bin Xerces-C: 1. get Xerces-C from http://xerces.apache.org/xerces-c 1. unpack 1. cd xerces-c-3.1.1/ 1. ./configure (after editing ac_default_prefix install path in the script itself) 1. make 1. make install 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=/Users/protopop/DD4hep/Geant4 -DGEANT4_USE_GDML=ON -DXERCESC_INCLUDE_DIR=/Users/protopop/DD4hep/xercesc/include -DXERCESC_LIBRARY=/Users/protopop/DD4hep/xercesc/lib/libxerces-c.dylib .. 1. make 1. make install CHLEP: 1. get chlep from http://proj-clhep.web.cern.ch/proj-clhep/ 1. unpack Root: 1. get root precompiled binary from http://root.cern.ch/drupal/content/production-version-534 1. unpack and find out that root requires *libpcre.dylib* ... 1. get pcre from http://sourceforge.net/projects/pcre/ 1. cd pcre-8.35/ 1. ./configure 1. make 1. make install prefix=/Users/protopop/DD4hep/pcre 1. export DYLD_LIBRARY_PATH=/Users/protopop/DD4hep/pcre/lib 1. now root will run !OpenSSL: 1. get openssl via macports with 'sudo port install openssl 1. export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/local/lib Now the actual DD4hep compilation: 1. get DD4hep with svn co https://svnsrv.desy.de/public/aidasoft/DD4hep/trunk DD4hep 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 /Users/protopop/DD4hep/root-v5-34-00-patches/bin/thisroot.sh 1. source /Users/protopop/DD4hep/Geant4/bin/geant4.sh 1. export CLHEP_BASE_DIR="/Users/protopop/DD4hep/chlep_x86_64-mac106-gcc42-opt 1. export DYLD_LIBRARY_PATH=/Users/protopop/DD4hep/pcre/lib:/opt/local/lib 1. cmake -DCMAKE_INSTALL_PREFIX=/Users/protopop/DD4hep -DDD4HEP_WITH_GEANT4=on -DGeant4_DIR=/Users/protopop/DD4hep/Geant4/lib/Geant4-9.5.2 -DDD4HEP_USE_XERCESC=ON -DXERCESC_ROOT_DIR=/Users/protopop/DD4hep/xercesc .. 1. make 1. cd lib/ 1. export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/protopop/DD4hep/xercesc/lib 1. /Users/protopop/DD4hep/root-v5-34-00-patches/bin/genmap -debug -i libDD4hepG4Legacy.dylib -o libDD4hepG4Legacy.rootmap 1. cd ../ 1. make install To try the first examples, we need *gear*: 1. download GEAR from http://ilcsoft.desy.de/portal/software_packages/gear/index_eng.html 1. and this needs ilcutils ... 1. ... but ilcsoft doesnt want to install on a Mac so back to the [[LinuxDD4hep][linux box]] ...
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2014-05-12
-
DanProtopopescu
LinearCollider
Log In
or
Register
LinearCollider Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
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