Repository navigation
ci: install libvulkan-dev on Linux - #9
Closed
igagis-bot wants to merge 1 commit into
Closed
igagis-bot wants to merge 1 commit into
igagis-bot wants to merge 1 commit into
Conversation
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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Linux CI jobs fail when linking the ruisapp GTK4 backends (xorg/wayland)
and ruis-render-vulkan.
pkg-config --libs gtk4emits-lvulkan, so thelink line needs a
libvulkan.so;ruis-render-vulkanalso links theVulkan::Vulkantarget. But the Linux job installedlibgtk-4-devwithoutlibvulkan-dev, and the vcpkg manifest does not build vulkan — so there wasno
libvulkan.soavailable and the link failed with undefined references tovkCreate*SurfaceKHR.Fix
Add
libvulkan-devto theinstall build depsstep of the Linux job. Thisprovides the Vulkan loader for both the GTK4
-lvulkanlink andfind_package(Vulkan)(module mode) forruis-render-vulkan.Note
This supersedes cppfw/ruisapp#30, which attempted to fix the link by adding
Vulkan::Vulkanto ruisapp's CMake. That approach relies onfind_package(Vulkan)succeeding, which it cannot in CI (vulkan is neither inthe vcpkg manifest nor installed on the runner), so it would break the
configure step rather than fix the link.