toltec-astro / macana2

AzTEC data reduction pipeline
0 stars 2 forks source link

Macana2

Get Macana2

git clone https://github.com/toltec-astro/macana2.git

This will create a folder of name macana2 in your current directory.

Build Macana2

Macana2 consists of with two sets of programs:

While both of these depend on some common external libraries to compile and run, the testing tools require additional software packages and settings.

Build guides:

macOS

Install common dependencies

Homebrew is recommended to install the common dependencies.

Build production tools

With the common dependencies installed, we can build the production tools using cmake:

cd macana2
mkdir build
cd build
cmake ..

Install dependencies for testing tools

The testing GUI is built using Qt, and the unittests uses Google Test framework. qmake from Qt is needed to generate the Makefile to build both tools.

Build testing tools

Once the additional dependencies are installed, we can build the testing tools using qmake:

cd macana2
mkdir qtbuild
cd qtbuild
/path/to/qmake ../macana2.pro

Note: There might be issues running qmake if Qt is not installed in a standard location (such as /Applications/Qt for macOS). It is recommended to use Qt Creator to configure the building environment, as well as build and run the project.

Caveat: In Qt Creator, the default "Run" settings under "Project" tab may have "Add build library search path to ..." checked. Uncheck if the program could not find the shared/dylib libraries at runtime.

Run Macana2

Production tools

The executables including macanap and beammap reside in build/bin/, e.g.,

/path/to/build_dir/bin/beammap apb.xml

Testing tools

The beammap_gui executable is in qtbuild/beammap_gui/, and macana_test is in qtbuild/test/.

Documentation

TBD