搭建平台linux 版本Ubuntu 16.04 LTS
如何搭建请自行百度
安装linux的编译工具链
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
安装boost
suod apt-get install libboost-all-dev
Berkeley DB
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
ZMQ
sudo apt-get install libzmq3-dev
QT5
sudo apt-get install libqt5qui5 libqt5corea libqt5bus5 qttools5-dev \
qttools5-dev-tools libprotobuf-dev protobuf-compiler
libqrencode
sudo apt-get install libqrencode-dev
miniupnpc
sudo apt-get install libminiupnpc-dev
下载bitcoin标准客户端
git clone https://github.com/bitcoin/bitcoin.git
git check tag
git checkout v0.14.0
cd bitcoin
编译
./autogen.sh
./configure
make
make install
ubuntu下编译win32或win64版
安装工具链:
sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev \
g++-mingw-w64-x86-64 mingw-w64-x86-64-dev
生成可执行文件
32位:
cd depends
make HOST=i686_w64-mingw32 -j4
cd ..
./configure --prefix=`pwd`/depends/i686-w64-mingw32
make
64位:
cd depends
make HOST=X86_64-W64-mingw32 -j4
cd ..
./configure --prefix=`pwd`/depends/x86_64-w64-mingw32