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
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
yeah this is on another computer running gentoo
oh fun
well i'm gonna let malek help
Gentoo?
Bruh
so no idea what it could be causing it?
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
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 problemWorks better with
stereokit-rs
and stereokit-sys
from git except that moshi changed stereokit-rs
API on 9th Marchgotcha, 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 macCan confirm that this fixed it for me!
yaaaaaaaay
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
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
that's probably the little tweak i added to stereokit sigh
wait maybe not
@Viola (Nicola) are you running monado at the same time?
nope