korejan / ALVR

Stream VR games from your PC to your headset via Wi-Fi
https://alvr-org.github.io/
MIT License
186 stars 27 forks source link

Build keeps failing on linux because "'VULKAN_LAYER_EXPORT' is not a type" #94

Open RustyStriker opened 11 months ago

RustyStriker commented 11 months ago

It seems something is a miss, Im running Artix linux(so basically Arch), all packages up to date including FFmpeg, mesa, radeon drivers and such... docs claim i need to install ffmpeg-vulkan but that package is long gone.

added in front is the error i get(well, part of it)

  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/home/rustix/Codes/ALXR/alvr/vulkan-layer" "-I" "/home/rustix/Codes/ALXR/alvr/vulkan-layer/../server/cpp" "-I" "/usr/include" "-I" "/usr/include" "-Wall" "-Wextra" "-std=c++17" "-Wno-unused-parameter" "-DVK_USE_PLATFORM_XLIB_XRANDR_EXT" "-o" "/home/rustix/Codes/ALXR/target/release/build/alvr_vulkan-layer-caf16e9c5a46c8cf/out/./wsi/wsi_factory.o" "-c" "./wsi/wsi_factory.cpp"
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  cargo:warning=In file included from ./layer/layer.cpp:41:
  cargo:warning=./layer/layer.h:7:12: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=    7 | extern "C" VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetDeviceProcAddr(VkDevice device, const char *funcName);
  cargo:warning=      |            ^~~~~~~~~~~~~~~
  exit status: 0
  cargo:warning=./layer/layer.h:8:12: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=    8 | extern "C" VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetInstanceProcAddr(VkInstance instance, const char *funcName);
  cargo:warning=      |            ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:302:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  302 | VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetDeviceProcAddr(VkDevice device,
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:305:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  305 | VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:309:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  309 | VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:316:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  316 | VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:321:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  321 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:327:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  327 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=In file included from ./layer/settings.cpp:9:
  cargo:warning=./layer/layer.h:7:12: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=    7 | extern "C" VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetDeviceProcAddr(VkDevice device, const char *funcName);
  cargo:warning=      |            ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:333:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  333 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.h:8:12: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=    8 | extern "C" VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetInstanceProcAddr(VkInstance instance, const char *funcName);
  cargo:warning=      |            ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:352:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  352 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL wsi_layer_vkEnumerateDeviceExtensionProperties(
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:363:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  363 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL wsi_layer_vkEnumerateInstanceExtensionProperties(
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:371:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  371 | VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:383:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  383 | VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL wsi_layer_vkGetDeviceProcAddr(VkDevice device,
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/settings.cpp: In member function ‘void Settings::Load()’:
  cargo:warning=./layer/settings.cpp:47:17: error: ‘m_renderWidth’ was not declared in this scope
  cargo:warning=   47 |                 m_renderWidth = config.get("eye_resolution_width").get<int64_t>() * 2;
  cargo:warning=      |                 ^~~~~~~~~~~~~
  cargo:warning=./layer/layer.cpp:397:1: error: ‘VK_LAYER_EXPORT’ does not name a type
  cargo:warning=  397 | VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
  cargo:warning=      | ^~~~~~~~~~~~~~~
  cargo:warning=./layer/settings.cpp:48:17: error: ‘m_renderHeight’ was not declared in this scope
  cargo:warning=   48 |                 m_renderHeight = config.get("eye_resolution_height").get<int64_t>();
  cargo:warning=      |                 ^~~~~~~~~~~~~~
  exit status: 0
  exit status: 0
  exit status: 1
  exit status: 0
  exit status: 1
  exit status: 0
  exit status: 0

  --- stderr

  error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/home/rustix/Codes/ALXR/alvr/vulkan-layer" "-I" "/home/rustix/Codes/ALXR/alvr/vulkan-layer/../server/cpp" "-I" "/usr/include" "-I" "/usr/include" "-Wall" "-Wextra" "-std=c++17" "-Wno-unused-parameter" "-DVK_USE_PLATFORM_XLIB_XRANDR_EXT" "-o" "/home/rustix/Codes/ALXR/target/release/build/alvr_vulkan-layer-caf16e9c5a46c8cf/out/./layer/layer.o" "-c" "./layer/layer.cpp" with args "c++" did not execute successfully (status code exit status: 1).
DieKatzchen commented 2 months ago

Did you ever resolve this? I too am having the same issue.