-
Notifications
You must be signed in to change notification settings - Fork 12
Windows
Johannes Hahn edited this page Nov 24, 2023
·
4 revisions
This section will explain how to build the Epic Cash projects on Windows and the necessary requirements.
- rust (Stable)
- Cmake, between 1.16 and 1.19
- openssl
- strawberryperl
- visualstudio2019community
- visualstudio2019-workload-nativedesktop
- llvm
Instructions on how to install chocolatey can be found on Chocolatey install page.
To install all the dependencies, besides rust, run:
choco install -f -y cmake --version=3.16.2 --installargs 'ADD_CMAKE_TO_PATH=System'
choco install -f -y openssl
choco install -f -y strawberryperl
choco install -f -y visualstudio2019community
choco install -f -y visualstudio2019-workload-nativedesktop
choco install -f -y llvm
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)
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>