Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu Install - VULKAN Enum error #44

Open
5p6 opened this issue Dec 25, 2024 · 0 comments
Open

Ubuntu Install - VULKAN Enum error #44

5p6 opened this issue Dec 25, 2024 · 0 comments

Comments

@5p6
Copy link

5p6 commented Dec 25, 2024

Environment

  • Ubuntu 22.04
  • Vulkan 1.3.243
  • GNU 11.4
  • cmake 3.22

Report

when i run

cmake -S . -B build
cmake --build ./build ---config release

it report the error

(base) ros@ros-virtual-machine:~/lib/3DGS.cpp$ cmake --build ./build/ --config release -j 12
[  4%] Built target embedfile
[ 29%] Built target shaders
Consolidate compiler generated dependencies of target 3dgs_cpp
[ 34%] Building CXX object src/CMakeFiles/3dgs_cpp.dir/vulkan/VulkanContext.cpp.o
[ 34%] Building CXX object src/CMakeFiles/3dgs_cpp.dir/vulkan/Swapchain.cpp.o
In file included from /home/ros/lib/gsviewer/src/vulkan/Swapchain.cpp:5:
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h: In function ‘const char* string_VkResult(VkResult)’:
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:110:14: error: ‘VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT’ was not declared in this scope; did you mean ‘VK_ERROR_INCOMPATIBLE_DRIVER’?
  110 |         case VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_ERROR_INCOMPATIBLE_DRIVER
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h: In function ‘const char* string_VkStructureType(VkStructureType)’:
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1280:14: error: ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT’?
 1280 |         case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT
/home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp: In constructor ‘VulkanContext::VulkanContext(const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<std::__cxx11::basic_string<char> >&, bool)’:
/home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:56:39: error: no matching function for call to ‘vk::DispatchLoaderDynamic::init()’
   56 |     VULKAN_HPP_DEFAULT_DISPATCHER.init();
      |                                       ^
In file included from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.h:11,
                 from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:1:
/usr/include/vulkan/vulkan.hpp:15893:10: note: candidate: ‘template<class DynamicLoader> void vk::DispatchLoaderDynamic::init(const vk::Instance&, const vk::Device&, const DynamicLoader&)’
15893 |     void init( VULKAN_HPP_NAMESPACE::Instance const & instance, VULKAN_HPP_NAMESPACE::Device const & device, DynamicLoader const & dl ) VULKAN_HPP_NOEXCEPT
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:15893:10: note:   template argument deduction/substitution failed:
/home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:56:39: note:   candidate expects 3 arguments, 0 provided
   56 |     VULKAN_HPP_DEFAULT_DISPATCHER.init();
      |                                       ^
In file included from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.h:11,
                 from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:1:
/usr/include/vulkan/vulkan.hpp:15905:10: note: candidate: ‘template<class DynamicLoader> void vk::DispatchLoaderDynamic::init(const vk::Instance&, const vk::Device&)’
15905 |     void init( VULKAN_HPP_NAMESPACE::Instance const & instance, VULKAN_HPP_NAMESPACE::Device const & device ) VULKAN_HPP_NOEXCEPT
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:15905:10: note:   template argument deduction/substitution failed:
/home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:56:39: note:   candidate expects 2 arguments, 0 provided
   56 |     VULKAN_HPP_DEFAULT_DISPATCHER.init();
      |                                       ^
In file included from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.h:11,
                 from /home/ros/lib/gsviewer/src/vulkan/VulkanContext.cpp:1:
