Open phodina opened 2 years ago
I had the same problem. I needed the latest vulkan sdk. straightforward install, it takes a while...
wget https://sdk.lunarg.com/sdk/download/1.3.211.0/linux/vulkansdk-linux-x86_64-1.3.211.0.tar.gz wget https://sdk.lunarg.com/sdk/download/1.3.211.0/linux/config.json tar zxvf vulkansdk-linux-x86_64-1.3.211.0.tar.gz cd 1.3.211.0/ sudo aptitude install libxcb-keysyms1-dev export NUMJOBS=12 ./vulkansdk source setup-env.sh
From this console go on..as the env is temporary to it...
Thanks @Jackfritt , I'll package newer vulkan packages and try again
Ok, So I've packaged vulkan-loader and vulkan-headers in version 1.3.211.
However, there is still at least one error:
/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DKHRONOS_STATIC -DLIBKTX -DRG_LIBRARY_EXPORTS -DRG_USE_SURFACE_WAYLAND -DRayTracedGL1_EXPORTS -DVK_USE_PLATFORM_WAYLAND_KHR -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/other_include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/lib/basisu/zstd -I/tmp/guix-build-rtgl1-.drv-0/source/Include -O2 -g -DNDEBUG -fPIC -std=gnu++17 -MD -MT CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o -MF CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o.d -o CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o -c /tmp/guix-build-rtgl1-.drv-0/source/Source/MemoryAllocator.cpp
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp: In static member function ‘static VkSurfaceKHR_T* RTGL1::VulkanDevice::GetSurfaceFromUser(VkInstance, const RgInstanceCreateInfo&)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1754:40: error: cannot convert ‘VkSurfaceKHR_T**’ to ‘VkResult’ in assignment
1754 | r = (instance, &wlInfo, nullptr, &surface);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
| |
| VkSurfaceKHR_T**
@phodina Sorry cant help with that. for me it works...
Thanks for the help @Jackfritt, it's probably somehting Guix specific - slightly different versions or something like that
Hi,
I'm attempting to build this library on GNU Guix. I've added the
vulkan-loader
andvulkan-headers
as dependency.But I get these errors:
What is the difference between
PFN_vkCmdPipelineBarrier2KHR
andPFN_vkCmdPipelineBarrier
? How can I fix the build?