Void Linux: OpenXR is now available

This commit is contained in:
Adam Gausmann 2025-05-19 17:26:22 +00:00 committed by hypevhs
parent ebffb51637
commit 5082ca01b5

View file

@ -4,35 +4,28 @@ title: Void Linux
# Void Linux
## Envision
## Envision + Monado
The [official Appimage](https://gitlab.com/gabmus/envision#download-envision) is the easiest way to get Envision working on Void Linux.
Just make sure you have all necessary dependencies installed for building your desired profile.
Envision will warn you if some are missing.
Except for OpenXR these are standard packages which can be found in the Void repositories, you may need `-devel` for some packages like `libbsd-devel` for example.
Getting OpenXR can be a bit tricky, but you can follow the instructions for installing OpenXR on this page to get you started.
The [official Appimage](https://gitlab.com/gabmus/envision#download-envision)
is the easiest way to get Envision working on Void Linux.
## Installing OpenXR
Just make sure you have all necessary dependencies installed for building your
desired profile. For Monado, all of the dependencies can be found in the Void
repositories - see the following section [Building Monado](#building-monado)
for the full list.
As of writing (April 2025) OpenXR is not available in the Void Linux repositories, you can however build and install it yourself using `xbps-src`.
There is a pending PR over on the void-packages Github page: https://github.com/void-linux/void-packages/pull/54896.
In the meantime you can use the OpenXR template from the PR to build and install OpenXR locally.
Just clone the void-packages repo with the OpenXR template and install using the following steps from within the root dir:
```bash
./xbps-src binary-bootstrap
./xbps-src pkg openxr
xi openxr openxr-devel
```
Envision may warn you about other missing dependencies. They can usually be
found in the Void repositories; you may also need `-devel` for some packages,
for example: `libbsd-devel`
## Building Monado
Monado may appear to build fine but if you are missing some dependencies only the null compositor will work.
To make a successful build make sure you have the following dependencies installed:
Monado may appear to build fine but if you are missing some dependencies only
the null compositor will work. To make a successful build make sure you have
the following dependencies installed:
```bash
sudo xbps-install pkg-config python3 wayland-devel glslang vulkan-loader-devel libglvnd-devel eigen libusb-devel eudev-libudev-devel v4l-utils-devel libxcb-devel wayland-devel libX11-devel hidapi-devel libopencv-devel libjpeg-turbo-devel libbluetooth-devel SDL2-devel cJSON-devel gstreamer1-devel gst-plugins-base1-devel
sudo xbps-install pkg-config python3 wayland-devel glslang vulkan-loader-devel libglvnd-devel eigen libusb-devel eudev-libudev-devel v4l-utils-devel libxcb-devel wayland-devel libX11-devel hidapi-devel libopencv-devel libjpeg-turbo-devel libbluetooth-devel SDL2-devel cJSON-devel gstreamer1-devel gst-plugins-base1-devel libbsd-devel openxr-devel
```
There is another [PR](https://github.com/void-linux/void-packages/pull/53279) with templates for xrgears, Monado and libsurvive that you can use, however it is easier and recommended to just use Envision to build everything for you.