diff --git a/Bulding-for-Windows-(MSYS).md b/Bulding-for-Windows-(MSYS).md index 498fa06..fb25917 100644 --- a/Bulding-for-Windows-(MSYS).md +++ b/Bulding-for-Windows-(MSYS).md @@ -3,18 +3,26 @@ Get install file `msys2-$ARCH-*.exe` from `https://msys2.github.io` Where $ARCH is `i686` or `x86_64` (matching your system). - Open MSYS2 Shell (from Start menu). -- Install all prerequisites: +- Install prerequisites and set PATH: export ARCH='i686' # or 'x86_64' export MINGW='mingw32' # or 'mingw64' - pacman -S mingw-w64-$ARCH-boost mingw-w64-$ARCH-openssl mingw-w64-$ARCH-gcc git make + pacman -S mingw-w64-$ARCH-boost mingw-w64-$ARCH-openssl mingw-w64-$ARCH-gcc git make + export PATH=/$MINGW/bin:/usr/bin + +- Build db-4.8 + Download http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz + Unpack it + Edit cd db-4.8.30.NC/dist/config.sub : find string "-mingw32* |" and replace by "-mingw32* | -msys* |" + cd db-4.8.30.NC/build_unix + ../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication --prefix=/usr/local + make + make install - Build gostcoin mkdir -p /c/dev/gostcoin cd /c/dev/gostcoin git clone https://github.com/GOSTSec/gostcoin.git - # we need compiler on PATH which is usually heavily cluttered on Windows - export PATH=/$MINGW/bin:/usr/bin cd gostcoin/i2psam make -f makefile.mingw cd ../src