[PR #2190] [CLOSED] Fix build error caused by having vulkan-headers > 1.4.303 installed #2547

Closed
opened 2026-02-27 22:00:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2190
Author: @PowellNGL
Created: 1/19/2025
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 500b2f5 Require exactly version 1.4.303 of vulkan-headers, as 304 is incompatible

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 CMakeLists.txt (+1 -1)

📄 Description

The build fails on my machine because I have vulkan-headers 1.4.304 installed and vk_platform.cpp requires 1.4.303. I've added EXACT to the find_package call for vulkan-headers to make cmake fall back to the expected version in externals/vulkan-headers instead

The error I get when it tries to build with 1.4.304:

[build] /home/nick/shadPS4/src/video_core/renderer_vulkan/vk_platform.cpp:391:28: error: cannot initialize a member subobject of type 'vk::PFN_DebugUtilsMessengerCallbackEXT' (aka 'unsigned int (*)(vk::DebugUtilsMessageSeverityFlagBitsEXT, Flags<DebugUtilsMessageTypeFlagBitsEXT>, const vk::DebugUtilsMessengerCallbackDataEXT *, void *)') with an lvalue of type 'VkBool32 (VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *, void *)' (aka 'unsigned int (VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const VkDebugUtilsMessengerCallbackDataEXT *, void *)'): type mismatch at 1st parameter ('vk::DebugUtilsMessageSeverityFlagBitsEXT' vs 'VkDebugUtilsMessageSeverityFlagBitsEXT')
[build]   391 |         .pfnUserCallback = DebugUtilsCallback,
[build]       |                            ^~~~~~~~~~~~~~~~~~
[build] 1 error generated.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2190 **Author:** [@PowellNGL](https://github.com/PowellNGL) **Created:** 1/19/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`500b2f5`](https://github.com/shadps4-emu/shadPS4/commit/500b2f53e8bc1f30510d1ffe4ba4305a971dc8b2) Require exactly version 1.4.303 of vulkan-headers, as 304 is incompatible ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -1) </details> ### 📄 Description The build fails on my machine because I have vulkan-headers 1.4.304 installed and vk_platform.cpp requires 1.4.303. I've added `EXACT` to the find_package call for vulkan-headers to make cmake fall back to the expected version in externals/vulkan-headers instead The error I get when it tries to build with 1.4.304: ``` [build] /home/nick/shadPS4/src/video_core/renderer_vulkan/vk_platform.cpp:391:28: error: cannot initialize a member subobject of type 'vk::PFN_DebugUtilsMessengerCallbackEXT' (aka 'unsigned int (*)(vk::DebugUtilsMessageSeverityFlagBitsEXT, Flags<DebugUtilsMessageTypeFlagBitsEXT>, const vk::DebugUtilsMessengerCallbackDataEXT *, void *)') with an lvalue of type 'VkBool32 (VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *, void *)' (aka 'unsigned int (VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const VkDebugUtilsMessengerCallbackDataEXT *, void *)'): type mismatch at 1st parameter ('vk::DebugUtilsMessageSeverityFlagBitsEXT' vs 'VkDebugUtilsMessageSeverityFlagBitsEXT') [build] 391 | .pfnUserCallback = DebugUtilsCallback, [build] | ^~~~~~~~~~~~~~~~~~ [build] 1 error generated. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2547
No description provided.