Skip to content
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

Failed to initialize any backend #154

Open
RubenArtmann opened this issue Jun 2, 2024 · 1 comment
Open

Failed to initialize any backend #154

RubenArtmann opened this issue Jun 2, 2024 · 1 comment

Comments

@RubenArtmann
Copy link

os: endeavour-os
wm: hyprland (wayland)

command:

nix --extra-experimental-features nix-command --extra-experimental-features flakes run github:friedow/centerpiece

output/error:

thread 'main' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/winit-0.28.7/src/platform_impl/linux/mod.rs:757:9:
Failed to initialize any backend! Wayland status: XdgRuntimeDirNotSet X11 status: LibraryOpenError(OpenError { kind: Library, detail: "opening library failed (libX11.so.6: cannot open shared object file: No such file or directory); opening library failed (libX11.so: cannot open shared object file: No such file or directory)" })
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: winit::platform_impl::platform::EventLoop<T>::new
   3: iced_winit::application::run
   4: centerpiece::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I also have another rust project that also uses winit (0.29 though) and that seems to work just fine...
And im pretty sure i also have XWayland installed...

PS: I dont have much experience with nix and could not find how to install this package (nix-env does not seem to accept github:user/repo) and its confusing that I need to pass extra flags to the nix command you give to run it in the readme.

@bbigras
Copy link

bbigras commented Jun 26, 2024

For the libX11.so.6 error, maybe check NixOS/nixpkgs#322553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants