Instructions to build CASA for MAC (OSX)

Common to all OSX versions

Install xtools

Plain MAC OSX installations come w/o the developer tools, so things like svn or gcc are not going to be available out of the box. It is necessary to install them manually but fortunatelly MAC provides a complete pluging with everything necessary: Xtools which are available under https://developer.apple.com once you have created one account (for free).

Install developer tarball

Developer tarballs contain all the 3rd party packages needed by CASA. The CASA release build and test team prepares one per OSX version which are available under https://svn.cv.nrao.edu/casa/devel/osx/third-party-binaries/

They come in the form of a tarball which have to be uncompressed and install under /opt/casa/

Also, for convenience you may dowload the CASA data repository (at leats ephemerides and geodetic) under /opt/casa/data and create a link in the top level of your build area.

OSX 10.8 (verified for OSX10.8.3)

Build casacore

cmake '-DCMAKE_CXX_COMPILER=/usr/bin/clang++' '-DCMAKE_C_COMPILER=/usr/bin/clang' '-DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-apple-4.2' '-DLLVMCOMPILER=1' '-DCMAKE_BUILD_TYPE=Debug' -DBUILD_TESTING=OFF '-DCMAKE_INSTALL_PREFIX=../../darwin' ..

Build code

cmake '-DCMAKE_CXX_COMPILER=/usr/bin/clang++' '-DCMAKE_C_COMPILER=/usr/bin/clang' '-DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-apple-4.2' '-DLLVMCOMPILER=1' '-DREADLINE_ROOT_DIR=/opt/casa/01' '-Darch=darwin' '-DCMAKE_BUILD_TYPE=Debug' -DINTERACTIVE_ITERATION=1 '-Dpgplot_ext=_nox' '-DCMAKE_INSTALL_PREFIX=../../darwin' ..

Build gcwrap

cmake '-DCMAKE_CXX_COMPILER=/usr/bin/clang++' '-DCMAKE_C_COMPILER=/usr/bin/clang' '-DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-apple-4.2' '-DLLVMCOMPILER=1' '-DREADLINE_ROOT_DIR=/opt/casa/01' '-Darch=darwin' '-DCMAKE_BUILD_TYPE=Debug' -DINTERACTIVE_ITERATION=1 '-Dpgplot_ext=_nox' '-DCMAKE_INSTALL_PREFIX=../../darwin' ..

Build asap

cmake '-DCMAKE_CXX_COMPILER=/usr/bin/clang++' '-DCMAKE_C_COMPILER=/usr/bin/clang' '-DCMAKE_Fortran_COMPILER=/opt/casa/01/bin/gfortran-apple-4.2' '-DLLVMCOMPILER=1' '-DPYTHON_LIBNAME=2.7' '-Darch=darwin' '-DCMAKE_BUILD_TYPE=Debug' ..

-- JustoGonzalez - 2015-01-12

This topic: Software > WebHome > LegacyCASA > ObtainingCASA > CasaIndex > BuildCasaForMac
Topic revision: 2015-01-12, JustoGonzalez
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