1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-16 17:50:07 +00:00

Updated Bulding for Windows (MSYS) (markdown)

orignal 2017-04-13 15:12:38 -04:00
parent 3d3bf99e71
commit 9af6d942af

@ -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