Skip to content

Instantly share code, notes, and snippets.

@nathan818fr
Last active October 14, 2023 05:42
Show Gist options
  • Save nathan818fr/302eb760daf4161e1b9cf4969f4b9912 to your computer and use it in GitHub Desktop.
Save nathan818fr/302eb760daf4161e1b9cf4969f4b9912 to your computer and use it in GitHub Desktop.
Command to build Looking Glass client (tested with B6) for Debian bookworm, inside a container (podman / docker).
  1. Download and extract Looking Glass sources from: https://looking-glass.io/downloads
  2. Navigate to the extracted folder
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment