Problem with Vulkan support in snaps

I maintain the snap package for RetroArch, which supports Vulkan outside of snaps but I haven’t been able to get it working with the snap package.

I have libvulkan-dev in the build-packages and libvulkan1 in the stage-packages, but if I try to use the Vulkan driver with the snap, I get:

[ERROR] [Vulkan]: Failed to open Vulkan loader.
[ERROR] [Vulkan]: Failed to create Vulkan context.

I’ve glanced at a couple of other snaps that apparently support Vulkan, such as vkquake, but it doesn’t look like they’re doing anything special.

Am I missing something? Any suggestions/guidance is appreciated :slight_smile:

I had trouble yesterday with clutter apps using core18 but I figured out that the apps worked if I used snapcraft-preload.

Here’s an example (sorry for the unrelated changes). The important part is the snapcraft-preload part and adding snapcraft-preload to the apps command line.

I don’t know if that will help with Vulkan apps but it’s worth a try.

Ok, cool. I’ll try it out. Thanks!

EDIT: unfortunately, this doesn’t seem to have resolved it. I appreciate the suggestion, though!