so pulled telescope ran setup script and

so, pulled telescope, ran setup script and decided to try xr_terminal just to see and hit an error with fusion
error[E0658]: `let...else` statements are unstable
--> /$HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/stardust-xr-fusion-0.25.4/src/lib.rs:75:4
|
75 | let Some(handler) = handler.upgrade() else { return Err(anyhow!("Handler broken")) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `stardust-xr-fusion` due to 6 previous errors
error[E0658]: `let...else` statements are unstable
--> /$HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/stardust-xr-fusion-0.25.4/src/lib.rs:75:4
|
75 | let Some(handler) = handler.upgrade() else { return Err(anyhow!("Handler broken")) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `stardust-xr-fusion` due to 6 previous errors
12 Replies
lstein
lsteinOP2y ago
Updated using rustup update and fixed this issue, ran into missing dependency xkbcommon-x11, installed that hit stddef.h' file not found building Stereokit, installed clang Script exits since I don't have a supported terminal, install kitty, try script again and thread panics
/home/lincoln/.cargo/registry/src/github.com-1ecc6299db9ec823/stereokit-sys-2.0.1/StereoKit/StereoKitC/systems/world.cpp:483:64: error: ‘struct sk::XrExtTable’ has no member named ‘xrDestroySceneObserverMSFT’
483 | if (xr_scene_observer != XR_NULL_HANDLE) xr_extensions.xrDestroySceneObserverMSFT(xr_scene_observer);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/StereoKitC.dir/build.make:734: CMakeFiles/StereoKitC.dir/StereoKitC/systems/world.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/StereoKitC.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit status: 2

build script failed, must exit now', /home/lincoln/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.49/src/lib.rs:1104:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Exiting Stardust XR
Terminated
/home/lincoln/.cargo/registry/src/github.com-1ecc6299db9ec823/stereokit-sys-2.0.1/StereoKit/StereoKitC/systems/world.cpp:483:64: error: ‘struct sk::XrExtTable’ has no member named ‘xrDestroySceneObserverMSFT’
483 | if (xr_scene_observer != XR_NULL_HANDLE) xr_extensions.xrDestroySceneObserverMSFT(xr_scene_observer);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/StereoKitC.dir/build.make:734: CMakeFiles/StereoKitC.dir/StereoKitC/systems/world.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/StereoKitC.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit status: 2

build script failed, must exit now', /home/lincoln/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.49/src/lib.rs:1104:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Exiting Stardust XR
Terminated
Saphira Kai
Saphira Kai2y ago
sigh lol seems i have some work to do later thanks for documenting this clearly
lstein
lsteinOP2y ago
If I go into repos, I can cargo run in server and get the expected window trying to see if I can get anything to display
Saphira Kai
Saphira Kai2y ago
that's really weird, i don't know how stereokit could fail to build from the script but succeed manually
lstein
lsteinOP2y ago
I wouldn't jump on this too fast, I'm not sure it's repeatable. Will do some testing with a docker container and report back so, after updateing rust, installed xkbcommon-x11, clang, and kitty, I deleted the repos/ directory, reran setup.sh and then ran xr_terminal.sh and here is what I get
telescope/repos/server/target/release//stardust-xr-server: error while loading shared libraries: libjsoncpp.so.1: cannot open shared object file: No such file or directory
thread 'main' panicked at 'Unable to connect to server: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }', src/main.rs:13:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Could not connect to the stardust server
[src/main.rs:21] Args::parse() = Args {
x: 0.0,
y: -0.5,
z: -0.25,
yaw: None,
command: [
".../telescope/repos/manifold/target/release//manifold",
],
}
thread 'main' panicked at 'Unable to connect to server: ConnectionFailure', src/main.rs:24:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[341 13:28:36.181481] [glfw error 65544]: Wayland: Failed to connect to display
GLFW initialization failed
Exiting Stardust XR
Terminated
telescope/repos/server/target/release//stardust-xr-server: error while loading shared libraries: libjsoncpp.so.1: cannot open shared object file: No such file or directory
thread 'main' panicked at 'Unable to connect to server: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }', src/main.rs:13:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Could not connect to the stardust server
[src/main.rs:21] Args::parse() = Args {
x: 0.0,
y: -0.5,
z: -0.25,
yaw: None,
command: [
".../telescope/repos/manifold/target/release//manifold",
],
}
thread 'main' panicked at 'Unable to connect to server: ConnectionFailure', src/main.rs:24:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[341 13:28:36.181481] [glfw error 65544]: Wayland: Failed to connect to display
GLFW initialization failed
Exiting Stardust XR
Terminated
Saphira Kai
Saphira Kai2y ago
missing json library, that's really weird try pkgfile libjsoncpp.so.1 you might have to install pkgfile
lstein
lsteinOP2y ago
so, the libs I have are libjsoncpp.so libjsoncpp.so.1.9.5 libjsoncpp.so.25 This looks to be a arch thing, running ubuntu 22.04 currently.
Saphira Kai
Saphira Kai2y ago
ah i'm used to arch, sorry xD
lstein
lsteinOP2y ago
so, I think the json lib thing may have been a weird bug resulting from me having old libraries, updating my os, and those old libraries trying to link to old versions and not the new one.
Saphira Kai
Saphira Kai2y ago
that sounds plausible
lstein
lsteinOP2y ago
so, now there is some libopenxr-loader thing I am trying to figure out. But, if I run everything manually, it seems ok up until I try to run the terminal
kitty -e bash -c 'echo Click inside the black window back on your desktop to send keyboard and mouse input to this terminal!; echo; $SHELL' >/dev/null
2022-12-08T22:02:14.948787Z INFO stardust_xr_server::wayland::state: Wayland client InnerClientId { id: 0, serial: 1 } connected
2022-12-08T22:02:14.948903Z WARN slog: Output is used with not preferred mode set slog.target="smithay::wayland::output::handlers" slog.module_path="smithay::wayland::output::handlers" slog.file="/home/lincoln/.cargo/git/checkouts/smithay-b5a338d5236320f6/37bd888/src/wayland/output/handlers.rs" slog.line=49 slog.column=13
listener function for opcode 5 of wl_pointer is NULL
2022-12-08T22:02:19.277616Z INFO stardust_xr_server::wayland::state: Wayland client InnerClientId { id: 0, serial: 1 } disconnected because ConnectionClosed
Aborted (core dumped)
kitty -e bash -c 'echo Click inside the black window back on your desktop to send keyboard and mouse input to this terminal!; echo; $SHELL' >/dev/null
2022-12-08T22:02:14.948787Z INFO stardust_xr_server::wayland::state: Wayland client InnerClientId { id: 0, serial: 1 } connected
2022-12-08T22:02:14.948903Z WARN slog: Output is used with not preferred mode set slog.target="smithay::wayland::output::handlers" slog.module_path="smithay::wayland::output::handlers" slog.file="/home/lincoln/.cargo/git/checkouts/smithay-b5a338d5236320f6/37bd888/src/wayland/output/handlers.rs" slog.line=49 slog.column=13
listener function for opcode 5 of wl_pointer is NULL
2022-12-08T22:02:19.277616Z INFO stardust_xr_server::wayland::state: Wayland client InnerClientId { id: 0, serial: 1 } disconnected because ConnectionClosed
Aborted (core dumped)
Saphira Kai
Saphira Kai2y ago
hello i'm here xD i'm guessing that ping was an accident lol
Want results from more Discord servers?
Add your server