-- please note: using docker has been recommended as a faster method of installation: https://github.com/nanocurrency/raiblocks/wiki/Docker-node --
- Boost 1.66 extracted to [boost.src] (OR
sh raiblocks/ci/bootstrap_boost.sh
) - (wallet) Qt 5.x open source edition extracted to [qt.src]
- RaiBlocks source in [rai.src]
- (macOS) XCode >= 7.3
- (Windows) Visual Studio 2015
- (Windows) NSIS package builder
- (*nix) Clang >= 3.5 or GCC >= 5
- CMake
- Inside
raiblocks
directory - Run
sh ci/bootstrap_boost.sh
- This will build Boost at
/usr/local/boost/
- That's it!
- Inside [boost.src]
- Run
./bootstrap.sh
- Run
./b2 --prefix=[boost] --build-dir=[boost.build] link=static install
- (Windows) An additional b2 option
address-model=64
for x64 builds
- In [qt.build] execute
[qt.src]/configure -shared -opensource -nomake examples -nomake tests -confirm-license -prefix [qt]
make
make install
- (Windows) Use
nmake
instead ofmake
.
- BOOST_ROOT [boost] (
/usr/local/boost/
if bootstrapped) - CMAKE_BUILD_TYPE Release (default)
- ACTIVE_NETWORK rai_live_network (default)
- Qt5_DIR [qt]lib/cmake/Qt5 (to build GUI wallet)
- RAIBLOCKS_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)
- BOOST_CUSTOM ON (use bundled FindBoost.cmake for boost 1.66 on Windows commit 8fd47b20dca0c9fc82c5c4d240432503d6fb11a4+)
git submodule update --init --recursive
- Generate with cmake then build with your compiler
- (*nix) to build node without GUI execute:
make rai_node
- (*nix) to build wallet with GUI execute:
make nano_wallet
- (macOS)
cpack -G "DragNDrop"
- (Windows)
cpack -G "NSIS"
- (*nix)
cpack -G "TBZ2"
- In order to run the tests, the corresponding CMake variable must be set:
-D RAIBLOCKS_TEST=ON
. - With this variable set, make will also build test files, and will produce
core_test
andslow_test
binaries, which can be executed like./core_test
. - To run a node on the test network, set CMake variable:
-DACTIVE_NETWORK=rai_test_network