It only builds for me when setting CUDAToolkit_ROOT=/opt/cuda/ before running makepkg. I think ffmpeg-cuda needs it or something.
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/wivrn-server.git (read-only, click to copy) |
|---|---|
| Package Base: | wivrn-server |
| Description: | A wireless Monado-based OpenXR runtime for standalone headsets. |
| Upstream URL: | https://github.com/WiVRn/WiVRn |
| Licenses: | GPL-3.0-or-later |
| Provides: | openxr-runtime |
| Submitter: | cmumme |
| Maintainer: | gmeunier |
| Last Packager: | gmeunier |
| Votes: | 95 |
| Popularity: | 13.06 |
| First Submitted: | 2024-01-13 01:01 (UTC) |
| Last Updated: | 2026-06-27 08:45 (UTC) |
It only builds for me when setting CUDAToolkit_ROOT=/opt/cuda/ before running makepkg. I think ffmpeg-cuda needs it or something.
I've changed the dependencies, it should not break when updating now
@ggnoredo run the following:
sudo pacman -Rns wivrn-dashboard
cd $HOME/.cache/yay/wivrn-server/
makepkg --cleanbuild -fsi
cd $HOME/.cache/yay/wivrn-dashboard/
makepkg --cleanbuild -fsi
yay -Syu
That should rebuild the packages and fix your issue. Some of that may be unnecessary.
==> Missing dependencies:
-> wivrn-server=25.12
==> ERROR: Could not resolve all dependencies.
-> error making: wivrn-dashboard-exit status 8
loading packages...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing wivrn-server (25.12-1) breaks dependency 'wivrn-server=25.11.1' required by wivrn-dashboard
-> error installing: [/home/USERNAME/.cache/yay/wivrn-server/wivrn-server-25.12-1-x86_64.pkg.tar.xz] - exit status 1
error installing: [/home/USERNAME/.cache/yay/wivrn-server/wivrn-server-25.12-1-x86_64.pkg.tar.xz] - exit status 1
==> Missing dependencies:
-> wivrn-server=25.12
==> ERROR: Could not resolve all dependencies.
-> error making: wivrn-dashboard-exit status 8
loading packages...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing wivrn-server (25.12-1) breaks dependency 'wivrn-server=25.11.1' required by wivrn-dashboard
-> error installing: [/home/USERNAME/.cache/yay/wivrn-server/wivrn-server-25.12-1-x86_64.pkg.tar.xz] - exit status 1
error installing: [/home/USERNAME/.cache/yay/wivrn-server/wivrn-server-25.12-1-x86_64.pkg.tar.xz] - exit status 1
Hi! I ran into building this package after an update. Previously it worked.
Here's the error:
/home/sandfoxed/.cache/yay/wivrn-server/src/WiVRn-25.9/server/encoder/ffmpeg/video_encoder_va.cpp:231:48: error: ‘FF_PROFILE_H264_CONSTRAINED_BASELINE’ was not declared in this scope; did you mean ‘AV_PROFILE_H264_CONSTRAINED_BASELINE’?
231 | encoder_ctx->profile = FF_PROFILE_H264_CONSTRAINED_BASELINE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AV_PROFILE_H264_CONSTRAINED_BASELINE
/home/sandfoxed/.cache/yay/wivrn-server/src/WiVRn-25.9/server/encoder/ffmpeg/video_encoder_va.cpp:237:75: error: ‘FF_PROFILE_HEVC_MAIN_10’ was not declared in this scope; did you mean ‘AV_PROFILE_HEVC_MAIN_10’?
237 | encoder_ctx->profile = settings.bit_depth == 10 ? FF_PROFILE_HEVC_MAIN_10 : FF_PROFILE_HEVC_MAIN;
| ^~~~~~~~~~~~~~~~~~~~~~~
| AV_PROFILE_HEVC_MAIN_10
/home/sandfoxed/.cache/yay/wivrn-server/src/WiVRn-25.9/server/encoder/ffmpeg/video_encoder_va.cpp:237:101: error: ‘FF_PROFILE_HEVC_MAIN’ was not declared in this scope; did you mean ‘AV_PROFILE_HEVC_MAIN’?
237 | encoder_ctx->profile = settings.bit_depth == 10 ? FF_PROFILE_HEVC_MAIN_10 : FF_PROFILE_HEVC_MAIN;
| ^~~~~~~~~~~~~~~~~~~~
| AV_PROFILE_HEVC_MAIN
/home/sandfoxed/.cache/yay/wivrn-server/src/WiVRn-25.9/server/encoder/ffmpeg/video_encoder_va.cpp:240:48: error: ‘FF_PROFILE_AV1_MAIN’ was not declared in this scope; did you mean ‘AV_PROFILE_AV1_MAIN’?
240 | encoder_ctx->profile = FF_PROFILE_AV1_MAIN;
| ^~~~~~~~~~~~~~~~~~~
| AV_PROFILE_AV1_MAIN
make[2]: *** [server/CMakeFiles/wivrn-server.dir/build.make:569: server/CMakeFiles/wivrn-server.dir/encoder/ffmpeg/video_encoder_va.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1173: server/CMakeFiles/wivrn-server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I modified the source as recommended by the compiler errors, then it builds successfully.
Interestingly, the wivrn-full-git builds correctly, though that's incompatible with the APK i have on the headset, so I tried to fix the stable version, surprisingly it seems to work :D
Anyway, thanks for maintaining the pkgs, and have a nice day!
@LakesGeek @hariseldon78: I've added the patch in the PKGBUILD
Workaround for the segfaulting on build, thanks to the assistance on the Discord. It's because of a bug in qtdeclarative-6.9.1. There's a patch file we have to backport to this version to remove a line from SettingsPage.qml on build. I did it the traditional makepkg (no helpers) way, if you're as rusty as I was with the traditional way here are the full commands I used
git clone https://aur.archlinux.org/wivrn-dashboard.git
cd wivrn-dashboard
wget https://github.com/WiVRn/WiVRn/commit/d392d30d1c79cf6f6ca59a6484315c3a1544be77.patch
nano PKGBUILD
Find the build() block and just before it paste:
prepare() {
cd "WiVRn-$pkgver"
patch -Np1 -i ../../d392d30d1c79cf6f6ca59a6484315c3a1544be77.patch
}
Compile and install
makepkg
makepkg -install
the build it's failing for me:
[ 58%] Generating .rcc/qmlcache/wivrn-dashboard_qml/TroubleshootPage_qml.cpp, .rcc/qmlcache/wivrn-dashboard_qml/TroubleshootPage_qml.cpp.aotstats
[ 59%] Generating .rcc/qmlcache/wivrn-dashboard_qml/WizardPage_qml.cpp, .rcc/qmlcache/wivrn-dashboard_qml/WizardPage_qml.cpp.aotstats
[ 60%] Generating .rcc/qmlcache/wivrn-dashboard_qml/WizardStep_qml.cpp, .rcc/qmlcache/wivrn-dashboard_qml/WizardStep_qml.cpp.aotstats
make[2]: *** [dashboard/CMakeFiles/wivrn-dashboard.dir/build.make:160: dashboard/.rcc/qmlcache/wivrn-dashboard_qml/SettingsPage_qml.cpp] Segmentation fault (core dumped)
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:628: dashboard/CMakeFiles/wivrn-dashboard.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 62%] Linking CXX static library libwivrn-common.a
[ 62%] Built target wivrn-common
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: wivrn-dashboard-exit status 4
-> Failed to install the following packages. Manual intervention is required:
wivrn-dashboard - exit status 4