We recommend building on Ubuntu 16.04 LTS or Ubuntu 18.04 LTS, and the build dependencies may be installed with:
cmake version should be greter than 3.11. 16.04 have cmake version 3.5.2 and 18.04 - 3.10.2, therefore better install cmake by pip3.
g++ version should be greater than 5.4.
sudo apt-get updatesudo apt-get install autoconf git g++ libtool xxd doxygen perl python3-pippip3 install cmake --upgrade
To install dependencies for Mac OS, follow these steps:
Install the necessary packages:
brew install cmake git autoconf automake libtool doxygen perl
To build after all dependencies are installed:
git clone https://github.com/echoprotocol/echo.gitcd echogit checkout <LATEST_RELEASE_TAG>git submodule update --init --recursivemkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=Release ..cmake --build .
Echo build is supported for Raspberry Pi 4 with 4 GB RAM. Ubuntu 18.04 64 bit OS should be installed for Raspberry PI 4.
Echo build is memory-heavy, so a swap space for at least 4 GB should be created. Compiling should be done in one thread/job for the same reason.
To build echo_node and echo_wallet please use following commands. Other targets are not supported yet.
mkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/rpi-native.cmake ..cmake --build .