Skip to content

Build Ubuntu

HLXEasy edited this page Nov 9, 2020 · 12 revisions

How to build the Alias wallet on Ubuntu

In the following a short description how to build aliaswallet and aliaswalletd on Ubuntu 18.04 and 20.04

Preparing build system

Update package lists and update system:

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

Install build time dependencies:

Ubuntu 18.04 / 20.04

apt-get install -y --no-install-recommends \
    autoconf \
    automake \
    autopoint \
    build-essential \
    ca-certificates \
    cmake \
    g++ \
    git \
    less \
    libcap-dev \
    libqt5network5 \
    libqt5quick5 \
    libqt5quickwidgets5 \
    libqt5svg5-dev \
    libqt5webchannel5-dev \
    libqt5websockets5-dev \
    libqt5webview5-dev \
    libqt5widgets5 \
    libseccomp-dev \
    libssl-dev \
    libtool \
    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 Alias on our Continuous Integration system.

Build

To build Alias 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/aliascash/alias-wallet.git
    » cd alias-wallet
    
  • Perform the build
    » ./scripts/cmake-build.sh -g
    

The two binaries aliaswallet (UI) and aliaswalletd (daemon) can be found in the directory cmake-build-cmdline/aliaswallet/src/ afterwards.

To install them, just do this:

cp cmake-build-cmdline/aliaswallet/src/aliaswallet  /usr/local/bin/aliaswallet
cp cmake-build-cmdline/aliaswallet/src/aliaswalletd /usr/local/bin/aliaswalletd

Now you can use them right from the cmdline.

Clone this wiki locally