Project

General

Profile

Feature #3910 » minGW - building wt.txt

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

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

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


#configureing cmake
# use your own library paths, boost compiler, boost version and so on
cmake E:/Downloads/wt-git \
-DCMAKE_INSTALL_PREFIX="e:/minGW_libs/wt" \
-DBOOST_DIR="e:/minGW_libs/boost" \
-DBOOST_COMPILER=mgw46 \
-DBOOST_VERSION=1_55 \
-DBOOST_SIGNALS_NO_DEPRECATION_WARNING:BOOL=ON \
-DWT_SIGNALS_IMPLEMENTATION:STRING=boost.signals2 \
-DSSL_PREFIX="e:/minGW_libs/openssl" \
-DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_TESTS:BOOL=OFF \
-DENABLE_EXT:BOOL=OFF \
-DENABLE_FIREBIRD:BOOL=OFF \
-DENABLE_HARU:BOOL=OFF \
-DENABLE_MYSQL:BOOL=OFF \
-DENABLE_OPENGL:BOOL=OFF \
-DENABLE_PANGO:BOOL=OFF \
-DENABLE_POSTGRES:BOOL=OFF \
-DENABLE_QT4:BOOL=OFF \
-DENABLE_SQLITE:BOOL=OFF \
-DUSERLIB_PREFIX:PATH=e:/minGW_libs \
-DHTTP_WITH_SSL:BOOL=ON \
-DSSL_INCLUDE_DIRS:PATH=e:/minGW_libs/openssl/include \
-DSSL_LIB_DEBUG:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
-DSSL_LIB_RELEASE:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
-DSSL_PREFIX:PATH=e:/minGW_libs/openssl \
-DSSL_TOO_LIB_DEBUG:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
-DSSL_TOO_LIB_RELEASE:FILEPATH=e:/minGW_libs/openssl/lib/libssl.a \
-DHTTP_WITH_ZLIB:BOOL=ON \
-DZLIB_INCLUDE:PATH=e:/minGW_libs/zlib/include \
-DZLIB_LIB_DEBUG:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
-DZLIB_LIB_RELEASE:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
-DZLIB_PREFIX:PATH=e:/minGW_libs/zlib \
-DZ_LIB:FILEPATH=e:/minGW_libs/zlib/lib/libz.a \
-G "MinGW Makefiles"

#build and install wt
mingw32-make
mingw32-make install

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