Skip to content

Build Ubuntu

HLXEasy edited this page Apr 10, 2020 · 12 revisions

How to build Spectrecoin on Ubuntu

In the following a short description how to build spectrecoin and spectrecoind on Ubuntu 18.04, 19.04 and 19.10

Preparing build system

Update package lists and update system:

apt-get update -y && apt-get upgrade -y

Install build time dependencies:

Ubuntu 18.04 / 19.04

apt-get install -y --no-install-recommends \
    autoconf \
    automake \
    build-essential \
    ca-certificates \
    g++ \
    git \
    less \
    libboost1.65-all-dev \
    libcap-dev \
    libevent-dev \
    libqt5network5 \
    libqt5quick5 \
    libqt5quickwidgets5 \
    libqt5webchannel5-dev \
    libqt5websockets5-dev \
    libqt5webview5-dev \
    libqt5widgets5 \
    libseccomp-dev \
    libssl-dev \
    libtool \
    libz-dev \
    locales \
    make \
    mc \
    openssh-client \
    pkg-config \
    qt5-default \
    qtbase5-dev \
    qttools5-dev-tools \
    qtwebengine5-dev \
    wget

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

See up2date list of build time dependencies on corresponding Dockerfiles, which we use to build Spectrecoin on our Continuous Integration system.

Ubuntu 19.10

Install same packages as above but change libboost package to libboost1.67-all-dev.

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
    » ./autogen.sh
    » ./configure --enable-gui
    » 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