Important: On NRAO machines the /opt/local can mess with your build. There are a couple of ways around this.

Option 1) Patch the CMakeLists.txt for Code with the chances from Code CMake Patch
Option 2) Read protect or remove /opt/local while doing the build

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-04-20
Topic revision: r5 - 2015-11-16, 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