Skip to content

tokenchain/spectre

Repository files navigation

SpectreCoin

This is the official source code repository for Spectrecoin (XSPEC).

The latest release is 1.3.5, released on January 16, 2018.

Building from source

Dependencies

We do not currently provide Linux binary packages. To build the SpectreCoin wallet from source, you will need the following dependencies:

  • OpenSSL 1.0
  • libevent
  • libseccomp
  • libcap
  • boost
  • Qt 5 and QtWebKit if you want to build the GUI wallet. Qt is not needed for the console wallet.

Additionally, you'll need a C/C++ compiler and the basic dependencies needed for any kind of development. On most Linux distributions there is a metapackage that installs these. On macOS this means you will need Xcode and the Command Line Tools.

To check all dependencies and install missing ones on Debian or Ubuntu:

apt install build-essential libssl1.0-dev libevent-dev libseccomp-dev libcap-dev libboost-all-dev pkg-config
apt install qtbase5-dev libqt5webkit5-dev  # only if building the GUI wallet

To check all dependencies and install missing ones on Arch Linux:

pacman -S --needed base-devel openssl-1.0 libevent libseccomp libcap boost
pacman -S --needed qt5  # only if building the GUI wallet

To check all dependencies and install missing ones on macOS (this uses the Homebrew package manager; if you use something else then adjust the commands accordingly):

brew install autoconf automake libtool pkg-config openssl libevent boost gcc
# the following commands are only needed if building the GUI wallet
brew tap KDE-mac/homebrew-kde
brew install qt qt-webkit

Building

To fetch the source code and build the wallet run the following commands:

git clone --recursive https://github.com/XSPECOfficial/spectre
cd spectre
./autogen.sh
./configure --enable-gui  # leave out --enable-gui to build only the console wallet
make -j2  # use a higher number if you have many cores and memory, leave -j2 out if you are on a very low-powered system like Raspberry Pi

The resulting binaries will be in the src directory and called spectre for the GUI wallet and spectrecoind for the console wallet.

If your distribution provides both OpenSSL 1.0 and OpenSSL 1.1, you may need to use the PKG_CONFIG_PATH environment variable to point configure to the directory that contains the openssl.pc file for OpenSSL 1.0. For example, on Arch Linux it's necessary to do this:

PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig ./configure --enable-gui

Cross-compiling for Windows is supported using MingW64, by passing the appropriate --host parameter to ./configure.

About

Official SpectreCoin source code repository

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors