instructions for RH7 (deprecated)
Setup (w/ root 6.26)
- Download and unpack the go4 distribution:
https://web-docs.gsi.de/~go4/download/go4-6.2.0.tar.gz
- Create a
build
folder andcd
to it.
module use unstable # for Qt and hdf5_serial
module load Qt gcc/10.3.0 root/6.26.02 hdf5_serial/1.10.7 cmake/3.20.5 gsl/2.7
- To get
HDF5_ROOT
env var considered, change policy CMP0074 to NEW:
cmake -DCMAKE_POLICY_DEFAULT_CMP0074=NEW -Dhdf5=ON ../go4-6.2.0/
make -j
- Once you reach an error regarding libtiff:
cp /afs/psi.ch/sys/psi.x86_64_slp6/Compiler/root/6.24.06/gcc/10.3.0/lib/libtiff* ./lib/
make -j
Setup (w/ root 6.24)
- Download and unpack the go4 distribution:
https://web-docs.gsi.de/~go4/download/go4-6.2.0.tar.gz
-
Create a
build
folder andcd
to it. -
Load dependencies via pmodules:
module use unstable # for Qt
module load Qt gcc/10.3.0 root/6.24.06 hdf5_serial/1.10.7 cmake/3.20.5
- To get
HDF5_ROOT
env var considered, change policy CMP0074 to NEW:
cmake -DCMAKE_POLICY_DEFAULT_CMP0074=NEW -Dhdf5=ON ../go4-6.2.0/
make -j
- Once you reach an error regarding libtiff:
cd qt4 && $(cat CMakeFiles/go4.dir/link.txt) -ltiff && cd ..
make -j
Just for debugging
The ignored HDF5_ROOT
can also be solved by editing go4-6.2.0/CMakeLists.txt
. Add:
14 cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
15 cmake_policy(VERSION 3.12)
In case, HDF5_ROOT
is not defined:
HDF5_ROOT=$HDF5_PREFIX cmake -Dhdf5=ON ../go4-6.2.0/
Further details regarding the libtiff error:
VERBOSE=1 make -j
Last line misses -ltiff
. Find last line, cd
into right folder (qt4
) and run line again adding -ltiff
at the end.
In case we need the parallel hdf5 lib:
module load Qt gcc/10.3.0 openmpi/4.0.5 root/6.24.06 hdf5/1.10.7 cmake/3.20.5