ld cannot find vulkan

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

ld cannot find vulkan

Postby hansmicheelsen » Jan 29th, '19, 13:58

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
Posts: 42
Joined: Apr 12th, '13, 18:19

Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest