How to compile Vulkan examples using the Lunar G Development kit

I want to compile Sascha Willems’ awesome demos here .

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:

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:

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 in the Vulkan/libs/vulkan directory. You have to erase the* in there, and just do

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

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