Created attachment 214132 [details] vulkan-tools log I am trying to install devel/vulkan-tools from ports but I get the error "ld: error: undefined symbol: vkCreateXcbKHR". Please see the attached log for more details. I think this is due to the fact that I want to use it on Wayland only, so I installed vulkan-loader with the following options: WAYLAND: on XCB: off XLIB: off Also, having CMAKE_OFF= BUILD_WSI_WAYLAND_SUPPORT in devel/vulkan-tools/Makefile probably is not helpful.
The cube demos (in this version at least) do not support X11 and Wayland simultaneously, e.g.: #if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) #include <X11/Xutil.h> #elif defined(VK_USE_PLATFORM_WAYLAND_KHR) #include <linux/input.h> #endif So the tools package does not support a wayland-only loader right now. I guess you could add options that change CUBE_WSI_SELECTION in cmake and/or make building the cube optional. I would approve patches for this.
A commit references this bug: Author: jbeich Date: Thu May 14 14:16:12 UTC 2020 New revision: 535235 URL: https://svnweb.freebsd.org/changeset/ports/535235 Log: devel/vulkan-tools: enable Wayland support vkcube still defaults to X11 because (unlike vulkaninfo) it cannot support more than 1 WSI at the same time. PR: 246199 Reported by: salvadore Approved by: Greg V (maintainer) Differential Revision: https://reviews.freebsd.org/D24833 Changes: head/devel/vulkan-tools/Makefile head/devel/vulkan-tools/files/patch-cube_CMakeLists.txt
A commit references this bug: Author: jbeich Date: Thu Jun 11 19:13:41 UTC 2020 New revision: 538529 URL: https://svnweb.freebsd.org/changeset/ports/538529 Log: devel/vulkan-tools: install vkcube for each backend PR: 246199 Approved by: Greg V (maintainer) Differential Revision: https://reviews.freebsd.org/D25224 Changes: head/devel/vulkan-tools/Makefile head/devel/vulkan-tools/pkg-plist