Mercurial > retraceit
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:016cbcb1a233 | 57:2cd76e6c0fcf |
---|---|
63 MXETARGET=$MXEPATH/usr/i686-w64-mingw32.static/ | 63 MXETARGET=$MXEPATH/usr/i686-w64-mingw32.static/ |
64 cmake .. \ | 64 cmake .. \ |
65 -DCMAKE_PREFIX_PATH="$MXETARGET/qt5;$MXETARGET;" \ | 65 -DCMAKE_PREFIX_PATH="$MXETARGET/qt5;$MXETARGET;" \ |
66 -DCMAKE_TOOLCHAIN_FILE="$MXETARGET/share/cmake/mxe-conf.cmake" \ | 66 -DCMAKE_TOOLCHAIN_FILE="$MXETARGET/share/cmake/mxe-conf.cmake" \ |
67 -DCMAKE_VERBOSE_MAKEFILE=True | 67 -DCMAKE_VERBOSE_MAKEFILE=True |
68 | |
69 For MacOSX | |
70 ========== | |
71 Install the usual development tools / xcode. | |
72 | |
73 Define some paths for the build environment: | |
74 export CUSTOM_PREFIX=~/retraceit | |
75 | |
76 export PATH=$CUSTOM_PREFIX/bin:$PATH | |
77 export DYLD_LIBRARY_PATH=$CUSTOM_PREFIX/lib:$DYLD_LIBRARY_PATH | |
78 export PKG_CONFIG_PATH=$CUSTOM_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH | |
79 | |
80 | |
81 Download qt: | |
82 | |
83 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 | |
84 shasum qt-everywhere-opensource-src-5.3.2.tar.xz | |
85 | |
86 Should match: fb156a87a193c9a7a2fa51efc89660a3b619ace5 | |
87 | |
88 Build and extract: | |
89 | |
90 tar -xf qt-everywhere-opensource-src-5.3.2.tar.xz | |
91 cd qt-everywhere-opensource-src-5.3.2/qtbase | |
92 | |
93 ./configure \ | |
94 -release -nomake tests -nomake examples -confirm-license \ | |
95 -static -no-cups -no-nis -no-icu -no-fontconfig -qt-freetype \ | |
96 -no-directfb -no-kms -no-openssl -no-glib \ | |
97 -no-nis -no-libjpeg -qt-libpng \ | |
98 -qt-zlib -no-gif -no-xinput2 -opensource -confirm-license \ | |
99 -prefix $CUSTOM_PREFIX -no-framework | |
100 | |
101 make -j `sysctl hw.ncpu | cut -f 2 -d " "` | |
102 make install | |
103 | |
104 Download mercurial: | |
105 wget https://mercurial.selenic.com/mac/binaries/Mercurial-3.4-py2.7-macosx10.10.zip | |
106 shasum Mercurial-3.4-py2.7-macosx10.10.zip | |
107 | |
108 Should match: 1380790ae7f7d8060e937d386be3103c173e450d | |
109 | |
110 unzip Mercurial-3.4-py2.7-macosx10.10.zip | |
111 | |
112 Install the .mpkg | |
113 | |
114 Configure to be usable with wald certificate | |
115 echo "[web]" >> ~/.hgrc | |
116 echo "cacerts=~/wald-ca.pem" >> ~/.hgrc | |
117 curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt > ~/wald-ca.pem | |
118 | |
119 Download cmake: | |
120 curl -O http://www.cmake.org/files/v3.2/cmake-3.2.2-Darwin-x86_64.dmg | |
121 shasum cmake-3.2.2-Darwin-x86_64.dmg | |
122 | |
123 Should match: d0f4172a3c72764f06146e4f949367c8029e71ed | |
124 | |
125 Install the .dmg and add cmake to the path. | |
126 | |
127 export PATH=/Volumes/Macintosh\ HD/Applications/CMake.app/Contents/bin/:$PATH | |
128 | |
129 Now for retraceit: | |
130 | |
131 hg clone https://wald.intevation.org/hg/retraceit/ | |
132 cd retraceit | |
133 mkdir build && cd buld | |
134 cmake .. \ | |
135 -DCMAKE_PREFIX_PATH=$CUSTOM_PREFIX \ | |
136 -DCMAKE_INSTALL_PREFIX=$CUSTOM_PREFIX \ | |
137 -DCMAKE_VERBOSE_MAKEFILE=True | |
138 | |
68 */ | 139 */ |