How am I meant to build for Vulkan on Raspberry!? My attempt missing libvulkan.so
I have a Raspberry Pi4b project where I need/want Wayland and Vulkan but it was pointed out that the Vulkan that was installed by default, Lavapipe, is not the correct official Vulkan driver for Raspberry Pi, the Igalia one. I am using Raspberry Desktop Ubuntu 22.04 64 bit.
I tried to purge Vulkan first,
sudo apt purge mesa-vulkan-drivers
sudo apt purge libvulkan1
but that blew away the full desktop and things like xwayland so I reverted that back. Instead I thought I'd install Mesa+Vulkan ontop to use following an Igalia blog post just added Wayland to it.
meson –prefix /usr –libdir lib -Dplatforms=x11,wayland -Dvulkan-drivers=broadcom -Ddri-drivers= -Dgallium-drivers=v3d,kmsro,vc4 -Dbuildtype=debug build
It gave me these config settings: https://pastebin.com/Pv2tGfza
EGL/Vulkan/VL platforms: x11 wayland surfaceless drm xcb
I built+installed. Changed an ld path system config file that I usually use when I install Mesa from source.
But things wouldn't build, like the Sasha Willems examples and another super basic test project I had.
Both complained about libvulkan.so and when searching the whole system from the root no new libvulkan.so of any kind was found. It seems the Mesa/Vulkan build has not produced one.
What it did produce was a
but I have no idea what that's supposed to be. I tried making libvulkan.so and libvulkan.so.1 symlinks to that file, and then try to build projects again but that didn't work.
Does anyone know why there's no libvulkan.so generated from the build!? And how am I meant to build+install Vulkan on Ubuntu+Raspberry?
Grateful for pointers! Cheers