comparison INSTALL @ 978:d92b1594e974

Merged.
author Emanuel Schuetze <emanuel@intevation.de>
date Fri, 29 Aug 2014 13:10:11 +0200
parents d3258a6faedd
children 0570b1e562c2
comparison
equal deleted inserted replaced
977:9ad1f18799fb 978:d92b1594e974
60 cd build 60 cd build
61 cmake .. -DCMAKE_C_FLAGS=-fpic -DCMAKE_INSTALL_PREFIX=$YOURPREFIX 61 cmake .. -DCMAKE_C_FLAGS=-fpic -DCMAKE_INSTALL_PREFIX=$YOURPREFIX
62 make && make test && make install 62 make && make test && make install
63 63
64 Libcurl: 64 Libcurl:
65 wget http://curl.haxx.se/download/curl-7.37.1.tar.{gz,gz.asc} 65 wget http://curl.haxx.se/download/curl-7.37.1.tar.gz
66 gpg2 --verify curl-7.37.1.tar.gz.asc 66 a32492a38c10a097344892f5fd2041e54698cb909696852311b1161e4aa979f3 curl-7.37.1.tar.gz
67
67 tar -xf curl-7.37.1.tar.gz 68 tar -xf curl-7.37.1.tar.gz
68 cd curl-7.37.1/ 69 cd curl-7.37.1/
69 70 mkdir build
70 ./configure --prefix=$YOURPREFIX \ 71 cd build
72
73 ../configure --prefix=$YOURPREFIX \
71 --without-nghttp2 --without-libidn --without-winidn --without-libssh2 \ 74 --without-nghttp2 --without-libidn --without-winidn --without-libssh2 \
72 --without-librtmp --without-libmetalink --without-axtls --without-nss \ 75 --without-librtmp --without-libmetalink --without-axtls --without-nss \
73 --without-cyassl --without-ssl --without-gnutls --disable-gopher --disable-smtp \ 76 --without-cyassl --without-ssl --without-gnutls --disable-gopher --disable-smtp \
74 --disable-imap --disable-pop3 --disable-tftp --disable-telnet --disable-dict \ 77 --disable-imap --disable-pop3 --disable-tftp --disable-telnet --disable-dict \
75 --disable-proxy --disable-rtsp --disable-ldaps --disable-ldap --disable-file \ 78 --disable-rtsp --disable-ldaps --disable-ldap --disable-file \
76 --disable-ftp --enable-http --enable-shared=no -enable-static=yes \ 79 --disable-ftp --enable-http --enable-shared=no -enable-static=yes \
77 --with-polarssl=$YOURPREFIX --without-ca-bundle --without-ca-path 80 --with-polarssl=$YOURPREFIX --without-ca-bundle --without-ca-path \
81 --without-zlib
82 make && make install
78 83
79 To compile the software you can use plain cmake. An out of source build is 84 To compile the software you can use plain cmake. An out of source build is
80 highly suggested. For build options see CMakeList.txt 85 highly suggested. For build options see CMakeList.txt
81 86
82 hg clone https://wald.intevation.org/hg/trustbridge/ 87 hg clone https://wald.intevation.org/hg/trustbridge/
125 -DCMAKE_VERBOSE_MAKEFILE=True \ 130 -DCMAKE_VERBOSE_MAKEFILE=True \
126 -DENABLE_TESTING=FALSE -DENABLE_PROGRAMS=FALSE && \ 131 -DENABLE_TESTING=FALSE -DENABLE_PROGRAMS=FALSE && \
127 nice make -j`nproc` && \ 132 nice make -j`nproc` && \
128 make install 133 make install
129 134
135 Change to the curl directory
136 cd ../../curl-7.37.1/
137 mkdir build-i386
138 cd build-i386
139 CFLAGS="-fpic -m32" CPPFLAGS="-fpic -m32" ../configure --prefix=$YOURPREFIX/i386 \
140 --without-nghttp2 --without-libidn --without-winidn --without-libssh2 \
141 --without-librtmp --without-libmetalink --without-axtls --without-nss \
142 --without-cyassl --without-ssl --without-gnutls --disable-gopher --disable-smtp \
143 --disable-imap --disable-pop3 --disable-tftp --disable-telnet --disable-dict \
144 --disable-rtsp --disable-ldaps --disable-ldap --disable-file \
145 --disable-ftp --enable-http --enable-shared=no -enable-static=yes \
146 --with-polarssl=$YOURPREFIX/i386 --without-ca-bundle --without-ca-path \
147 --without-zlib
148 make && make install
149
130 Now for Trustbridge itself 150 Now for Trustbridge itself
131 cd ../../trustbridge 151 cd ../../trustbridge
132 mkdir build-i386 152 mkdir build-i386
133 cd build-i386 153 cd build-i386
134 cmake .. -DCMAKE_PREFIX_PATH="$YOURPREFIX/i386" \ 154 cmake .. -DCMAKE_PREFIX_PATH="$YOURPREFIX/i386" \
188 pkg-config scons sed unzip wget xz-utils autopoint \ 208 pkg-config scons sed unzip wget xz-utils autopoint \
189 gperf 209 gperf
190 210
191 Build the windows binaries: 211 Build the windows binaries:
192 MXEPATH=$YOURPREFIX/win 212 MXEPATH=$YOURPREFIX/win
193 git clone https://github.com/mxe/mxe.git $MXEPATH 213 git clone https://github.com/Intevation/mxe.git $MXEPATH
194 cd $MXEPATH 214 cd $MXEPATH
215 git checkout trustbridge
195 echo "MXE_TARGETS := i686-w64-mingw32.static" > settings.mk 216 echo "MXE_TARGETS := i686-w64-mingw32.static" > settings.mk
196 make polarssl 217 make polarssl
197 make qtbase 218 make qtbase
219 (optional) make curl
198 220
199 Workaround Qt CMake Bugs: 221 Workaround Qt CMake Bugs:
200 find $MXEPATH/usr/i686-w64-mingw32.static/qt5/lib/cmake -name \*.cmake | \ 222 find $MXEPATH/usr/i686-w64-mingw32.static/qt5/lib/cmake -name \*.cmake | \
201 xargs sed -i 's/\/\([a-z]*\)\.lib/\/lib\1\.a/g' 223 xargs sed -i 's/\/\([a-z]*\)\.lib/\/lib\1\.a/g'
202 sed -i 's/^_qt5gui_find_extra_libs.*//' \ 224 sed -i 's/^_qt5gui_find_extra_libs.*//' \
203 $MXEPATH/usr/i686-w64-mingw32.static/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake 225 $MXEPATH/usr/i686-w64-mingw32.static/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake
204
205 Make an NSS build available in the MXE prefix:
206 # TODO -> Document how to build NSS,..
207 cp -r <magic nss folder> $MXEPATH/usr/i686-w64-mingw32.static/
208 226
209 Compile the software: 227 Compile the software:
210 cd trustbridge 228 cd trustbridge
211 mkdir build-windows 229 mkdir build-windows
212 cd build-windows 230 cd build-windows

http://wald.intevation.org/projects/trustbridge/