downloaded the btcpool source code, want to run on ubuntu16.04, but compiled ~!
is there really a problem with the source code? Has anyone ever encountered this problem?
who has the experience of successfully compiling btcpool source code?
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP+
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
here is my detailed compilation process:
before compiling btcpool, be sure to download and install the source code of bitcoin
create a new directory ~ / work/bitcoin and enter to download the source code of bitcoin.
git clone https://github.com/bitcoin/bitcoin.git
installation of this source code may cause an error. Do the following first
sudo apt-get install libdb5.1PP-dev
./autogen.sh
./configure --with-incompatible-bdb
make , make install
< hr >
create a new directory ~ / work/code/ and enter to download the btcpool source code
git clone https://github.com/btccom/btcpool.git
extract the source code, go to the install directory under the root directory, and run install_btcpool.sh
sudo bash install_btcpool.sh
will report an error. Do not run this script again after that
enter the root directory of btcpool-master, create it if there is no build directory, and run the cmake command
Note: using cmake directly will make an error, because there are two variables (CHAIN_TYPE, CHAIN_SRC_ROOT) in CMakeLists.txt that need to be defined, so you can write their definitions in CMakeLists.txt
set(CHAIN_TYPE "BTC")
set(CHAIN_SRC_ROOT "/home/zc/work/bitcoin/bitcoin-master")
can also be added to the parameter when executing cmake (the address of CHAIN_SRC_ROOT is the local address of the bitcoin source code)
cmake -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/home/zc/work/bitcoin/bitcoin-master ..
then make, made a mistake:
/home/zc/work/code/btcpool-master/src/Stratum.h:290:26: error: "CTxDestination" does not name a type
const CTxDestination &poolPayoutAddr,
^
In file included from /home/zc/work/code/btcpool-master/src/JobMaker.cc:24:0:
/home/zc/work/code/btcpool-master/src/JobMaker.h:65:3: error: "CTxDestination" does not name a type
CTxDestination poolPayoutAddr_;
^
/home/zc/work/code/btcpool-master/src/JobMaker.cc: In member function "bool JobMaker::init()" :
/home/zc/work/code/btcpool-master/src/JobMaker.cc:88:51: error: "IsValidDestinationString" was not declared in this scope
if (!IsValidDestinationString(poolPayoutAddrStr_)) {
^
/home/zc/work/code/btcpool-master/src/JobMaker.cc:93:3: error: "poolPayoutAddr_" was not declared in this scope
poolPayoutAddr_ = DecodeDestination(poolPayoutAddrStr_);
^
/home/zc/work/code/btcpool-master/src/JobMaker.cc:93:57: error: "DecodeDestination" was not declared in this scope
poolPayoutAddr_ = DecodeDestination(poolPayoutAddrStr_);
^
/home/zc/work/code/btcpool-master/src/JobMaker.cc: In member function "void JobMaker::sendStratumJob(const char*)" :
/home/zc/work/code/btcpool-master/src/JobMaker.cc:562:49: error: "poolPayoutAddr_" was not declared in this scope
if (!sjob.initFromGbt(gbt, poolCoinbaseInfo_, poolPayoutAddr_, blockVersion_,
is there something wrong with the source code? This problem remains to be solved.