Skip to content
Johannes Hahn edited this page Nov 24, 2023 · 4 revisions

Table of contents

Building the projects - macOS

This section will explain how to build the Epic Cash projects on macOS and the necessary requirements.

Requirements

  • rust (Stable)
  • Xcode
  • Cmake, between 1.16 and 1.19

Installing rust

Instructions on how to install rust can be found on the rust-lang webpage.

To change rust to version 1.60.0, you can run:

rustup default 1.60.0

To validate rust installation and check the current version you can run:

rustc --version

The output should be something like this:

rustc 1.60.0 (xxxxx)

Initialize Xcode and git

Xcode can be initialized by running:

xcode-select --install

Following the steps should get Xcode running in your machine

Install Cmake 3.17.5

To install Cmake 3.17.5, run this commands:

curl -O https://cmake.org/files/v3.17/cmake-3.17.5-Darwin-x86_64.dmg
sudo hdiutil attach cmake-3.17.5-Darwin-x86_64.dmg

Then add it to PATH:

export PATH="/Volumes/cmake-3.17.5-Darwin-x86_64/CMake.app/Contents/bin":"$PATH"

Building the binaries

With all the requirements installed, clone the project you are trying to build (epic, epic-wallet or epic-miner with:

git clone <link-to-project>

Go to the folder of the cloned repository and run:

git submodule update --init --recursive
cargo build --release

What was built

A successful build should get the binary on:

target/release/<project-name>