Hello all,
I'd like to create a Rust GUI application on a RPi4. I'm using the official screen & my system is the 64bit bookworm desktop OS:
Linux raspberrypi 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
I've looked at egui http://docs.rs/egui/latest/egui/ & iced http://docs.rs/iced/latest/iced/index.html but both use winit https://docs.rs/winit/latest/winit/ which is
Setting
export WAYLAND_DISPLAY=1
then results in:
I'll experiment with changing the Advanced Options>Wayland setting in raspi-config but I wonder if anyone could point me in the right track? I don't think the winit developers will be able to help much as this is specifically a RPi issue
I'd like to create a Rust GUI application on a RPi4. I'm using the official screen & my system is the 64bit bookworm desktop OS:
Linux raspberrypi 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
I've looked at egui http://docs.rs/egui/latest/egui/ & iced http://docs.rs/iced/latest/iced/index.html but both use winit https://docs.rs/winit/latest/winit/ which is
When I try to run either I get a winit issue (source code: https://github.com/rust-windowing/winit ... mod.rs#L81)a cross-platform window creation and event loop management library.
Code:
thread 'main' panicked at /home/owen/iced/winit/src/lib.rs:84:10:Create event loop: Os(OsError { line: 764, file: "/home/owen/.cargo/git/checkouts/winit-865c6d5afb3ec9c3/11414b6/src/platform_impl/linux/mod.rs", error: Misc("neither WAYLAND_DISPLAY nor WAYLAND_SOCKET nor DISPLAY is set.") })export WAYLAND_DISPLAY=1
then results in:
Code:
thread 'main' panicked at /home/owen/iced/winit/src/lib.rs:84:10:Create event loop: Os(OsError { line: 81, file: "/home/owen/.cargo/git/checkouts/winit-865c6d5afb3ec9c3/11414b6/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) })Statistics: Posted by leo738 — Sat Jun 28, 2025 8:32 pm