-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installed layer JSON has the wrong path #48
Comments
Sure? Try running cmake again to reconfigure, it works for me. I fixed it after the PR was merged. |
After installing, I get
the JSON file in the build directory however has:
|
Yes, I have the latest commit from master, and I just installed it. I got the exact same thing as you, and it doesn't work. From reading https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/loader/LoaderAndLayerInterface.md#layer-manifest-file-format more closely, it seems that when "library_path" doesn't start with . or / it tries to find it on the library search path (i.e. |
Hm, the validation layers do not do this on Arch at least, but I guess I can force absolute paths. |
At least renderdoc and steam also use an absolute path. The validation layers are installed by the OS and are part of the base Vulkan system, so it's probably ok to assume that the library file is in the system path, but that's not a good assumption to make by any third-party thing. What if someone has a non-standard install prefix? |
Pushed a PR which uses absolute paths, please try it. |
Works for me, thanks! |
Doing the standard
mkdir build; cd build; cmake ..; make; sudo make install
will install/usr/local/share/vulkan/explicit_layer.d/VkLayer_fossilize.json
and/usr/local/lib/libVkLayer_fossilize.so
, but the json file has"library_path": "libVkLayer_fossilize.so"
, i.e. it has an incorrect relative path tolibVkLayer_fossilize.so
, which makes the installed json file useless as-is. This was apparently missed with #47.The text was updated successfully, but these errors were encountered: