Skip to content

Build Fedora

HLXEasy edited this page Dec 4, 2018 · 7 revisions

How to build Spectrecoin on Fedora

In the following a short description how to build spectrecoin and spectrecoind on Fedora 28.

Preparing build system

Update package lists

apt-get update -y

Install build time dependencies:

apt-get install -y --no-install-recommends \
    autoconf \
    automake \
    boost-devel \
    gcc-c++ \
    git \
    less \
    libcap-devel \
    libevent-devel \
    libseccomp-devel \
    libtool \
    libzstd-devel \
    make \
    mc \
    openssh-clients \
    openssl-devel \
    patch \
    pkg-config \
    qt5 \
    qt5-devel \
    qt5-qtwebengine-devel \
    wget

The package mc (Midnight Commander) is there just for convenience. ;-)

See up2date list of build time dependencies on corresponding Dockerfile, which is used to build Spectrecoin on our Continuous Integration.

Build

To build Spectrecoin you need to do the same steps as we do using Docker. The latest version can be found here.

  • Clone the Git repository and cd into the directory
    » git clone https://github.com/spectrecoin/spectre.git
    » cd spectre
    
  • Perform the build
    » patch < Docker/Fedora/QT5BinaryPath.patch
    » ./autogen.sh
    » ./configure --enable-gui --with-qt5=/usr/include/qt5
    » make
    

The two binaries spectre (UI) and spectrecoind (daemon) can be found in the directory src afterwards.

To install them, just do this:

cp src/spectre /usr/local/bin/spectrecoin
cp src/spectrecoind /usr/local/bin/spectrecoind

Now you can use them right from the cmdline.

Clone this wiki locally