Closed loloxiao closed 4 years ago
build BTCPool that linking to Bitcoin
mkdir /work cd /work wget -O bitcoin-0.16.0.tar.gz https://github.com/bitcoin/bitcoin/archive/v0.16.0.tar.gz tar zxf bitcoin-0.16.0.tar.gz
git clone https://github.com/btccom/btcpool.git cd btcpool mkdir build cd build
cmake -DJOBS=4 -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)
cmake -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. make -j$(nproc)
cmake -DCMAKE_BUILD_TYPE=Debug -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)
对于beam、grin、ckb这些币,按照以上方法联合bitcoin代码编译即可,需要注意的是配置文件按照对应币种的配置模版设置即可。
build BTCPool that linking to Bitcoin
mkdir /work cd /work wget -O bitcoin-0.16.0.tar.gz https://github.com/bitcoin/bitcoin/archive/v0.16.0.tar.gz tar zxf bitcoin-0.16.0.tar.gz
git clone https://github.com/btccom/btcpool.git cd btcpool mkdir build cd build
Release build:
cmake -DJOBS=4 -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)
Release build at macOS:
cmake -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. make -j$(nproc)
Debug build:
cmake -DCMAKE_BUILD_TYPE=Debug -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)