diff --git a/.github/actions/system-deps/action.yml b/.github/actions/system-deps/action.yml index 1767ab4..7784414 100644 --- a/.github/actions/system-deps/action.yml +++ b/.github/actions/system-deps/action.yml @@ -16,7 +16,8 @@ runs: - name: apt packages if: runner.os == 'Linux' 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 # (bindgen), Xvfb (X11 tests). run: | @@ -27,7 +28,7 @@ runs: "${sudo[@]}" apt-get update "${sudo[@]}" apt-get install -y --no-install-recommends \ 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 \ xvfb xauth diff --git a/docker/linux.Dockerfile b/docker/linux.Dockerfile index 0b7a641..4c7d652 100644 --- a/docker/linux.Dockerfile +++ b/docker/linux.Dockerfile @@ -19,7 +19,7 @@ ARG DEBIAN_FRONTEND=noninteractive # the .deb's dependencies and patchelf for the .tar.gz's bundled libraries. 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 \ - 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 \ && rm -rf /var/lib/apt/lists/* # Extra CA certificates (PEM, one or more), for building behind a diff --git a/docs/building.md b/docs/building.md index 3c2fad5..84c4e9f 100644 --- a/docs/building.md +++ b/docs/building.md @@ -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 `rustc` does not build the workspace. - **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` and `scripts/package.sh linux`. - **The GPUI front end** (`cargo build -p voelin-gpui --release`, under construction, - in no package yet) builds with the same development packages (fontconfig and - freetype headers among them). At run time it draws through wgpu: a Vulkan - driver (Mesa's RADV, ANV or NVK, NVIDIA's) or OpenGL through EGL, and in a - virtual machine or a remote desktop Mesa's lavapipe (`mesa-vulkan-drivers`) - in software. It opens `libwayland-client`, `libxkbcommon`, `libxkbcommon-x11` - and `libxcb` by name, so a desktop has them already. X11 needs a window - manager for fullscreen and close requests. + in no package yet) builds with the same development packages, which include + `libxkbcommon-x11-dev` and `libxcb1-dev` (it links `libxkbcommon-x11` and + `libxcb`, as `readelf -d` on the binary shows; the list above did not have + their development packages before). At run time it needs those libraries installed, opens `libwayland-client`, + the Vulkan loader (`libvulkan.so.1`) and `libEGL.so.1` by name, and draws + through wgpu: a Vulkan driver (Mesa's RADV, ANV or NVK, NVIDIA's) or OpenGL, + 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) (MSVC, vcpkg libvpx and dav1d, NSIS), then `bash scripts/fetch-ffmpeg-windows.sh ffmpeg && FFMPEG_DLL_DIR=ffmpeg bash scripts/package.sh windows` diff --git a/docs/ci.md b/docs/ci.md index f9ad8c2..3c43ed8 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -131,8 +131,9 @@ docker run --rm --init -v "$PWD":/src -w /src -e HOME=/root \ ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git apt-get update && apt-get install -y --no-install-recommends \ build-essential ca-certificates cmake curl git jq pkg-config python3 \ - libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev \ - libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev xvfb xauth + 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 xvfb xauth curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | \ sh -s -- -y --profile minimal --default-toolchain none . "$CARGO_HOME/env" && rustup toolchain install diff --git a/docs/ui.md b/docs/ui.md index 4f1133f..e19b509 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -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, 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 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).