diff INSTALL @ 57:2cd76e6c0fcf

Add MacOS build support
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 19 May 2015 15:36:00 +0200
parents 147b08bc7d64
children 3acafcfc52a1
line wrap: on
line diff
--- a/INSTALL	Tue May 19 11:12:22 2015 +0200
+++ b/INSTALL	Tue May 19 15:36:00 2015 +0200
@@ -65,4 +65,75 @@
         -DCMAKE_PREFIX_PATH="$MXETARGET/qt5;$MXETARGET;" \
         -DCMAKE_TOOLCHAIN_FILE="$MXETARGET/share/cmake/mxe-conf.cmake" \
         -DCMAKE_VERBOSE_MAKEFILE=True
+
+For MacOSX
+==========
+Install the usual development tools / xcode.
+
+Define some paths for the build environment:
+export CUSTOM_PREFIX=~/retraceit
+
+export PATH=$CUSTOM_PREFIX/bin:$PATH
+export DYLD_LIBRARY_PATH=$CUSTOM_PREFIX/lib:$DYLD_LIBRARY_PATH
+export PKG_CONFIG_PATH=$CUSTOM_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
+
+
+Download qt:
+
+    curl -O http://qt-mirror.dannhauer.de/official_releases/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.tar.xz
+    shasum qt-everywhere-opensource-src-5.3.2.tar.xz
+
+Should match: fb156a87a193c9a7a2fa51efc89660a3b619ace5
+
+Build and extract:
+
+    tar -xf qt-everywhere-opensource-src-5.3.2.tar.xz
+    cd qt-everywhere-opensource-src-5.3.2/qtbase
+
+    ./configure \
+       -release  -nomake tests  -nomake examples  -confirm-license \
+       -static -no-cups -no-nis -no-icu -no-fontconfig -qt-freetype \
+       -no-directfb -no-kms -no-openssl -no-glib \
+       -no-nis -no-libjpeg -qt-libpng \
+       -qt-zlib -no-gif -no-xinput2 -opensource -confirm-license \
+       -prefix $CUSTOM_PREFIX -no-framework
+
+    make -j `sysctl hw.ncpu  | cut -f 2 -d " "`
+    make install
+
+Download mercurial:
+    wget https://mercurial.selenic.com/mac/binaries/Mercurial-3.4-py2.7-macosx10.10.zip
+    shasum Mercurial-3.4-py2.7-macosx10.10.zip
+
+Should match: 1380790ae7f7d8060e937d386be3103c173e450d
+
+    unzip  Mercurial-3.4-py2.7-macosx10.10.zip
+
+Install the .mpkg 
+
+Configure to be usable with wald certificate
+    echo "[web]" >> ~/.hgrc
+    echo "cacerts=~/wald-ca.pem" >>  ~/.hgrc
+    curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt > ~/wald-ca.pem
+
+Download cmake:
+    curl -O http://www.cmake.org/files/v3.2/cmake-3.2.2-Darwin-x86_64.dmg
+    shasum cmake-3.2.2-Darwin-x86_64.dmg
+
+Should match: d0f4172a3c72764f06146e4f949367c8029e71ed
+
+Install the .dmg and add cmake to the path.
+
+    export PATH=/Volumes/Macintosh\ HD/Applications/CMake.app/Contents/bin/:$PATH
+
+Now for retraceit:
+
+    hg clone https://wald.intevation.org/hg/retraceit/
+    cd retraceit
+    mkdir build && cd buld
+    cmake .. \
+        -DCMAKE_PREFIX_PATH=$CUSTOM_PREFIX \
+        -DCMAKE_INSTALL_PREFIX=$CUSTOM_PREFIX \
+        -DCMAKE_VERBOSE_MAKEFILE=True
+
 */
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)