-
Notifications
You must be signed in to change notification settings - Fork 0
oneClickToBuildCARTAMacDesktop(Draft)
-
homebrew's Qt 5.7/5.8 will build CARTA successfully, but the final packaged can not be runnable on other macs, fixed and waitting for testing
-
The Qt 5.8 version which is from Qt installer, will fail to build QWT !! #154
-
Build: Qt 5.7 installed from Qt installer + Prebuilt QtWebkit Preview 4 on Mac 10.12 is OK, all the functions are working except regionDS9 is not working, this is due to macports' flex becomes 2.6.1, not 2.5.37 anymore. Fixed
-
If we use homebrew's Qt 5.7 to build, packaging part will not pick up QtWebKit so final CARTA is not working. Fixed.
This is mainly for packaging CARTA and deploy, but it is OK to setup development environment at once, instead of following step by step in https://github.com/CARTAvis/carta/.
Setup xcode and cpp compiler if you have not setup. Follow, https://github.com/CARTAvis/carta/wiki/Install-Third-Party-For-CARTA-CASA-On-Mac#step1---install-xcode-and-get-clang-compiler
Install Qt from Qt installer if you prefer not to use the default Homebrew's qt which will be installed automatically by the following scripts, or you can accept homebrew'qt but want to install Qt Creator from qt installer. Key points:
- (optional) choose Qt 5.7 and uncheck the other qt version to reduce the installation time. Please remember to setupt
QT5PATH
in the following script. - uncheck some useless SDK, e.g. iOS
- Qt creator is installed by default, when using Qt installer.
curl -O https://raw.githubusercontent.com/CARTAvis/carta/upgradeToNewNamespace/carta/scripts/ci_mac.sh
The either step2-1 or step2-2,
sudo sh ./ci_mac.sh
Then it will be:
~/cartahome/CARTAvis
will be the git downloaded folder of CARTA.
Step2-2: Use other places as the download folder. If it is $WhereYouWant, append as the 1st parameter
sudo sh ./ci_mac.sh $WhereYouWant
The other optional parameters you can directly modify the ci_mi.sh
script. We may supply the script's parameters way.
export QT5PATH=/usr/local/Cellar/qt/5.8.0_2
Or you can use Qt installer to install the version you want, then change the this QT5PATH in the script, the execute this script. e.g. export QT5PATH=~/Qt/5.8/clang_64
export CARTABUILDHOME=$cartawork/CARTAvis/build
export qtwebkit=qtwebkit-tp4-qt57-darwin
qtwebkitlink=https://github.com/annulen/webkit/releases/download/qtwebkit-tp4/qtwebkit-tp4-qt57-darwin.tar.xz
Some libraries are installed by the global way
, some are in the $WhereYouWant/CARTAvis-externals/ThirdParty
, so most of them are in your own local folder
. So if you choose different places to build for the next time, the results are independent.
The globally installed libraries:
- GSL (/usr/local)
- libsakura (/usr/local)
- All homebrew packages (/usr/local/opt/), but they are installed very soon.
I setup some breakpoint(pause) to check each step, you can uncomment this line to let the script stop
function pause(){
read -p "Press [Enter] key to continue"
}
- Build GSL from its source code
- Build CARTA
- Build ast, casacore, casa-code
- others (e.g. download the source code of casa libs)