Error while compiling stardust-xr-server on gentoo

error: could not find native static library StereoKitC, perhaps an -L flag is missing? error: could not compile stereokit-sys due to previous error Caused by: process didn't exit successfully: rustc --crate-name stereokit_sys --edition=2021 /home/nik/.cargo/registry/src/github.com-1ecc6299db9ec823/stereokit-sys-2.4.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --cfg 'feature="default"' --cfg 'feature="linux-egl"' --cfg 'feature="prisma"' -C metadata=875fab2a3b27ece4 -C extra-filename=-875fab2a3b27ece4 --out-dir /home/nik/repos/server/target/debug/deps -L dependency=/home/nik/repos/server/target/debug/deps --extern mint=/home/nik/repos/server/target/debug/deps/libmint-8054662e8f62d5a0.rmeta --extern prisma=/home/nik/repos/server/target/debug/deps/libprisma-be701c9ccd3f6cc0.rmeta --cap-lints allow --cfg tokio_unstable -L native=/home/nik/repos/server/target/debug/build/stereokit-sys-81e52ad57d241350/out/lib -l static=StereoKitC -l stdc++ -l openxr_loader -l X11 -l Xfixes -l GL -l EGL -l gbm -l fontconfig (exit status: 1) All the dependencies appear to be installed correctly. I even tried to compile StereoKitC but the outcome didn't change.
29 Replies
Nova
Nova2y ago
that is really weird uhhhhhhhhhhhh @Malek you're a cmake expert and knowledge guru of this also @Viola (Nicola) how did you get it working before? you said it compiled before
Viola (Nicola)
Viola (Nicola)OP2y ago
yeah this is on another computer running gentoo
Nova
Nova2y ago
oh fun well i'm gonna let malek help
Malek
Malek2y ago
Gentoo? Bruh
Viola (Nicola)
Viola (Nicola)OP2y ago
so no idea what it could be causing it?
Malek
Malek2y ago
nope none I have had infinite issues with gentoo and this error message isn't giving me any info on what's actually going wrong not ur fault just
thaytan
thaytan2y ago
Getting the same compile result on a clean / new build on Fedora 37 It's there in target/debug/build/stereokit-sys-77576b826abbc075/out/lib64/libStereoKitC.a so seems like a StereoKit-rs problem
thaytan
thaytan2y ago
Works better with stereokit-rs and stereokit-sys from git except that moshi changed stereokit-rs API on 9th March
Nova
Nova2y ago
gotcha, will update to fix it @thaytan ok try running cargo update in the server dir and then run sorry it took me so long i just woke up when i posted this message oh hey that means it should be fixed for you too! i only figured out that it was trying to link in the lib64 folder by trying it on an M1 mac
Viola (Nicola)
Viola (Nicola)OP2y ago
Can confirm that this fixed it for me!
Nova
Nova2y ago
yaaaaaaaay
Viola (Nicola)
Viola (Nicola)OP2y ago
for some reason it's default to llvmpipe for rendering, which is very strange... no other applications do that I am using nvidia-open and this is the output of glxinfo and eglinfo
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
anyway, not really a big problem, I'm pretty sure it's an issue on my end, but just check if it works as intended on your systems with the latest update
Nova
Nova2y ago
that's probably the little tweak i added to stereokit sigh wait maybe not @Viola (Nicola) are you running monado at the same time?
Viola (Nicola)
Viola (Nicola)OP2y ago
nope
Nova
Nova2y ago
huh then that is weird stardust should use the same as your display server
Viola (Nicola)
Viola (Nicola)OP2y ago
mhh I'll just unmerge mesa and try again
Nova
Nova2y ago
oh right forgot about that
Viola (Nicola)
Viola (Nicola)OP2y ago
yeah it worked... but at what cost
➜ server git:(main) cargo run -- -f
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/stardust-xr-server -f`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] Trying EGL direct rendering from /dev/dri/renderD128
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 NVIDIA 525.89.02
[SK diagnostic] [sk_gpu] Device: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
[SK diagnostic] Starting a flatscreen display
[1] 7772 segmentation fault cargo run -- -f
➜ server git:(main) cargo run -- -f
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/stardust-xr-server -f`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] Trying EGL direct rendering from /dev/dri/renderD128
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 NVIDIA 525.89.02
[SK diagnostic] [sk_gpu] Device: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
[SK diagnostic] Starting a flatscreen display
[1] 7772 segmentation fault cargo run -- -f
Nova
Nova2y ago
OOF oh iut's trying egl direct rendering??? what? with flatscreen??? that shouldn't happen maybe nuke the target dir entirely at this point
Viola (Nicola)
Viola (Nicola)OP2y ago
yup, I'll try well, it turns out that I need mesa to have gbm, and without gbm stereokit won't even compile
Nova
Nova2y ago
right so regular packaged mesa should be fine
Viola (Nicola)
Viola (Nicola)OP2y ago
but if I have mesa... it will just use llvmpipe instead of the nvidia card :/
Nova
Nova2y ago
did you try packaged meson again?
Viola (Nicola)
Viola (Nicola)OP2y ago
I've just compiled it with the default flags, so yeah
Nova
Nova2y ago
hmm well guess llvmpipe?? that's so weird
Viola (Nicola)
Viola (Nicola)OP2y ago
ah, I can just disable llvmpipe from mesa ig it just tries to use softpipe but crashes smh :pppp
Nova
Nova2y ago
oooof
Viola (Nicola)
Viola (Nicola)OP2y ago
anyway, it's not a big problem if it works on more standard configs, ig I'll figure it out later
Want results from more Discord servers?
Add your server