Running DeltaTouch on Arch Linux

DeltaTouch can be run natively on Arch Linux. Here are some notes on how to build and run it without proper packaging.

DeltaTouch depends on lomiri-ui-toolkit, which needs to be installed from AUR first: AUR (en) - lomiri-ui-toolkit
This in turn depends on another dependency not officially packaged, qt5-pim, which can be installed from AUR (en) - qt5-pim-git

Building DeltaTouch also requires installing AUR (en) - quirc

You also need to build libdeltachat.so, I assume it is available at /path/to/libdeltachat.so.

After installing the dependencies, I checked out the commit Its products can in some subordinate post for.

#!/bin/sh
set -eu

sed -i 's/VERSION 3.0.0/VERSION 4.0.0/' CMakeLists.txt

cmake -B build

mkdir -p build/plugins/DeltaHandler/
mkdir -p build/plugins/XdcPickerEngineProfile/

cp /usr/lib/libquirc.so build/plugins/DeltaHandler/libquirc.so.1.2

for plugin in DeltaHandler XdcPickerEngineProfile HtmlMsgEngineProfile WebxdcEngineProfile; do
        cp /path/to/libdeltachat.so "build/plugins/$plugin/"
        cp plugins/$plugin/qmldir build/plugins/$plugin/$plugin/
done

# Build
cmake --build build

Then run it with this script in the source dir:

#!/bin/sh
export QML2_IMPORT_PATH="$PWD/build/plugins/DeltaHandler/:$PWD/build/plugins/XdcPickerEngineProfile/"
build/deltatouch
3 Likes

Now when checking out commit 73f0e72d763de4af2d8f0f91ff86d3ce39dfe6b3 with PR #34 - Import libdeltachat and libquirc without copying them into the bulid tree - lk108/deltatouch - Codeberg.org merged it is enough to run this:

cmake -B build -D CMAKE_INSTALL_PREFIX=/usr
cmake --build build
DESTDIR="$PWD/pkg" cmake --install build/

export QML2_IMPORT_PATH="$PWD/pkg/lib/"
pkg/usr/deltatouch
2 Likes

DeltaTouch is available in AUR now:
https://aur.archlinux.org/packages/deltatouch-git

5 Likes

I tried to install the package with pikaur, but, I receive errors like this one here:

==> ERROR: A failure occurred in build().
    Aborting...

Command 'sudo --user=#1000 -- makepkg --force' failed to execute.

Is there any reason it is called “deltatouch-git” instead of “deltatouch”?

AUR packages that install the latest version from got have -got suffix, just “deltatouch” is something for release version.

1 Like

Is anyone providing bins for lomiri-ui-toolkit? lomiri-ui-toolkit currently doesn’t build on Arch. I tried the package from AUR, which was out of date; I manually updated it to the most current release, which had the same compile errors; and then I built a -git package for lomiri-ui-toolkit (which tried to build from HEAD) and that also had errors. I tried patching the project to fix the redefines (all of the errors were redefines), but it spawned a bunch of other errors for other redefines. The project is either not configured in a way that works with Arch, or it’s picking a C compiler (I have both gcc and clang installed) that it doesn’t work with. I couldn’t find the ticketing system for the project to report the issue.

EDIT It’s just the package definition that’s broken. Checking lomiri out from gitlab and manually building it works. I’ll make a note in AUR.

2 Likes

I fixed the build at AUR (en) - lomiri-ui-toolkit

3 Likes