This guide will teach you how to build Spacecoin source code.
Instructions vary based on your operating system.
The Windows instructions are intended for Ubuntu to cross compile for Windows.
-
Open the Terminal.
-
Install dependencies:
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget libcurl4-gnutls-dev bsdmainutils automake curl libsodium-dev
-
Clone the Spacecoin repository:
git clone https://github.com/SpaceWorksCo/spacecoin
-
Enter the Spacecoin directory:
cd spacecoin
-
Fetch the zcash paramaters:
./zcutil/fetch-params.sh
-
Build Spacecoin: (Replace -j4 with the number of cores you'd like to use.)
./zcutil/build.sh -j4
Spacecoin is built and ready to run.
-
Open the Terminal.
-
Install brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Xcode: (A pop-up window will open to install CLT without installing the entire Xcode package.)
xcode-select --install
-
Update brew:
brew update
-
Upgrade brew:
brew upgrade
-
Install dependencies:
brew tap discoteq/discoteq; brew install flock brew install autoconf autogen automake brew install gcc@8 brew install binutils brew install protobuf brew install coreutils brew install wget
-
Clone the Spacecoin repository:
git clone https://github.com/SpaceWorksCo/spacecoin
-
Enter the Spacecoin directory:
cd spacecoin
-
Fetch the zcash paramaters:
./zcutil/fetch-params.sh
-
Build Spacecoin: (Replace -j4 with the number of cores you'd like to use.)
./zcutil/build-mac.sh -j4
Spacecoin is built and ready to run.
-
Open the Terminal.
-
Install dependencies:
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget libcurl4-gnutls-dev bsdmainutils automake curl cmake mingw-w64 libsodium-dev libevent-dev
-
Install rust targeting x86_64-pc-windows:
curl https://sh.rustup.rs -sSf | sh source $HOME/.cargo/env rustup target add x86_64-pc-windows-gnu
-
Configure to use POSIX variants:
sudo update-alternatives --config x86_64-w64-mingw32-gcc sudo update-alternatives --config x86_64-w64-mingw32-g++
-
Clone the Spacecoin repository:
git clone https://github.com/SpaceWorksCo/spacecoin
-
Enter the Spacecoin directory:
cd spacecoin
-
Build Spacecoin: (Replace -j4 with the number of cores you'd like to use.)
./zcutil/build-win.sh -j4
Spacecoin is built and ready to run.