Temporary repo to put deploy scripts and stuff
(Assuming installation of all packages and libraries described on https://github.com/CARTAvis/carta is already done)
-
Export your Qt path e.g.
export PATH=/Qt5.3.2/5.3/gcc_64/bin:$PATH
-
Download the latest CARTA source code
git clone https://github.com/CARTAvis/carta.git CARTAvis
-
Build the html part
cd CARTAvis/carta/html5/common/skel && generate.py build && cd ../../../../../
-
Prepare a build directory e.g.
mkdir build && cd build
-
Run the Qt qmake e.g.
qmake NOSERVER=1 CARTA_BUILD_TYPE=dev ../CARTAvis/carta -r
-
Build the code e.g.
make -j 4
-
Download the appropriate packaging script from here e.g
svn export https://github.com/CARTAvis/deploytask/trunk/final_centos7_packaging_steps.sh
-
Modify paths in the script for your system and run the script
chmod 755 final_centos7_packaging_steps.sh && ./final_centos7_packaging_steps.sh
These scripts automatically download two archives as follow:
-
measures_data
containing the ephemerides and geodetic files: http://www.asiaa.sinica.edu.tw/~ajm/carta/measures_data.tar.gz -
images
containing a few sample images: http://www.asiaa.sinica.edu.tw/~ajm/carta/images.tar.gz
They also download and use updated versions of the Mac Carta.app
and Linux carta-distro
templates that have been extracted from the original NRAO casa-pkg
template.
The Carta.app
and carta-distro
are on this repository.
The casarc
, carta.sh
, and setupcartavis.sh
files are slightly different between Mac and Linux, and the latest versions have been put inside the appropriate templates for now.
- Unify the
casarc
,carta.sh
, andsetupcartavis.sh
so that only one version is needed between Mac and Linux. - Make
setupcartavis.sh
obsolete. - Unify the CentOS7 and CentOS6 scripts into a single Linux script.
After the 28th April 2017, the carta develop branch changed the name of the main executable. Old executable name: desktop
. New executable name: CARTA
.
We need to update the current casa-pkg template for this new change but the separate Carta.app
and carta-distro
templates on this repository already contain these changes.
If you really want to use the casa-pkg
template, you can make the changes manually with a symbolic link (Here assuming casa-pkg is downloaded to /tmp/).
For Mac:
cd /tmp/casa-pkg/packaging/template/osx/Carta.app/Contents/MacOS
ln -s @@WS@@/Contents/MacOS/CARTA CARTA
rm desktop
For Linux:
cd /tmp/casa-pkg/packaging/template/linux/carta-distro/bin
ln -s @@WS@@/CARTA CARTA
rm desktop
Also, make sure the carta.sh
you are using has updated the line appname=desktop
to appname=CARTA
Any branches before 28th April 2017 still use the old desktop
name.