How to install barrier through the F-Droid repos

Hello to everyone.

I’m using termux,installed through F-Droid on Android 14 installed on the Raspberry Pi 4.
This is what I did to have xfce4 running with X11 :

$ pkg install x11-repo termux-x11-nightly xwayland xfce4-session xfce4 xfce4-goodies
$ pkg upgrade

installed app-arm64-v8a-debug.apk from here :

https://github.com/termux/termux-x11/releases/download/nightly/app-arm64-v8a-debug.apk

$ termux-x11 :1 -xstartup "dbus-launch --exit-with-session xfce4-session"

nano /data/data/com.termux/files/home/.xinitrc

xterm&

at this point I can use xfce4 + X11 on Android : great. 
Now what I really miss is barrier. 
I find very comfortable to be able to share mouse and keyboard from 
Linux to xfce4 installed on top of Android through termux. 
Unfortunately,when I tried to install barrier using :

$ pkg install barrier

I saw that this package can't be installed. 
Is there an alternative method to have it ? 

build locally?

pkg install build-essential git
git clone https://github.com/debauchee/barrier
cd barrier
./clean_build.sh

or ask Termux to add it: Issues · termux/termux-packages · GitHub

Thanks. barrier can’t be compiled from source because I can’t install this package : avahi-compat-libdns_sd because it is not present on the repos.

build that too? :slight_smile: yeah… it’s a carousel

1 Like

I don’t understand what you mean.

1 Like

Hello.

I’ve copied all the libraries needed by barrier. I see that some libraries aren’t detected even if I copied them on the right place (usr/lib) :

# ldd barrier

libQt5Widgets.so.5
libQt5Network.so.5
libcrypto.so.3
libdns_sd.so.1
libX11.so.6
libQt5Gui.so.5
libQt5Core.so.5
libstdc++.so.6
libgcc_s.so.1
libc.so.6
ld-linux-aarch64.so.1

is there a special command that register them,so that the system can detect them ? something like sudo ldconfig,but this command does not work on termux.

copied from where? you need those built for arm64 on Android… you can’t copy from random other operating systems

1 Like

@Marietto2008
packages for arm64 debian won’t run on Android because they’re linked against glibc not bionic

1 Like

There used to be an app for Synergy on F-Droid that I got to work a few times, but it was buggy and crashed a lot. Maybe that could be updated to work with Barrier and be more stable? I’d love if that were functional again.

Added on 2015 ; I don’t think it has been updated since then. It does not worth to spend time and energy to try it.