* Accessing the ATM Library

Please note that the ATM library is only available for CASA developers working on ALMA. The ATM library is available via the Charlottesville subversion server, but access is strictly limited.

By default ATM functionality is not turned on in the standard CASA distribution. You must first download and build libATM and then modify your local makedef as follows.

  • Turn on compiling with ATM in your local makedefs by adding,
CPPSTD += -DAIPS_USEATM

  • Add the following ATM definitions to your local makedefs

On the MAC
ATMROOT := $(THIRDPARTY)

On Linux
ATMROOT := /usr

MAC and Linux...

ATMINCD := $(ATMROOT)/include/ATM
ATMLIBD := $(ATMROOT)/lib
ATMLIB :=  -lATM

  • Adjust the SETUPLIBS and SETUPPYTHONLIB makedefs variables

SETUPLIBS := '''$(AIPSARCH)/lib''', '''$(ATMLIBD)''', '''$(THIRDPARTY)/lib'''
SETUPPYTHONLIB := 'ATM', 'xerces-c', 'readline'
  • Add libATM to the external libs to link against

XLIBLIST_shared_xmlcasa += ATM
  • You will then need to rerun

mksetupdotpy.sh
"cd code/xmlcasa" and do a 
gmake componentslib

  • In general the best option for rebuilding casac.so (python binding)
cd code
svn update
rm -rf ../gcode_*
cd xmlcasa
gmake

-- WesYoung - 27 Aug 2007
Topic revision: r1 - 2007-08-27, WesYoung
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