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 update
sudo apt-get install autoconf git g++ libtool xxd doxygen perl python3-pip
pip3 install cmake --upgrade
To install dependencies for Mac OS, follow these steps:
- Install Homebrew.
- Update Homebrew:
brew doctor
brew update
- 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.git
cd echo
git checkout <LATEST_RELEASE_TAG>
git submodule update --init --recursive
mkdir build
cd build
cmake -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 build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/rpi-native.cmake ..
cmake --build .