Skip to content

ci: install libvulkan-dev on Linux - #9

Closed
igagis-bot wants to merge 1 commit into
cppfw:mainfrom
igagis-bot:ci/linux-install-libvulkan-dev
Closed

igagis-bot wants to merge 1 commit into
cppfw:mainfrom
igagis-bot:ci/linux-install-libvulkan-dev

Conversation

@igagis-bot

Copy link
Copy Markdown
Contributor

Problem

The Linux CI jobs fail when linking the ruisapp GTK4 backends (xorg/wayland)
and ruis-render-vulkan. pkg-config --libs gtk4 emits -lvulkan, so the
link line needs a libvulkan.so; ruis-render-vulkan also links the
Vulkan::Vulkan target. But the Linux job installed libgtk-4-dev without
libvulkan-dev, and the vcpkg manifest does not build vulkan — so there was
no libvulkan.so available and the link failed with undefined references to
vkCreate*SurfaceKHR.

Fix

Add libvulkan-dev to the install build deps step of the Linux job. This
provides the Vulkan loader for both the GTK4 -lvulkan link and
find_package(Vulkan) (module mode) for ruis-render-vulkan.

Note

This supersedes cppfw/ruisapp#30, which attempted to fix the link by adding
Vulkan::Vulkan to ruisapp's CMake. That approach relies on
find_package(Vulkan) succeeding, which it cannot in CI (vulkan is neither in
the vcpkg manifest nor installed on the runner), so it would break the
configure step rather than fix the link.

The ruisapp GTK4 backends link via pkg-config gtk4, which emits -lvulkan.
The Vulkan loader is also required by ruis-render-vulkan (Vulkan::Vulkan).
The Linux CI jobs installed libgtk-4-dev but not libvulkan-dev, so there was
no libvulkan.so available and the link failed with undefined references to
vkCreate*SurfaceKHR. Install libvulkan-dev in the install build deps step.
@igagis-bot

Copy link
Copy Markdown
Contributor Author

Superseded by #11. Installing the system libvulkan-dev is not sufficient: the vcpkg-built vulkan-loader shares the SONAME libvulkan.so.1 and takes link precedence over the system loader, so its (WSI-less) symbol set is what the linker resolves. #11 enables the xlib/wayland features of the vulkan-loader in the vcpkg manifest, which fixes the link at the root.

@igagis-bot igagis-bot closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants