Skip to content

Building on Linux

Jonathan Martens edited this page Jun 6, 2020 · 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.

Preparing your system

Ubuntu/Debian/Raspbian

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

Fedora

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

openSUSE

sudo zypper install libdrm-devel libglvnd-devel libICE-devel libQt5Core-devel libQt5Gui-devel libQt5Network-devel libqt5-qtbase-common-devel libQt5Widgets-devel libSM-devel libXinerama-devel libXrandr-devel libXrender-devel

Building from source

git clone https://github.com/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 # install to /usr/local/
Clone this wiki locally