ubuntu 18.04 编译安装 russellcoin
安装依赖
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install g++ git automake
udo apt-get install autoconf make libtool pkg-config libqt4-network libqtgui4
sudo apt-get install libboost-all-dev git libdb++-dev libssl-dev
clone & 编译
cd
git clone https://github.com/russellcoinpay/russellcoin.git
cd russellcoin
./autogen.sh
cd depends
make -j`nproc`
cd ..
./configure --prefix=`pwd`/depends/x86_64-unknown-linux-gnu --disable-tests --with-gui=no
make
异常
由于当前链代码依赖得qt版本为4.6.4,当前系统gcc 和 g++ 较高版本时,会导致语法错误
qmap.h:509:45: error: value-initialization of incomplete type ‘char []’
node = node_create(d, update, akey, T());
解放方法,gcc和g++降级到4.8
gcc 降级4.8
sudo apt-get install gcc-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
sudo update-alternatives --config gcc
gcc --version
g++ 降级4.8
sudo apt-get install g++-4.8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
sudo update-alternatives --config g++
g++ --version
根本解决
参考anoncoin 升级qt为5.7.1版本
参考
https://anoncoin.github.io/How_to_build_Anoncoin_from_source/
https://www.cnblogs.com/in4ight/p/6626708.html
https://github.com/Anoncoin/anoncoin/issues/26
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »