Commit 44a2efb6 authored by Dirk Hoffmann's avatar Dirk Hoffmann
Browse files

More robust setup and compilation scripts

Also solves the problem reported in ATLLARONL-248
parent 7b836d76
#!/bin/sh
BUILD=build
rm -Rf build
mkdir build
cd build
echo Removing old $BUILD/ directory.
rm -Rf $BUILD
mkdir $BUILD
cd $BUILD
cmake ../ -DSTANDALONE_SCA_SOFTWARE=1 -DHAVE_NETIO=1 -DSTANDALONE_WITH_EVENT_RECORDER=ON -DCMAKE_BUILD_TYPE=Debug
make -j `nproc`
cd ..
echo "Build was made in build/ directory"
echo "Build was made in directory $BUILD/."
exit 0
# This script primarily serves to configure your SCA-SW dependencies for usage with
# TDAQ software ( netio, felixbase, etc)
# TDAQ FELIX software (netio, felixbase, etc)
# You should source this file, not execute it!
# Authors: Paris and Piotr
# Authors: Paris, Piotr and Dirk
if [ $# -eq 0 ]; then
......@@ -21,6 +21,7 @@ rel=$(sed -e 's/\([^:]*:\)\{3\}//;s/:[a-z]*$//;s/:\([0-9]\)\+\.[0-9]*$/\1/' \
/etc/system-release-cpe)
echo Found $rel.
# OS depending settings:
#decide if we are on SLC6 or CC7
case $rel in
......@@ -28,9 +29,7 @@ case $rel in
echo "We're on CentOS..."
export CXX=$CVMFS_LCG/gcc/6.2.0/x86_64-centos7/bin/c++
export CC=$CVMFS_LCG/gcc/6.2.0/x86_64-centos7/bin/gcc
export BOOST_HEADERS=$CVMFS_LCG/LCG_87/Boost/1.62.0/x86_64-centos7-gcc62-opt/include/boost-1_62
export BOOST_LIB_DIRECTORIES=$CVMFS_LCG/LCG_87/Boost/1.62.0/x86_64-centos7-gcc62-opt/lib
export BOOST_LIBS="-lboost_regex-gcc62-mt-1_62 -lboost_chrono-gcc62-mt-1_62 -lboost_program_options-gcc62-mt-1_62 -lboost_thread-gcc62-mt-1_62 -lboost_system-gcc62-mt-1_62 -lboost_filesystem-gcc62-mt-1_62"
export BOOST=$CVMFS_LCG/LCG_87/Boost/1.62.0/x86_64-centos7-gcc62-opt
export FELIX=/FELIX/Software/felix-$FELIX_VERSION/x86_64-centos7-$PLATFORM/
;;
......@@ -40,12 +39,29 @@ case $rel in
export CXX=$CVMFS_LCG/gcc/6.2.0/x86_64-slc6/bin/c++
export CC=$CVMFS_LCG/gcc/6.2.0/x86_64-slc6/bin/gcc
export BOOST=$CVMFS_LCG/LCG_87/Boost/1.62.0/x86_64-slc6-gcc62-opt
export BOOST_HEADERS=$BOOST/include/boost-1_62
export BOOST_LIB_DIRECTORIES=$BOOST/lib
export BOOST_LIBS="-lboost_regex-gcc62-mt-1_62 -lboost_chrono-gcc62-mt-1_62 -lboost_program_options-gcc62-mt-1_62 -lboost_thread-gcc62-mt-1_62 -lboost_system-gcc62-mt-1_62"
#export FELIX=/FELIX/Software/felix-$FELIX_VERSION/x86_64-slc6-$PLATFORM/
export FELIX=/data/FELIX-soft/felix-$FELIX_VERSION/x86_64-slc6-$PLATFORM/
;;
esac
# And generic definitions
#These are the same everywhere
export BOOST_LIBS="-lboost_regex-gcc62-mt-1_62 \
-lboost_chrono-gcc62-mt-1_62 \
-lboost_program_options-gcc62-mt-1_62 \
-lboost_thread-gcc62-mt-1_62 \
-lboost_system-gcc62-mt-1_62 \
-lboost_filesystem-gcc62-mt-1_62"
#And these are defined via $BOOST
export BOOST_HEADERS=$BOOST/include/boost-1_62
export BOOST_LIB_DIRECTORIES=$BOOST/lib
if [ ! -d $FELIX ]; then
echo $FELIX not found.
echo " FELIX software not found in standard place. This will not work."
echo " Please adjust \$FELIX variable or give s/w version as argument."
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment