mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #3803] [APP BUG]: vk::PFN_DebugUtilsMessengerCallbackEXT not found in compilation on fedora 42 #1135
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @delentef on GitHub (Nov 15, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3803
Checklist
Describe the Bug
Hello, when trying to compile a newer version of shadps4 after having cloned it, I got this error:
` [70%] Building CXX object CMakeFiles/shadps4.dir/src/video_core/renderer_vulkan/vk_platform.cpp.o
/home/fab/test/shadPS4/src/video_core/renderer_vulkan/vk_platform.cpp:402:28: error: cannot initialize a
member subobject of type 'vk::PFN_DebugUtilsMessengerCallbackEXT' (aka 'unsigned int
(*)(vk::DebugUtilsMessageSeverityFlagBitsEXT, Flags, 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')
402 | .pfnUserCallback = DebugUtilsCallback,
| ^~~~~~~~~~~~~~~~~~
1 error generated.
'
I found a previous post stating that it was a problem with the vulkan headers, so I checked and I have vulkan-headers-1.4.313.0-1.fc42.noarch installed; must I install another version, and if so which one? The package is up-to-date in fedora though.
Thanks !
Reproduction Steps
ends with mentioned error
Expected Behavior
shadps4 compiles correctly
Specify OS Version
Fedora 42
CPU
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
GPU
nvidia RTX2060M
Amount of RAM in GB
32
@kalaposfos13 commented on GitHub (Nov 15, 2025):
Can you try forcing building with the provided submodule instead of the system package? You can comment out the relevant find_package line in CMakeLists.txt.
@Niram7777 commented on GitHub (Nov 15, 2025):
cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++?
git submodule update --init --recursive --depth=1or as I just discovered to run both commands at once
git pull --recurse-submodules-DENABLE_QT_GUI=ONhttps://github.com/shadps4-emu/shadPS4/blob/main/CMakePresets.json
I will update our doc when I have some time
@delentef commented on GitHub (Nov 15, 2025):
cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++out.log
git pull --recursegave me`Username for 'https://github.com': fatal: cannot exec '/usr/bin/ksshaskpass': No such file or directory
fatal: cannot exec '/usr/bin/ksshaskpass': No such file or directory
Password for 'https://github.com': `
so i guess it wants KDE installed (I don't use KDE and I'm not very familiar with git / github :^)
Anyay it seems I have the submodules pulled since the
externalsfolder is 398M in sizeI removed the flag since it's useless
I'm not very familiar with cmake either :^)
I edited the CMakeLists.txt file and commented out the find_package for vulkan-headers, and this time compilation finished.
Thanks to you both for your inputs!
@delentef commented on GitHub (Nov 15, 2025):
In CMakeLists.txt, removal of find_package for vulkan-headers solved the problem