readme.md

CASAviewer

The CASA viewer has been built and distributed as part of CASA for many years. This repository makes it possible to build the CASA viewer without building the rest of CASA. At some point in the near future, CASAviewer (built from this repository) will become the default viewer for CASA distributions. It will be included directly in the distribution for some time to come, but eventually users will be able to chose between the CASAviewer and CARTA.

Building

On macOS, this builds a macOS App. On linux, it builds an AppImage. In both cases, this is accomplished with qmake supplemented with some Java tools (fetched from NRAO) and the AppImage packaging program (on Linux).

This is designed to build with Qt 4.8.* It may build with Qt 5.*, but this has not been tested and may result in GUI layout problems. To build this, some prerequsites must be installed (a subset of the standard CASA third-party package suite). If you need to install these, take a look here for some hints.

Checkout

Checkout the CASAviewer source code:

-bash-4.2$ git clone -q --recursive https://open-bitbucket.nrao.edu/scm/casa/CASAviewer.git

Build

After the CASA build environment is installed, the CASAviewer can be built like:

-bash-4.2$ cd CASAviewer
-bash-4.2$ type qmake
qmake is /opt/local/libexec/qt4/bin/qmake
-bash-4.2$ qmake
-bash-4.2$ make

This will create a build subdirectory. The build subdirectory will contain a bin.* directory. On OSX, this will contain an OSX application directory, and on Linux, it will contain an AppImage. For OSX builds, an additional script (scripts/create-dmg) is available to create the final, packaged dmg containing the CASAviewer OSX app.

The Python casaviewer package can be built like:

-bash-4.2$ make py

after the casaviewer application has been built.

Add shortcut

Everything looks good. We'll let you know here if there's anything you should know about.