-
Hi, i am experiencing a problem when i try to run samples. The error i get is in the assets. It says that it fails to open file assets/fonts/Roboto-Regular.ttf. I tried include_directories("./assets") at the CMakeLists.txt of the vulkan-sample project, but still the error occurs. Here is a printscreen of the error i get. Do you have any idea of how i can overcome this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Did you clone the repo with submodules as noted under https://github.com/KhronosGroup/Vulkan-Samples#setup? |
Beta Was this translation helpful? Give feedback.
-
Then the next thing that it could be. Do you notice how the console error line has a relative path? (i.e. it starts with assets/fonts). Are you running the program from the top level directory? If it's getting built to a subdirectory than that path isn't correct. Basically you need the working directory to be Vulkan-Samples, so if you run it from there then those paths should resolve. |
Beta Was this translation helpful? Give feedback.
Then the next thing that it could be. Do you notice how the console error line has a relative path? (i.e. it starts with assets/fonts). Are you running the program from the top level directory? If it's getting built to a subdirectory than that path isn't correct. Basically you need the working directory to be Vulkan-Samples, so if you run it from there then those paths should resolve.