Skip to content

Building on Linux

Adrian Lucrèce Céleste edited this page Apr 7, 2019 · 18 revisions

Binaries Built

  • barrier the GUI front-end and "main" program
  • barriers the CLI server component
  • barrierc the CLI client component

note: these aren't the only things build at compile time, but merely what the end-user is expected to use.

Ubuntu/Debian/Raspbian: Build from source

sudo apt update && sudo apt upgrade
sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \
                 libavahi-compat-libdnssd-dev libssl-dev libx11-dev \
                 libqt4-dev qtbase5-dev
git clone [email protected]:debauchee/barrier.git
# this builds from master,
# you can get release tarballs instead
# if you want to build from a specific tag/release
cd barrier
./clean_build.sh
cd build
sudo make install  # installs to /usr/local/ 

Fedora: Build from source:

sudo dnf install git cmake make gcc-c++ xorg-x11-server-devel \
                 libcurl-devel avahi-compat-libdns_sd-devel \
                 libXtst-devel qt5 qt5-devel openssl-devel
git clone [email protected]:debauchee/barrier.git
# this builds from master,
# you can get release tarballs instead
# if you want to build from a specific tag/release
cd barrier
./clean_build.sh
cd build
sudo make install  # installs to /usr/local/ 
Clone this wiki locally