Skip to content

Instantly share code, notes, and snippets.

@frz-dev frz-dev/btc-core-linux
Last active Jan 15, 2018

Embed
What would you like to do?
Bitcoin Core Cross Compile (Ubuntu)
#Install dependencies
sudo apt-get install curl \
build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 \
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev \
libzmq3-dev \
libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler \
software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
#Clone repository and compile it
git clone https://github.com/bitcoin/bitcoin
cd bitcoin
./autogen.sh
cd depends
make HOST=x86_64-linux-gnu
cd ..
# Actually check what folder is created in depends after you built the dependencies and use that instead
./configure --prefix=`pwd`/depends/x86_64-linux-gnu --without-gui
make
mkdir bin
cp src/bitcoind src/bitcoin-cli bin/
### Troubleshooting
bitcoin fontconfig fcmatch.c error PRI_CHAR_WIDTH_STRONG : it's caused by a bug of the gcc compiler. Change version to fix.
Known working versions: 5.4
- To downgrade follow this instructions: https://askubuntu.com/a/26502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.