Skip to content

Build Ubuntu

HLXEasy edited this page Oct 12, 2021 · 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 \ build-essential \ ca-certificates \ g++ \ gpg \ git \ less \ libcap-dev \ libevent-dev \ libqt5network5 \ libqt5quick5 \ libqt5quickwidgets5 \ libqt5svg5-dev \ libqt5webchannel5-dev \ libqt5websockets5-dev \ libqt5webview5-dev \ libqt5widgets5 \ libseccomp-dev \ libssl-dev \ libtool \ libz-dev \ locales \ make \ openssh-client \ pkg-config \ qt5-default \ qtbase5-dev \ qttools5-dev \ qttools5-dev-tools \ qtwebengine5-dev \ software-properties-common \ wget \ 

See up2date list of build time dependencies on corresponding Dockerfiles, which we use to build Alias with Github-Actions.

CMake

Ubuntu 18.x

Install CMake from Kitware as distro package is too old

wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' apt-get update -y apt-get install -y cmake 

Ubuntu 20.x

apt-get install -y cmake 

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 -s 

Used options:

  • -g to build the graphical UI
  • -s to use Qt from the system

Use option -h to see the full list of available options.

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.

Please refer to these additional documentations regarding the installation:

Clone this wiki locally