sultim-t / RayTracedGL1

MIT License
128 stars 29 forks source link

Compiling RayTracedGL1 with wayland support issues #35

Open SpidFightFR opened 11 months ago

SpidFightFR commented 11 months ago

When trying to compile RTGL1 with XCB compat, it works, but when enabling wayland instead, i encounter this weird error.

Building Logs ``` [ 2%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/RTGL1A.cpp.o [ 2%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/Buffer.cpp.o [ 3%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/RTGL1.cpp.o [ 5%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/VulkanDevice.cpp.o [ 6%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/Scene.cpp.o [ 7%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/PhysicalDevice.cpp.o /home/spid/prboom-plus-rt/dependencies/RayTracedGL1/Source/VulkanDevice.cpp: In static member function 'static VkSurfaceKHR_T* RTGL1::VulkanDevice::GetSurfaceFromUser(VkInstance, const RgInstanceCreateInfo&)': /home/spid/prboom-plus-rt/dependencies/RayTracedGL1/Source/VulkanDevice.cpp:1767:40: error: cannot convert 'VkSurfaceKHR_T**' to 'VkResult' in assignment 1767 | r = (instance, &wlInfo, nullptr, &surface); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ | | | VkSurfaceKHR_T** [ 8%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/Queues.cpp.o [ 10%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/Swapchain.cpp.o [ 11%] Building CXX object CMakeFiles/RayTracedGL1.dir/Source/GlobalUniform.cpp.o make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:104: CMakeFiles/RayTracedGL1.dir/Source/VulkanDevice.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/RayTracedGL1.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 ```

Am i missing something here ? :sweat_smile:

super23 commented 4 days ago

same