ALVR: error: ‘const struct alvr::VkContext::dispatch’ has no member named ‘getVkHeaderVersion’

Please follow the general troubleshooting steps first:

  • I carefully followed the instructions in the README and completed successfully the setup wizard.
  • I read the ALVR Wikis here and here

If your issue is about games not working, please open an issue for every game and list the game in the title.

Bug reports:

ALVR isn’t building, complaining about missing member named getVkHeaderVersion.

Log: https://paste.gg/p/anonymous/aefe2bce42824ce5b461f68e0e21a6fe

Environement

What hardware do you have: i7 8086k, GTK 1060, Arch Linux What version of ALVR and SteamVR have you tried. latest git Do you have the latest Windows updates?: N/A

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (3 by maintainers)

Commits related to this issue

Most upvoted comments

So, the package maintainer finally updated all the Arch Vulkan packages to 190 (except 191 for vulkan-headers). This still didn’t fix the problem like I thought it would, so I poked around in the code. I found that the struct with the missing getVkHeaderVersion method was actually defined in ALVR, so I added the method myself. Now everything compiles and runs. The patch is in #789.

Also, I think the problem ‘const struct alvr::VkContext::dispatch’ has no member named ‘getVkHeaderVersion’ is more likely problem of the Vulkan library itself.

Comparing files /usr/include/vulkan/vulkan_funcs.hpp from version 1.2.185 with the same file of 1.2.188 makes it clear there is a new assertion in this file: VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); that is absent in 185 version.

No, I used standard Arch packages. To downgrade, I used the downgrade script from the AUR.

Finally, It worked:

  1. sudo downgrade vulkan-headers
  2. choose version 1.2.131
  3. yay alvr

Thank you!