Skip to content

Latest commit

 

History

History
126 lines (72 loc) · 2.99 KB

Build-Spacecoin-QT-From-Source.md

File metadata and controls

126 lines (72 loc) · 2.99 KB

Build Spacecoin-QT From Source

This guide will teach you how to build Spacecoin-QT source code.

Table of Contents

Please Note

Instructions vary based on your operating system.

The Windows instructions are intended for Ubuntu to cross compile for Windows.

There are binaries available if you don't wish to build from source.

Linux

  1. Open the Terminal.

  2. 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

  3. Clone the SpaceOcean repository:

    git clone https://github.com/SpaceWorksCo/SpaceOcean --branch static-spacecoin --single-branch

  4. Enter the SpaceOcean directory:

    cd SpaceOcean

  5. Fetch the zcash paramaters:

    ./zcutil/fetch-params.sh

  6. Build Spacecoin-QT: (Replace -j4 with the number of cores you'd like to use.)

    ./zcutil/build-linux.sh -j4

Mac

  1. Open the Terminal.

  2. Install brew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  3. Install Xcode: (A pop-up window will open to install CLT without installing the entire Xcode package.)

    xcode-select --install

  4. Update brew:

    brew update

  5. Upgrade brew:

    brew upgrade

  6. Install dependencies:

    brew tap discoteq/discoteq; brew install flock
    brew install autoconf autogen automake
    brew install gcc@6
    brew install binutils
    brew install protobuf
    brew install coreutils
    brew install wget
    
  7. Clone the SpaceOcean repository:

    git clone https://github.com/SpaceWorksCo/SpaceOcean --branch static-spacecoin --single-branch

  8. Enter the SpaceOcean directory:

    cd SpaceOcean

  9. Fetch the zcash paramaters:

    ./zcutil/fetch-params.sh

  10. Build Spacecoin-QT: (Replace -j4 with the number of cores you'd like to use.)

    ./zcutil/build-mac.sh -j4

Windows

  1. Open the Terminal.

  2. 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

  3. 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
    
  4. Configure to use POSIX variants:

    sudo update-alternatives --config x86_64-w64-mingw32-gcc
    sudo update-alternatives --config x86_64-w64-mingw32-g++
    
  5. Clone the SpaceOcean repository:

    git clone https://github.com/SpaceWorksCo/SpaceOcean --branch static-spacecoin --single-branch

  6. Enter the SpaceOcean directory:

    cd SpaceOcean

  7. Build Spacecoin-QT: (Replace -j4 with the number of cores you'd like to use.)

    ./zcutil/build-win.sh -j4