-
Notifications
You must be signed in to change notification settings - Fork 12
macOS
Johannes Hahn edited this page Nov 24, 2023
·
4 revisions
This section will explain how to build the Epic Cash projects on macOS and the necessary requirements.
- rust (Stable)
- Xcode
- Cmake, between 1.16 and 1.19
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)
Xcode can be initialized by running:
xcode-select --install
Following the steps should get Xcode running in your machine
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"
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
A successful build should get the binary on:
target/release/<project-name>