Page 1 of 1

ld cannot find vulkan

PostPosted: Jan 29th, '19, 13:58
by hansmicheelsen
I have created a sample code to see if vulkan works on my system. It compiles all-right, but when the link process failed:
Code: Select all
g++ -L/usr/lib64 -o "Vulkantest" ./src/Vulkantest.o -lglfw -lvulkan

gave: /usr/bin/ld: cannot find -lvulkan

But with the whole path to the so-file it worked fine:
Code: Select all
g++ -L/usr/lib64 -o "Vulkantest" ./src/Vulkantest.o -lglfw /usr/lib64/libvulkan.so.1

And my small app runs as expected

Can this be an error in the PATH, in vulkan.s0.1 or is it an error 40?

The link code above is taken from the build process of Eclipse