Skip to content

Instantly share code, notes, and snippets.



Last active Jun 27, 2020
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 \
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
cd bitcoin
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
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment