[GH-ISSUE #3803] [APP BUG]: vk::PFN_DebugUtilsMessengerCallbackEXT not found in compilation on fedora 42 #1135

Closed
opened 2026-02-27 21:10:08 +03:00 by kerem · 4 comments
Owner

Originally created by @delentef on GitHub (Nov 15, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3803

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

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

Originally created by @delentef on GitHub (Nov 15, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3803 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### 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<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') 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 - 'git pull https://github.com/shadps4-emu/shadPS4.git' - 'cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++' - 'cd build' - 'cmake --build . --parallel$(nproc)' 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
kerem closed this issue 2026-02-27 21:10:09 +03:00
Author
Owner

@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.

<!-- gh-comment-id:3536190445 --> @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.
Author
Owner

@Niram7777 commented on GitHub (Nov 15, 2025):

  1. can you provide the output of
    cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
    ?
  2. when you pull, you should also update the submodules:
    git submodule update --init --recursive --depth=1
    or as I just discovered to run both commands at once
    git pull --recurse-submodules
  3. This parameter is not needed anymore -DENABLE_QT_GUI=ON
  4. As a good rule of thumb when a CMake project has presets, you should use them
    https://github.com/shadps4-emu/shadPS4/blob/main/CMakePresets.json
    I will update our doc when I have some time
<!-- gh-comment-id:3536241295 --> @Niram7777 commented on GitHub (Nov 15, 2025): 1. can you provide the output of `cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++` ? 2. when you pull, you should also update the submodules: `git submodule update --init --recursive --depth=1` or as I just discovered to run both commands at once `git pull --recurse-submodules` 3. This parameter is not needed anymore `-DENABLE_QT_GUI=ON` 4. As a good rule of thumb when a CMake project has presets, you should use them https://github.com/shadps4-emu/shadPS4/blob/main/CMakePresets.json I will update our doc when I have some time
Author
Owner

@delentef commented on GitHub (Nov 15, 2025):

  1. output of cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

out.log

  1. using git pull --recurse gave 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 externals folder is 398M in size

  1. I removed the flag since it's useless

  2. 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!

<!-- gh-comment-id:3536270676 --> @delentef commented on GitHub (Nov 15, 2025): 1. output of `cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++` [out.log](https://github.com/user-attachments/files/23560107/out.log) 2. using `git pull --recurse` gave 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 `externals` folder is 398M in size 3. I removed the flag since it's useless 4. 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!
Author
Owner

@delentef commented on GitHub (Nov 15, 2025):

In CMakeLists.txt, removal of find_package for vulkan-headers solved the problem

<!-- gh-comment-id:3536276008 --> @delentef commented on GitHub (Nov 15, 2025): In CMakeLists.txt, removal of find_package for vulkan-headers solved the problem
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#1135
No description provided.