Under construction:

Extra flags for C++11

Note: These flags are required to enable C++11 support. You need to install devtoolset-2 rpms from the Casa repository before attempting the build with these

Note: -DBoost_NO_BOOST_CMAKE=1 flag is needed for cmake versions later than 2.8.5. Alternatively you can remove the later version and install 2.8.5 with "yum install cmake-2.8.5".

Note: Prepend your PATH with: /usr/lib64/casa/01/bin .

Note: The correct compiler to use is cmake28 from epel. This is available from the casa rpm repository.

-DCXX11=1 -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_Fortran_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gfortran

Casacore

cmake28 -DCASA_BUILD=1 -DBoost_NO_BOOST_CMAKE=1 -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=../../linux -DBUILD_PYTHON=1 -DPYTHON_INCLUDE_DIR=/usr/lib64/casa/01/include/python2.7 -DPYTHON_LIBRARY=/usr/lib64/casa/01/lib/libpython2.7.so -DBOOST_ROOT=/usr/lib64/casa/01 -DCXX11=1 -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran ..

Code

cmake28  -Darch=linux -DBoost_NO_BOOST_CMAKE=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran ..

Gcwrap

cmake28 -Darch=linux -DBoost_NO_BOOST_CMAKE=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran ..

Asap

cmake28 -Darch=linux -DBoost_NO_BOOST_CMAKE=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran ..
Topic revision: r14 - 2015-12-22, VilleSuoranta
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback