Build

Dependencies on Ubuntu

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.
1
sudo apt-get update
2
sudo apt-get install autoconf git g++ libtool xxd doxygen perl python3-pip
3
pip3 install cmake --upgrade
Copied!

Dependencies on MacOS

To install dependencies for Mac OS, follow these steps:
  1. 2.
    Update Homebrew:
    1. 1.
      brew doctor
    2. 2.
      brew update
  2. 3.
    Install the necessary packages:
1
brew install cmake git autoconf automake libtool doxygen perl
Copied!

Build (Ubuntu/MacOS)

To build after all dependencies are installed:
1
git clone https://github.com/echoprotocol/echo.git
2
cd echo
3
git checkout <LATEST_RELEASE_TAG>
4
git submodule update --init --recursive
5
mkdir build
6
cd build
7
cmake -DCMAKE_BUILD_TYPE=Release ..
8
cmake --build .
Copied!

Building on Raspberry Pi

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.
1
mkdir build
2
cd build
3
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/rpi-native.cmake ..
4
cmake --build .
Copied!
Last modified 1yr ago