如何自己compile BitcoinDiamond(BCD) 的Qt wallet

in #cn7 years ago (edited)

bcdicon.png

最近發現 Bitcoin Diamon(BCD) 在 kucoin 和 binance 都起價很厲害, 所以就想尽快把bcd 的分叉币弄到手,
因为我在2017/11/25 (Block 495866) 前我拥有不少比特币, 所以就去

http://btcd.io

看看能不能像上次 bch, btg, btx 那样在 Qt wallet 的 debug console 里 import private key 的方式来取得免费的分叉币

但 btcd.io 里没有 compile 好的 Qt wallet

这次不像上次那样有人做好的 Qt wallet 或者 electrum wallet 可以直接download,

所以必须去他们的github 下载代码自己compile 。
在 btcd.io 找到 github 的链接后,

用 virtualbox 准备一个 Ubuntu 16.04 的VM, 在里面把代码clone 下来

git clone http://github.com/eveybcd/BitcoinDiamond

进去那个folder

cd BitcoinDiamond/

这时你会看到有个 autogen.sh, 这个你需要autoconf 才能跑, 如果没有就先安装。不过先update apt-get 一下

sudo apt-get update

好了后

sudo apt-get install autoconf -y

安装好后, 可以try run那个autogen看看

./autogen.sh

这时会发现还是少一堆东西, 在把所有的dependency 用 apt-get 安装

sudo apt-get install libtool libssl-dev libboost-all-dev libminiupnpc-dev libevent-dev libncurses5-dev -y

然后在try 多一次

./autogen.sh

ok 好了。 但这个 autogen.sh 只是为了产生 ./configure.

现在才能开始跑那三步曲

先建立一个 folder, 我们会把compile 出来的东西放进去

mkdir bin

在 configure 的 argument 就要用 --prefix=`pwd`/bin , 这样我们make 的东西就不会到处乱放。 然后要有 gui 的话必须用 -with-gui

./configure --prefix=`pwd`/bin -with-gui 

configure 中途,会发现又少了一堆东西, 好没关系, 再用 apt-get install 各别安装

sudo apt-get install libqt4-*
sudo apt-get install libdb4.8-dev libdb4.8++-dev  -y
sudo apt-get install libzmq-dev -y
sudo apt-get install protobuf-compiler -y

那个 libqt4 要安装大概 10 分钟左右。
安装完毕后,终于可以跑 configure 了

./configure 好后,一切没问题后,现在才可以开始 make

make 

等 10- 15 分钟, compile 好后, 在

make install

终于大功告成了。。。 现在你的bin directory 会有 4 个executable ,其中一个是 bitcoindiamond-qt, 可以run 了

cd bin/bin
./bitcoindiamond-qt

bcd_corewallet.png

Qt core wallet 基本上是需要下载整个blockchain ,sync 后才能开始使用的, 所以必须等好几天。

Sync 好后,你就可以像上次 bch , btg , btx 的同样方式 import private key。 基本上全部的qt-core wallet 都一模一样的因为都是bitcoin那边 fork 出来的,

然后 把钱转去 binance 卖。 不过要等binance 开放它的 BCD deposit 先。

Sort:  


Awesome work! I`ve re-steemed!
Must be supported...
Thank you for your wonderful work 😊😊

你好!请接受cn区点赞机器人 @cnbuddy 对你作为cn区一员的感谢。 @cnbuddy 旨在助力cn区快速发展,更多cn区动态,请查看我的主页。倘若你不喜欢我的留言,请回复“取消”。

Thank you @tensaix2j for making a transfer to me for an upvote of 0.83% on this post! Half of your bid goes to @budgets which funds growth projects for Steem like our top 25 posts on Steem! The other half helps holders of Steem power earn about 60% APR on a delegation to me! For help, will you please visit https://jerrybanfield.com/contact/ because I check my discord server daily? To learn more about Steem, will you please use http://steem.guide/ because this URL forwards to my most recently updated complete Steem tutorial?

This post has received a 0.60 % upvote from @booster thanks to: @tensaix2j.

Coin Marketplace

STEEM 0.20
TRX 0.15
JST 0.029
BTC 64572.94
ETH 2630.79
USDT 1.00
SBD 2.82