This guide should mostly work for Linux and OS X operating systems. It does not include instructions for Windows. For Windows, Build with CONAN is strongly encouraged.
git.python3.7+.openssl1.1.1g+.- About 15 GB of free disk space.
These instructions have been verified to work on Ubuntu 20.04 with 8 GB of RAM and 4 CPU cores. On an Ubuntu system, all prerequisites can be installed with the following commands:
apt update
apt -y upgrade
apt -y install git gcc g++ cmake curl libssl-dev ninja-build pkg-config python3-pipAs usual, clone the git repository:
git clone https://github.com/symbol/catapult-client.git
cd catapult-clientType this into a terminal:
NOTE: If you want to build with clang, add the
--use-clangflag.
PYTHONPATH="./scripts/build" python3 "./scripts/build/installDepsLocal.py" \
--target "./_deps" \
--versions "./scripts/build/versions.properties" \
--download \
--buildTo create or update the _build directory type into a terminal:
NOTE: When building with clang, add
-DENABLE_FUZZ_BUILD=ONto build with UBSAN and ASAN (recommended for development).
mkdir -p _build && cd _build
BOOST_ROOT="$(realpath ../_deps/boost)" cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_PREFIX_PATH="$(realpath ../_deps/facebook);$(realpath ../_deps/google);$(realpath ../_deps/mongodb);$(realpath ../_deps/zeromq)" \
-GNinja
ninja publish
ninjaVerify that the tools are working correctly by running:
./bin/catapult.tools.address --help