Build Instructions - bitcoin-black-bcb/btcb GitHub Wiki
Notes
This documentation is intended only for developers of the Btcb Node software, and will not result in a supported configuration. End-users are advised to use releases.
BOOST_ROOT [boost] (/usr/local/boost/ if bootstrapped)
CMAKE_BUILD_TYPE Release (default)
ACTIVE_NETWORK btcb_live_network (default)
Qt5_DIR [qt]lib/cmake/Qt5 (to build GUI wallet)
BTCB_GUI ON (to build GUI wallet)
ENABLE_AVX2 ON, optional PERMUTE_WITH_GATHER ON, optional PERMUTE_WITH_SHUFFLES ON (for CPU with AXV2 support, choose fastest method for your CPU with https://github.com/sneves/blake2-avx2/)
CRYPTOPP_CUSTOM ON (more conservative building of Crypto++ for wider range of systems)
BTCB_SIMD_OPTIMIZATIONS OFF (Enable CPU-specific SIMD optimization: SSE/AVX or NEON, e.g.)
BTCB_SECURE_RPC ON (to build node with TLS)
Build Btcb
git submodule update --init --recursive
Generate with cmake then build with your compiler
(*nix) to build node without GUI execute: make btcb_node
(*nix) to build wallet with GUI execute: make btcb_wallet
Building a package
(macOS) cpack -G "DragNDrop"
(Windows) cpack -G "NSIS"
(*nix) cpack -G "TBZ2"
Testing Btcb
In order to run the tests, the corresponding CMake variable must be set: -D BTCB_TEST=ON.
With this variable set, make will also build test files, and will produce core_test and slow_test binaries, which can be executed like ./core_test.
To run a node on the test network, set CMake variable: -DACTIVE_NETWORK=btcb_test_network