How to compile Vulkan examples using the Lunar G Development kit

I want to compile Sascha Willems’ awesome demos here https://github.com/SaschaWillems/Vulkan .

I can successfully do this on an AMD64 architecture, but this has the LunarG SDK installed, and all the environment variables set correctly as per this:

https://vulkan.lunarg.com/doc/view/1.1.101.0/linux/getting_started.html#user-content-set-up-the-runtime-environment

How can I replicate this on my Jetson TX2 (running L4T R28 Revision 2.0)?

I know Nvidia provides a version of the LunarG API here:

https://developer.nvidia.com/embedded/vulkan

But this does not seem to map to the environment variables under the AMD64 version referred to above. Is the LunarG SDK necessary to build these files? And if so, to what should those three environment variables point on my Jetson assuming I have unpacked the Nvidia version and it’s directory structure looks like this:

nvidia@tegra-ubuntu:~/Downloads$ tree -d
.
└── Vulkanloader_demos_1.1.100
    ├── demo
    ├── include
    │   └── vulkan
    └── loader

Basically, what are the steps I need to be able to compile Vulkan code on my Jetson TX2, because the above referenced Nvidia page is very incomplete.

By the wake vkcube is working fine so I know Vulkan is installed and working.

1 Like

In the above, actually I think I fixed it.

Sascha Willems code had a wrong libvulkan.so in the Vulkan/libs/vulkan directory. You have to erase the libvulkan.so* in there, and just do

ln -s /usr/lib/aarch64-linux-gnu/libvulkan.so ./libvulkan.so

within that directory and then run cmake and make. All works. No need for LunarG SDK.