mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-15 09:10:02 +00:00
Updated Bulding daemon for Windows (MSYS) (markdown)
parent
8b2c820482
commit
72d83dd66a
@ -1,32 +1,76 @@
|
||||
Get install file `msys2-$ARCH-*.exe` from `https://msys2.github.io`
|
||||
# Building wallet with MSYS2 MinGW under Windows
|
||||
|
||||
Where $ARCH is `i686` or `x86_64` (matching your system).
|
||||
- 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 prerequisites and set PATH:
|
||||
- Open MSYS2 MinGW32 Shell (from Start menu).
|
||||
|
||||
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
|
||||
export PATH=/$MINGW/bin:/usr/bin
|
||||
*All actions taken under 32-bit (mingw32) shell*
|
||||
|
||||
- Build db-4.8
|
||||
Download http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
|
||||
Unpack it.
|
||||
Edit `db-4.8.30.NC/dist/config.sub`:
|
||||
find string `-mingw32* |` and replace by `-mingw32* | -msys* |`
|
||||
- Replace `<treads>` to number of threads (cores) used to build.
|
||||
|
||||
cd db-4.8.30.NC/build_unix
|
||||
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication --prefix=/usr/local
|
||||
make
|
||||
make install
|
||||
### Preparing to build
|
||||
```bash
|
||||
$ pacman -Suy git make tar zip mingw-w64-i686-gcc mingw-w64-i686-boost mingw-w64-i686-libpng mingw-w64-i686-openssl mingw-w64-i686-zlib
|
||||
$ mkdir /c/devel && cd /c/devel
|
||||
```
|
||||
|
||||
- Build gostcoin
|
||||
#### Building Berkley DB
|
||||
```bash
|
||||
$ wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
|
||||
$ tar xzf db-4.8.30.tar.gz
|
||||
$ cd db-4.8.30/build_unix
|
||||
$ ../dist/configure --enable-mingw --enable-cxx --disable-replication --prefix=/mingw32
|
||||
$ make -j <threads> && make install
|
||||
```
|
||||
|
||||
mkdir -p /c/dev/gostcoin
|
||||
cd /c/dev/gostcoin
|
||||
git clone https://github.com/GOSTSec/gostcoin.git
|
||||
cd gostcoin/i2psam
|
||||
make -f makefile.mingw
|
||||
cd ../src
|
||||
make -f makefile.mingw
|
||||
#### Cloning repository
|
||||
```bash
|
||||
$ cd ..
|
||||
$ git clone https://github.com/GOSTSec/gostcoin.git
|
||||
$ cd gostcoin
|
||||
```
|
||||
|
||||
### Building wallet daemon
|
||||
```bash
|
||||
$ cd src
|
||||
$ make -f makefile.mingw -j <threads>
|
||||
```
|
||||
You will found `gostcoind.exe` in `src` folder.
|
||||
|
||||
## Build wallet with QT GUI
|
||||
### Building Qt 5.9 Opensource staticly
|
||||
**[!] Requires Python 2.7**
|
||||
|
||||
[Download](https://www.python.org/downloads/release/python-2714/) and install Python, for example, to `C:\devel\Python27` and add it to PATH
|
||||
```bash
|
||||
$ export PATH="$PATH:/c/devel/Python27"
|
||||
```
|
||||
|
||||
#### Building QT
|
||||
```bash
|
||||
cd /c/devel/
|
||||
$ wget http://download.qt.io/official_releases/qt/5.9/5.9.4/single/qt-everywhere-opensource-src-5.9.4.zip
|
||||
$ unzip qt-everywhere-opensource-src-5.9.4.zip
|
||||
$ cd qt-everywhere-opensource-src-5.9.4
|
||||
$ CXXFLAGS="--Wno-deprecated-declarations" ./configure -static -release -opensource -confirm-license -platform win32-g++ -prefix "C:\devel\qt5.9.4-static" -nomake examples -nomake tests -nomake tools -opengl desktop -no-angle -make libs -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-pcre -sql-sqlite
|
||||
$ make -j <threads> && make install
|
||||
```
|
||||
|
||||
### Building QREncode
|
||||
```bash
|
||||
$ cd ..
|
||||
$ wget https://fukuchi.org/works/qrencode/qrencode-4.0.0.tar.gz
|
||||
$ tar xzf qrencode-4.0.0.tar.gz
|
||||
$ cd qrencode-4.0.0
|
||||
$ ./configure --enable-static --prefix=/mingw32
|
||||
$ make -j <threads> && make install
|
||||
```
|
||||
|
||||
### Build wallet with QT
|
||||
```bash
|
||||
$ cd ../gostcoin
|
||||
$ export PATH="$PATH:/c/devel/qt5.9.4-static/bin"
|
||||
$ qmake RELEASE=1 USE_QRCODE=1 USE_IPV6=1 USE_BUILD_INFO=1
|
||||
$ make -j <threads>
|
||||
```
|
||||
You will found `gostcoin-qt.exe` in `release` folder.
|
Loading…
x
Reference in New Issue
Block a user