-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan >=1.3.268 - Vulkan headers files was changed, primus_vk won't compile on Gentoo (fix) #93
Comments
It looks like the code was moved into https://github.com/KhronosGroup/Vulkan-Utility-Libraries, which is now I've just pushed f877bf1. Does that compile and work? |
Hello Felix, |
Compilation logs: dbox2 jay # emerge -av primus_vk These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] x11-libs/primus_vk-1.6.3-r4::x-portage USE="debug multilib" ABI_X86="32 (64) (-x32)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No]
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N gentoo_check_ldflags -R .comment -R .GCC.command.line -R .note.gnu.gold-version
|
Hmm, for me Rise of the Tomb raider works without issues (with f877bf1, but with the older vulkan), but I remember it being picky in the past with the detection of available audio backends and crashing if one was "strange". Previously, on my system, Rise of the Tomb raider would try to check for pulse and alsa, and crash while initializing alsa. The workaround back then was, to create a dumb wrapper script that always claimed pulse was running:
this might be even more useful nowadays, when the pulse socket is provided by pipewire and therefore Maybe that trick helps you as well. For me this trick does not seem necessary anymore as my current alsa configuration does seemingly not cause the game to crash. |
Well, thank you, for your early bleeding-edge compatibility testing. I've added the link to the Readme and tagged the changed version as v1.6.4. I think that resolves this issue. |
Updated Gentoo overlay repository to primus_vk-1.6.4-r1.ebuild ... |
primus_vk-1.6.4-r1.ebuild log
|
Hello World !
Since Vulkan >=1.3.268, headers files was changed and primus_vk won't compile.
Compilation logs :
`These are the packages that would be merged, in order:
Calculating dependencies ... done!
Dependency resolution took 3.48 s.
[ebuild R ~] x11-libs/primus_vk-1.6.3-r3::x-portage USE="debug multilib" ABI_X86="32 (64) (-x32)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
[ ok ]
[ ok ]
patching file README.md
Hunk Investigate removal of on-device image copies #1 succeeded at 10 with fuzz 1.
[ ok ]
[ ok ]
patching file Makefile
Hunk Investigate removal of on-device image copies #1 succeeded at 13 with fuzz 2.
[ ok ]
[ ok ]
[ ok ]
make -j5 LIBDIR=lib all
x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=skylake -O2 -pipe --std=c++17 -g3 -I/usr/include/vulkan -I/usr/include/vulkan/generated -shared -fPIC primus_vk.cpp -o libprimus_vk.so -Wl,-soname,libprimus_vk.so.1 -ldl -lpthread -Wl,-O1 -Wl,--as-needed
x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=skylake -O2 -pipe --std=c++17 -g3 -I/usr/include/vulkan -I/usr/include/vulkan/generated -shared -fPIC nv_vulkan_wrapper.cpp -o libnv_vulkan_wrapper.so -Wl,-soname,libnv_vulkan_wrapper.so.1 -lX11 -lGLX -ldl -Wl,-O1 -Wl,--as-needed
x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=skylake -O2 -pipe --std=c++17 -g3 -I/usr/include/vulkan -I/usr/include/vulkan/generated -c -o primus_vk_diag.o primus_vk_diag.cpp
primus_vk.cpp:7:10: fatal error: vk_layer_dispatch_table.h: No such file or directory
7 | #include "vk_layer_dispatch_table.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:19: libprimus_vk.so] Error 1
make: *** Waiting for unfinished jobs....
emerge --info '=x11-libs/primus_vk-1.6.3-r3::x-portage'
,emerge -pqv '=x11-libs/primus_vk-1.6.3-r3::x-portage'
.emerge --info '=x11-libs/primus_vk-1.6.3-r3::x-portage'
,emerge -pqv '=x11-libs/primus_vk-1.6.3-r3::x-portage'
.`
The text was updated successfully, but these errors were encountered: