Remember before you start to set the path for QT stuff

export PATH=/opt/casa/02/libexec/qt4/bin:/opt/casa/02/bin:$PATH

Flags when using third party packages from /opt/casa/02

Casacore

cmake -DCASA_BUILD=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DPYTHON_LIBRARY=/opt/casa/02/lib/libpython2.7.dylib -DCMAKE_INSTALL_PREFIX=../../darwin -DBUILD_PYTHON=1 ..

Code

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/02 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..

Gcwrap

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/02 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..

Flags when using third party packages from /opt/casa/01

Casacore

cmake -DCASA_BUILD=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-mp-4.9 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DPYTHON_LIBRARY=/opt/casa/01/lib/libpython2.7.dylib -DCMAKE_INSTALL_PREFIX=../../darwin -DBUILD_PYTHON=1 ..

Code

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-mp-4.9 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/01 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..

Gcwrap

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-mp-4.9 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/01 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..

Asap

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-mp-4.9 -DLLVMCOMPILER=1 -Dcasa_packages=/opt/casa/01 -DPYTHON_LIBNAME=2.7 -Darch=darwin -DCMAKE_BUILD_TYPE=Release ..

-- VilleSuoranta - 2015-12-07
Topic revision: r6 - 2018-11-28, KumarGolap
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