Error during linking (Linux compile)
Closed this issue · 1 comments
JPLeBreton commented
Code builds, but then I see this error:
[100%] Linking CXX executable UTEngine
/usr/bin/ld: CMakeFiles/UTEngine.dir/UTEngine/RenderDevice/Vulkan/VulkanSurface.cpp.o: warning: relocation against `vkCreateXlibSurfaceKHR' in read-only section `.text'
/usr/bin/ld: CMakeFiles/UTEngine.dir/UTEngine/RenderDevice/Vulkan/VulkanSurface.cpp.o: in function `VulkanSurface::VulkanSurface(std::shared_ptr<VulkanInstance>, _XDisplay*, unsigned long)':
VulkanSurface.cpp:(.text+0x94): undefined reference to `vkCreateXlibSurfaceKHR'
/usr/bin/ld: CMakeFiles/UTEngine.dir/UTEngine/Window/X11/X11Window.cpp.o: in function `X11Window::OpenWindow(int, int, bool)':
X11Window.cpp:(.text+0x627): undefined reference to `vkGetPhysicalDeviceXlibPresentationSupportKHR'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/UTEngine.dir/build.make:4449: UTEngine] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/UTEngine.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
System: Manjaro Linux, latest stable
Any idea what might be causing this?
dpjudas commented
It should compile now. Might not run though.