Skip to content
AS edited this page Apr 24, 2024 · 3 revisions

"Minimal" KKMCee-dev building instructions

#
# ... ROOT ...
#
# https://root.cern.ch/
# https://github.com/root-project/root/
#
# Add the ROOT libraries and executables to your environment:
#
# source /your/ROOT/distribution/bin/thisroot.sh
#

#
# cd /your/preferred/working/directory
#

#
# ... GNU Libtool ...
#
# https://www.gnu.org/software/libtool/
# https://ftp.gnu.org/gnu/libtool/?C=M;O=D
#
# Note: ONLY IF one uses Debian, Ubuntu, or any "derived" system,
#       one needs to compile and use the standard "GNU Libtool".
#
wget https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.xz
rm -rf libtool-2.4.7
tar -Jxf libtool-2.4.7.tar.xz
cd libtool-2.4.7
rm -rf ${PWD}/../libtool
nice ./configure --prefix=${PWD}/../libtool |& tee -a configure.out.txt
nice make |& tee -a make.out.txt
nice make install |& tee -a make_install.out.txt
cd ..
#
export PATH="${PWD}/libtool/bin${PATH:+:${PATH}}"
export LD_LIBRARY_PATH="${PWD}/libtool/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
export ACLOCAL_PATH="${PWD}/libtool/share/aclocal${ACLOCAL_PATH:+:${ACLOCAL_PATH}}"
#

#
# ... HepMC3 ...
#
# https://hepmc.web.cern.ch/hepmc/
# https://gitlab.cern.ch/hepmc/HepMC3
#
wget https://hepmc.web.cern.ch/hepmc/releases/HepMC3-3.2.7.tar.gz
rm -rf HepMC3-3.2.7
tar -zxf HepMC3-3.2.7.tar.gz
cd HepMC3-3.2.7
rm -rf ${PWD}/../HepMC3
nice cmake -DCMAKE_INSTALL_PREFIX=${PWD}/../HepMC3 -DHEPMC3_ENABLE_PYTHON=OFF CMakeLists.txt |& tee -a cmake.out.txt
nice cmake --build . |& tee -a cmake_build.out.txt
nice cmake --install . |& tee -a cmake_install.out.txt
cd ..
#
# export PATH="${PWD}/HepMC3/bin${PATH:+:${PATH}}"
# export LD_LIBRARY_PATH="$(HepMC3-config --libdir)${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
# export CMAKE_PREFIX_PATH="$(HepMC3-config --prefix)/share/HepMC3${CMAKE_PREFIX_PATH:+:${CMAKE_PREFIX_PATH}}"
#

#
# ... PHOTOS ...
#
# https://photospp.web.cern.ch/photospp/
# https://gitlab.cern.ch/photospp/photospp
#
wget https://photospp.web.cern.ch/photospp/resources/PHOTOS.3.64/PHOTOS.3.64.tar.gz
rm -rf PHOTOS PHOTOS.3.64
tar -zxf PHOTOS.3.64.tar.gz
mv PHOTOS PHOTOS.3.64
cd PHOTOS.3.64
nice ./configure --prefix=${PWD}/../PHOTOS --without-hepmc --with-hepmc3=${PWD}/../HepMC3 |& tee -a configure.out.txt
nice make |& tee -a make.out.txt
nice make install |& tee -a make_install.out.txt
cd ..
#
# export LD_LIBRARY_PATH="${PWD}/PHOTOS/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
#

#
# ... KKMCee-dev ...
#
# https://github.com/KrakowHEPSoft/
#
rm -rf KKMCee-dev
# tar -zxf KKMCee-dev.2023.10.22.23.59.000.tar.gz # a local ".tar.gz" file
git clone --depth 1 [email protected]:KrakowHEPSoft/KKMCee-dev.git # the "Private" repository
# git clone --depth 1 --branch FCC_release_cpp https://github.com/KrakowHEPSoft/KKMCee.git KKMCee-dev # the "Public" repository
cd KKMCee-dev
rm -f autoreconf.out.txt configure.out.txt make.out.txt
ln -f -s dizet-6.45 dizet # or take dizet-6.42 or dizet-6.21
nice autoreconf -f -i |& tee -a autoreconf.out.txt
# note: GCC < 6.1 may need, e.g.: nice ./configure CXXFLAGS="-std=c++11 -g -O2" ...
nice ./configure --with-hepmc=${PWD}/../HepMC3 --with-photos=${PWD}/../PHOTOS |& tee -a configure.out.txt
nice make |& tee -a make.out.txt
cd ..
#

# end of file KKMCee-dev.minimal.txt by Jacek M. Holeczek
Clone this wiki locally