CI and docs: libxkbcommon-x11-dev and libxcb1-dev, which the GPUI front end links

The release binary of voelin-gpui links libxcb.so.1 and libxkbcommon-x11.so.0
(`readelf -d`: libxcb, libxkbcommon, libxkbcommon-x11, libasound, libm, libc)
and opens libwayland-client.so.0, libvulkan.so.1 and libEGL.so.1 by name
(`strings`). The development packages of the first two were in no package
list, so a workspace build on the Ubuntu runner (CI builds every member)
would have failed to link: .github/actions/system-deps, the CI example in
docs/ci.md, docker/linux.Dockerfile ("the same libraries as CI") and the apt
line of docs/building.md name libxkbcommon-x11-dev and libxcb1-dev now, and
building.md and docs/ui.md say what the GPUI front end links and what it
opens by name (an earlier sentence of mine had all of them opened by name).
Not run: no Ubuntu runner or image here; this machine builds with Nix's
libraries, where the headers come from the same projects.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-27 08:10:37 +03:00
1 parent d4f9e59ed6
commit 97d51fb226
5 files changed
+21 -14

No files matched your search

+3 -2
View File
@@ -16,7 +16,8 @@ runs:
- name: apt packages - name: apt packages
if: runner.os == 'Linux' if: runner.os == 'Linux'
shell: bash shell: bash
# ALSA (audio devices), fontconfig + xkbcommon (UI), libvpx + dav1d # ALSA (audio devices), fontconfig + xkbcommon (UI), xkbcommon-x11 + xcb (linked
# by the GPUI front end), libvpx + dav1d
# (video codecs), PipeWire + SPA (screen and audio capture), libclang # (video codecs), PipeWire + SPA (screen and audio capture), libclang
# (bindgen), Xvfb (X11 tests). # (bindgen), Xvfb (X11 tests).
run: | run: |
@@ -27,7 +28,7 @@ runs:
"${sudo[@]}" apt-get update "${sudo[@]}" apt-get update
"${sudo[@]}" apt-get install -y --no-install-recommends \ "${sudo[@]}" apt-get install -y --no-install-recommends \
build-essential ca-certificates cmake curl git jq pkg-config python3 \ build-essential ca-certificates cmake curl git jq pkg-config python3 \
libasound2-dev libfontconfig1-dev libxkbcommon-dev \ libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev \
libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \ libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \
xvfb xauth xvfb xauth
+1 -1
View File
@@ -19,7 +19,7 @@ ARG DEBIAN_FRONTEND=noninteractive
# the .deb's dependencies and patchelf for the .tar.gz's bundled libraries. # the .deb's dependencies and patchelf for the .tar.gz's bundled libraries.
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential ca-certificates cmake curl dpkg-dev git openssh-client patchelf pkg-config \ build-essential ca-certificates cmake curl dpkg-dev git openssh-client patchelf pkg-config \
libasound2-dev libfontconfig1-dev libxkbcommon-dev \ libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev \
libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \ libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Extra CA certificates (PEM, one or more), for building behind a # Extra CA certificates (PEM, one or more), for building behind a
+10 -8
View File
@@ -125,17 +125,19 @@ the proxy is on localhost. If the proxy inspects TLS, set
call `std::hint::cold_path`, stable since 1.95.0), so a distribution's older call `std::hint::cold_path`, stable since 1.95.0), so a distribution's older
`rustc` does not build the workspace. `rustc` does not build the workspace.
- **Linux:** the packages from the table above need - **Linux:** the packages from the table above need
`sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev patchelf`, `sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev patchelf`,
then `cargo build --release --locked -p voelin-ui -p voelin-gateway` then `cargo build --release --locked -p voelin-ui -p voelin-gateway`
and `scripts/package.sh linux`. and `scripts/package.sh linux`.
- **The GPUI front end** (`cargo build -p voelin-gpui --release`, under construction, - **The GPUI front end** (`cargo build -p voelin-gpui --release`, under construction,
in no package yet) builds with the same development packages (fontconfig and in no package yet) builds with the same development packages, which include
freetype headers among them). At run time it draws through wgpu: a Vulkan `libxkbcommon-x11-dev` and `libxcb1-dev` (it links `libxkbcommon-x11` and
driver (Mesa's RADV, ANV or NVK, NVIDIA's) or OpenGL through EGL, and in a `libxcb`, as `readelf -d` on the binary shows; the list above did not have
virtual machine or a remote desktop Mesa's lavapipe (`mesa-vulkan-drivers`) their development packages before). At run time it needs those libraries installed, opens `libwayland-client`,
in software. It opens `libwayland-client`, `libxkbcommon`, `libxkbcommon-x11` the Vulkan loader (`libvulkan.so.1`) and `libEGL.so.1` by name, and draws
and `libxcb` by name, so a desktop has them already. X11 needs a window through wgpu: a Vulkan driver (Mesa's RADV, ANV or NVK, NVIDIA's) or OpenGL,
manager for fullscreen and close requests. and in a virtual machine or a remote desktop Mesa's lavapipe
(`mesa-vulkan-drivers`) in software. X11 needs a window manager for
fullscreen and close requests.
- **Windows:** [packaging/windows/README.md](../packaging/windows/README.md) - **Windows:** [packaging/windows/README.md](../packaging/windows/README.md)
(MSVC, vcpkg libvpx and dav1d, NSIS), then (MSVC, vcpkg libvpx and dav1d, NSIS), then
`bash scripts/fetch-ffmpeg-windows.sh ffmpeg && FFMPEG_DLL_DIR=ffmpeg bash scripts/package.sh windows` `bash scripts/fetch-ffmpeg-windows.sh ffmpeg && FFMPEG_DLL_DIR=ffmpeg bash scripts/package.sh windows`
+3 -2
View File
@@ -131,8 +131,9 @@ docker run --rm --init -v "$PWD":/src -w /src -e HOME=/root \
ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
build-essential ca-certificates cmake curl git jq pkg-config python3 \ build-essential ca-certificates cmake curl git jq pkg-config python3 \
libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev \ libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev \
libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev xvfb xauth libxcb1-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev \
libclang-dev xvfb xauth
curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | \ curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --profile minimal --default-toolchain none sh -s -- -y --profile minimal --default-toolchain none
. "$CARGO_HOME/env" && rustup toolchain install . "$CARGO_HOME/env" && rustup toolchain install
+4 -1
View File
@@ -1016,7 +1016,10 @@ VOELIN_OPEN=swatch VOELIN_DEV_THEME=light cargo run -p voelin-gpui --release
GPUI draws through wgpu: it needs a Vulkan driver (Mesa's RADV, ANV or NVK, GPUI draws through wgpu: it needs a Vulkan driver (Mesa's RADV, ANV or NVK,
NVIDIA's) or OpenGL at run time; in a virtual machine, a remote desktop or NVIDIA's) or OpenGL at run time; in a virtual machine, a remote desktop or
CI, Mesa's lavapipe (`mesa-vulkan-drivers`) draws in software. Which device a CI, Mesa's lavapipe (`mesa-vulkan-drivers`) draws in software. The binary
links `libxcb` and `libxkbcommon-x11` (the build needs `libxkbcommon-x11-dev`
and `libxcb1-dev`, which the package lists before it did not name) and opens
`libwayland-client`, `libvulkan.so.1` and `libEGL.so.1` by name. Which device a
run took is in the log ("Selected GPU adapter: ..."; the default filter shows run took is in the log ("Selected GPU adapter: ..."; the default filter shows
GPUI's adapter lines: `VOELIN_LOG` or `RUST_LOG` change it). On Wayland and GPUI's adapter lines: `VOELIN_LOG` or `RUST_LOG` change it). On Wayland and
on X11 (a window manager is needed there for fullscreen and close requests). on X11 (a window manager is needed there for fullscreen and close requests).