/usr/include/vulkan/vulkan.hpp:13674:10: note: candidate: ‘void vk::DispatchLoaderDynamic::init(PFN_vkGetInstanceProcAddr)’
13674 |     void init( PFN_vkGetInstanceProcAddr getInstanceProcAddr ) VULKAN_HPP_NOEXCEPT
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:13674:10: note:   candidate expects 1 argument, 0 provided
/usr/include/vulkan/vulkan.hpp:13700:10: note: candidate: ‘void vk::DispatchLoaderDynamic::init(VkInstance, PFN_vkGetInstanceProcAddr, VkDevice, PFN_vkGetDeviceProcAddr)’
13700 |     void init( VkInstance                instance,
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:13700:10: note:   candidate expects 4 arguments, 0 provided
/usr/include/vulkan/vulkan.hpp:13714:10: note: candidate: ‘void vk::DispatchLoaderDynamic::init(vk::Instance)’
13714 |     void init( VULKAN_HPP_NAMESPACE::Instance instanceCpp ) VULKAN_HPP_NOEXCEPT
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:13714:10: note:   candidate expects 1 argument, 0 provided
/usr/include/vulkan/vulkan.hpp:14945:10: note: candidate: ‘void vk::DispatchLoaderDynamic::init(vk::Device)’
14945 |     void init( VULKAN_HPP_NAMESPACE::Device deviceCpp ) VULKAN_HPP_NOEXCEPT
      |          ^~~~
/usr/include/vulkan/vulkan.hpp:14945:10: note:   candidate expects 1 argument, 0 provided
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1282:14: error: ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_EXT’?
 1282 |         case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIES_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1284:14: error: ‘VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_BUFFER_IMAGE_COPY_2’?
 1284 |         case VK_STRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_BUFFER_IMAGE_COPY_2
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1286:14: error: ‘VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER’?
 1286 |         case VK_STRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1288:14: error: ‘VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_COPY_MICROMAP_TO_MEMORY_INFO_EXT’?
 1288 |         case VK_STRUCTURE_TYPE_COPY_IMAGE_TO_MEMORY_INFO_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_COPY_MICROMAP_TO_MEMORY_INFO_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1290:14: error: ‘VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_COPY_MEMORY_TO_MICROMAP_INFO_EXT’?
 1290 |         case VK_STRUCTURE_TYPE_COPY_MEMORY_TO_IMAGE_INFO_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_COPY_MEMORY_TO_MICROMAP_INFO_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1292:14: error: ‘VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT’?
 1292 |         case VK_STRUCTURE_TYPE_HOST_IMAGE_LAYOUT_TRANSITION_INFO_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1294:14: error: ‘VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2’?
 1294 |         case VK_STRUCTURE_TYPE_COPY_IMAGE_TO_IMAGE_INFO_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1296:14: error: ‘VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXT’?
 1296 |         case VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1298:14: error: ‘VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_SUBPASS_RESOLVE_PERFORMANCE_QUERY_EXT’?
 1298 |         case VK_STRUCTURE_TYPE_HOST_IMAGE_COPY_DEVICE_PERFORMANCE_QUERY_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_SUBPASS_RESOLVE_PERFORMANCE_QUERY_EXT
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1300:14: error: ‘VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR’?
 1300 |         case VK_STRUCTURE_TYPE_MEMORY_MAP_INFO_KHR:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1302:14: error: ‘VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR’?
 1302 |         case VK_STRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR
/home/ros/lib/gsviewer/src/third_party/vk_enum_string_helper.h:1350:14: error: ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_BIAS_CONTROL_FEATURES_EXT’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT’?
 1350 |         case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_BIAS_CONTROL_FEATURES_EXT:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT
^Cgmake[2]: *** [src/CMakeFiles/3dgs_cpp.dir/build.make:244: src/CMakeFiles/3dgs_cpp.dir/vulkan/VulkanContext.cpp.o] 中断
gmake[2]: *** [src/CMakeFiles/3dgs_cpp.dir/build.make:202: src/CMakeFiles/3dgs_cpp.dir/vulkan/Swapchain.cpp.o] 中断
gmake[1]: *** [CMakeFiles/Makefile2:169: src/CMakeFiles/3dgs_cpp.dir/all] 中断
gmake: *** [Makefile:91: all] 中断

how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant