Browse Source

add qt building info

pull/29/head
R4SAS 7 years ago
parent
commit
f29c84ca32
  1. 11
      docs/build_linux.txt
  2. 65
      docs/build_win32.md

11
docs/build_linux.txt

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
### Debian/Ubuntu
$ sudo apt-get install build-essential libtool git libboost-system-dev libboost-program-options-dev \
libboost-filesystem-dev libboost-thread-dev libdb++-dev libssl-dev zlib1g-dev qt4-qmake \
libqt4-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools \
libprotobuf-dev protobuf-compiler libqrencode-dev
$ git clone https://github.com/GOSTSec/gostcoin.git
$ cd gostcoin
$ qmake -qt=5 RELEASE=1 USE_QRCODE=1 USE_IPV6=1 USE_BUILD_INFO=1
$ make -j2

65
docs/build_win32.md

@ -0,0 +1,65 @@ @@ -0,0 +1,65 @@
# Building wallet with MSYS2 MinGW under Windows
*All actions taken under 32-bit (mingw32) shell*
Replace `<treads>` to number of threads (cores) used to build.
### Preparing to build
```bash
$ pacman -Suy diff git make tar 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
```
#### 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
```
#### 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
```
#### 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>
```
### 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
$ wget http://download.qt.io/official_releases/qt/5.9/5.9.2/single/qt-everywhere-opensource-src-5.9.2.zip
$ unzip qt-everywhere-opensource-src-5.9.2.zip
$ cd qt-everywhere-opensource-src-5.9.2
$ CXXFLAGS="--Wno-deprecated-declarations" ./configure -static -release -opensource -confirm-license -platform win32-g++ -prefix "C:\devel\qt5.9.2-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
```
### Build wallet with QT
```bash
$ export PATH="$PATH:/c/devel/qt5.9.2-static/bin"
$ qmake RELEASE=1 USE_QRCODE=1 USE_IPV6=1 USE_BUILD_INFO=1
$ make -j <threads>
```
**Copyright © 2018 R4SAS <r4sas@i2pmail.org>**
Loading…
Cancel
Save