-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can't cmake: VkLayer_Utils_LIBRARY set the NOT FOUND #8
Comments
libVkLayer_utils.a is a part of the vulkan-layers package (maybe vulkan-layers-dev, I know nothing about Mint, in Gentoo it's just media-libs/vulkan-layers). |
Okay I managed to build a version of the validation layers from the github: https://github.com/KhronosGroup/Vulkan-ValidationLayers/ and now cmake seems to work However, I am now getting the "fatal error: vk_loader_platform.h: No such file or directory". I tried giving the manual path in the cmake, but that gives me the same error. I also tried to link the .cpp and .h files into layer_factory where they were being used, which fixes the include error, but this caused countless errors that showed functions that seemed to be named wrong (ex: vkFunctionCall(), did you mean safe_vkFunctionCall()?). I noticed someone else here had a similar error, to which you linked them here: https://github.com/LunarG/VulkanTools/blob/master/BUILD.md#building-dependent-repositories-with-known-good-revisions but after following this guide, I get the same function name errors. Also thanks for your help so far :) this tool seems like exactly what I need, I hope I can get it working |
The link was because the code from this repo is actually a patch on top LunarG/VulkanTools, so if you able to build LunarG/VulkanTools alone, but not VkGHL -- then maybe my bug. Otherwise it's not my bug. Also I didn't tested builds for recent sdk versions, last known successful build was for sdk-1.1.126 or so. Maybe try different sdk version, if you use git or latest sdk builds. |
You mention in the readme : "NOTE: full path to Vulkan header files (may fix "vk_loader_platform.h" compile-time errors)". Can you elaborate a bit more on what you know about this error? I am still receiving it. I do not think linking the header files into the folder of the cpp file is the way to do it, so how exactly are you telling your code where to find these files? In my VulkanTools directory, I use the script to get access to the ValidationLayers repo, and now running the cmake script you provided works whether i have -DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=usr/ or with the full raw path to the validation folder. How ever, neither one allows the make script to properly run, I always have trouble on the |
Or try |
I HIGHLY recommend you put information like this in the readme, or perhaps a separate troubleshooting page. I'm sorry, but this project is confusingly put together to begin with (not your fault), and I've gleaned all sorts of information from the issues section that seemed necessary to know and could've easily been in the readme. It's so important for open source projects like this to be as informative as possible. If I were you, I would also link the releases page at the top of the readme. Might be my fault, but I didn't realize there was a release that I didn't have to compile myself, and it seems like I'm not only one. I only say this because it seems like you do care about helping people with it and I think this would remove a lot of headaches for you and the people looking for a working frame limiter for Proton, and also I would love to see advancements made on projects like these. That said though, once I downloaded the releases version, it was super easy to use and works really well! Seriously, I hope I didn't sound bitter about the run around, it was totally worth it. It took me so long to even find out about an alternative to libstrangle, and there's so many games in my steam library that will run so much smoother now that I can finally set an fps cap. Kudos to you on your work with Vulkan and building such a useful and effective tool |
Hi, I am trying to build VkGHL but the cmake does not complete. It seems like it finds the loader install just fine, so I'm not sure why this variable is not set. Here is my console output:
carter@Carter-Linux:~/VulkanTools/build_layer$ cmake -DCMAKE_CXX_FLAGS="-I/usr/include/vulkan" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/VkGHL -DBUILD_TESTS=OFF -DBUILD_LAYERSVT=OFF -DBUILD_VKTRACE=OFF -DBUILD_VIA=OFF -DBUILD_LAYERMGR=OFF -DBUILD_VKTRACE_REPLAY=OFF -DVULKAN_HEADERS_INSTALL_DIR=usr/ -DVULKAN_LOADER_INSTALL_DIR=usr/ -DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=usr/ ..
-- Using find_package to locate Vulkan
-- Vulkan FOUND = TRUE
-- Vulkan Include = /usr/include
-- Vulkan Lib = /usr/lib/x86_64-linux-gnu/libvulkan.so
-- Using Vulkan-Headers install located at /home/carter/VulkanTools/build_layer/usr
-- Using Vulkan-Loader install located at /home/carter/VulkanTools/build_layer/usr
-- Using Vulkan-ValidationLayers install located at /home/carter/VulkanTools/build_layer/usr
-- Detected Vulkan Version 1.1.126
-- VULKAN_LOADER_INSTALL_DIR specified, using find_package to locate Vulkan
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
VkLayer_utils_LIBRARY
linked by target "VkLayer_VkGHL" in directory /home/carter/VulkanTools/layer_factory
-- Configuring incomplete, errors occurred!
See also "/home/carter/VulkanTools/build_layer/CMakeFiles/CMakeOutput.log".
I'm running a Linux Mint system (19.3)
The text was updated successfully, but these errors were encountered: