Build Argentum from sources on Ubuntu

Argentum switched to using vcpkg so it automatically installs and builds all dependencies for all platforms in all configurations. Argentum dependencies include LLVM, Skia, SDL, Curl, SqLite and other libraries.

The initial build takes ≈60Gb of storage, it requires 16+Gb RAM, and depending on device configuration can take up to 6 Hours.

All subsequent rebuilds take minutes.

Install build tools

sudo apt-get upgrade
sudo apt-get update
sudo apt-get install cmake build-essential ninja-build linux-libc-dev pkg-config
sudo apt-get install autoconf-archive libgl1-mesa-dev
sudo apt install autoconf automake libtool

Prepare VCPKG

mkdir ~/cpp && cd ~/cpp
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg && ./bootstrap-vcpkg.sh

Create/clone Argentum repo

cd ~/cpp
git clone https://github.com/karol11/argentum.git
cd argentum/

Build Argentum

cmake --preset default -DCMAKE_BUILD_TYPE=Release
cmake --build build

The first of two commands downloads, patches and builds all dependencies. It takes hours and may fail depending on you distribution and OS version. If this happened, read log/output and apt install needed dependencies.

The second one actually builds argentum, it takes a minute or two and upon completion it make you an output directory identical to one in Windows build.

Try console apps without extra dependencies

cd output/workdir/
../bin/run-release.bash threadTest

TBD: other apps, vscode, debugging etc.

Leave a Reply

Your email address will not be published. Required fields are marked *