Project

General

Profile

Feature #3910 » minGW - building wt.txt

build Wt with minGW - Стойчо Стефанов Stoycho Stefanov, 03/27/2015 09:42 AM

 
1
#After installing minGW, and building boost, openssl and zlib for minGW, start msys.bat and go through the following steps:
2
# change to msys root directory
3
cd / 
4
# creage your working directory and change to it
5
mkdir wt_build
6
cd wt_build 
7
# add the cmake path to your PATH environment variable
8
export PATH=$PATH:/c/Program\ Files\ \(x86\)/CMake/bin
9

    
10
# edit WtFindSsl.txt and WtFindZlib.txt (to be find in ~\wt-git\cmake)
11
# use only ${SSL_PREFIX}/lib and ${ZLIB_PREFIX}/lib in all lib PATHS
12
# use only ${SSL_PREFIX}/include and ${ZLIB_PREFIX}/include in all include PATHS
13

    
14

    
15
#configureing cmake 	
16
# use your own library paths, boost compiler, boost version and so on
17
	
18
cmake E:/Downloads/wt-git \
19
-DCMAKE_INSTALL_PREFIX="e:/minGW_libs/wt" \
20
-DBOOST_DIR="e:/minGW_libs/boost" \
21
-DBOOST_COMPILER=mgw46 \
22
-DBOOST_VERSION=1_55 \
23
-DBOOST_SIGNALS_NO_DEPRECATION_WARNING:BOOL=ON \
24
-DWT_SIGNALS_IMPLEMENTATION:STRING=boost.signals2 \
25
-DSSL_PREFIX="e:/minGW_libs/openssl" \
26
-DBUILD_EXAMPLES:BOOL=OFF \
27
-DBUILD_TESTS:BOOL=OFF \
28
-DENABLE_EXT:BOOL=OFF \
29
-DENABLE_FIREBIRD:BOOL=OFF \
30
-DENABLE_HARU:BOOL=OFF \
31
-DENABLE_MYSQL:BOOL=OFF \
32
-DENABLE_OPENGL:BOOL=OFF \
33
-DENABLE_PANGO:BOOL=OFF \
34
-DENABLE_POSTGRES:BOOL=OFF \
35
-DENABLE_QT4:BOOL=OFF \
36
-DENABLE_SQLITE:BOOL=OFF \
37
-DUSERLIB_PREFIX:PATH=e:/minGW_libs \
38
-DHTTP_WITH_SSL:BOOL=ON \
39
-DSSL_INCLUDE_DIRS:PATH=e:/minGW_libs/openssl/include \
40
-DSSL_LIB_DEBUG:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
41
-DSSL_LIB_RELEASE:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
42
-DSSL_PREFIX:PATH=e:/minGW_libs/openssl \
43
-DSSL_TOO_LIB_DEBUG:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
44
-DSSL_TOO_LIB_RELEASE:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
45
-DHTTP_WITH_ZLIB:BOOL=ON \
46
-DZLIB_INCLUDE:PATH=e:/minGW_libs/zlib/include \
47
-DZLIB_LIB_DEBUG:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
48
-DZLIB_LIB_RELEASE:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
49
-DZLIB_PREFIX:PATH=e:/minGW_libs/zlib \
50
-DZ_LIB:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
51
-G "MinGW Makefiles" 
52

    
53
#build and install wt
54
mingw32-make
55
mingw32-make install
56

    
57
# probably some steps are redundant but it works for me this way and I'm happy with it :)
(2-2/2)