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
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=da82be3edfb7aac7469a9f47950f02a8d39c481e commit da82be3edfb7aac7469a9f47950f02a8d39c481e Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-10-18 17:08:41 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2024-10-18 22:12:09 +0000 graphics/vulkan-tools: update to 1.3.299 vkcube-wayland became vkcube --wsi wayland. Ditto for other WSI per https://github.com/KhronosGroup/Vulkan-Tools/commit/f12bc32cddc3 Changes: https://github.com/KhronosGroup/Vulkan-Tools/compare/v1.3.298...v1.3.299 Reported by: Repology, portscout PR: 246199 This reverts commit acc8ee9744f69c31adb6cd244d2635c3032d1128. graphics/vulkan-tools/Makefile | 27 +++------------------------ graphics/vulkan-tools/distinfo | 10 +++++----- graphics/vulkan-tools/pkg-plist | 10 ++-------- 3 files changed, 10 insertions(+), 37 deletions(-)