- Download and extract Looking Glass sources from: https://looking-glass.io/downloads
- Navigate to the extracted folder
- Run the following command:
mkdir -p "${PWD}/out" &&
podman run --rm -v "${PWD}:/src/:ro" -v "${PWD}/out/:/src/out/:rw" -it "debian:$(lsb_release -sc)" /bin/bash -c '
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update &&
apt-get install -yqq --no-install-recommends --no-install-recommends binutils-dev make cmake fonts-dejavu-core libfontconfig-dev gcc g++ pkg-config libegl-dev libgl-dev libgles-dev libspice-protocol-dev nettle-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxpresent-dev libxss-dev libxkbcommon-dev libwayland-dev wayland-protocols libdecor-0-dev libpipewire-0.3-dev libpulse-dev libsamplerate0-dev &&
rm -rf /var/lib/apt/lists/*
mkdir /build &&
cd /build &&
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LIBDECOR=ON /src/client &&
make -j "$(nproc)"
install -o "$(stat -c%u /src/out)" -g "$(stat -c%g /src/out)" -m 0755 looking-glass-client /src/out/looking-glass-client
'
The looking-glass-client
binary is saved in the out folder!
Note: To run it, you'll need to install the necessary runtime dependencies.