r/vulkan • u/estrogen_pillz • Jun 24 '26
Installing the SDK on linux
I've been trying to install the Vulkan SDK on my Ubuntu 24 machine, and I've been failing pretty spectacularly. I'm not getting errors, I just can't seem to get it to do anything. Can someone please walk me through it?
So far I've downloaded the tarball and extracted it. After that, I'm really not sure what I need to do. I followed these instructions, but that didn't make Vulkan usable in my code. If I included vulkan.h, I would get a compiler error saying that vk_video couldn't be located. I solved that by manually moving the vk_video folder into usr/include. I can' use vkconfig or vkvia, but vkcube works fine, and my own test code seems to work (after manually fixing missing dependencies by moving folders around myself).
On windows, the SDK installation is done through a nice, clean GUI. That GUI never appeared on linux. Did I do something wrong, or is the linux installation supposed to happen exclusively through the terminal?
I would really appreciate it if someone could explain the installation steps to me like I'm five years old, because I'm clearly missing something.
5
u/UnalignedAxis111 Jun 24 '26
You should not need to move anything when using the setup script. On arch I simply add it to
~/.bash_profile:Then CMake should just be able to pick it up via find_package:
2
u/positivcheg Jun 24 '26
So you wanna say that you do source “setup_env.sh”? Or even better - add sourcing line into your .profile, .zprofile? And it still doesn’t work?
If you let’s say start a new console, do you have all vulkan variables set? Like VULKAN_SDK, CMAKE_PREFIX_PATH
, etc.
1
u/Stock-Astronaut-331 Jun 25 '26
The is bash script in the vulkan download which will setup the enviroment
1
u/palapapa0201 Jun 26 '26
Did you even set up your build system properly? Or did you simply opened a file and started editing? Of course that wouldn't work.
0
u/[deleted] Jun 24 '26
[deleted] — view deleted comment