-
Notifications
You must be signed in to change notification settings - Fork 868
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
Getting NotSupported(NotSupportedError)
when creating an EventLoop under X11
#3603
Comments
Please ensure that all of the following libraries are installed:
|
It is indeed the problem. I'm closing this ticket as it's not really a bug of winit but rather its underlying lib: x11-rs Thanks |
The correct way to do this in Nixos to my understanding is to use nix-ld. Adding this snippet should enable nix-ld to provide path to the required libs : programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
xorg.libX11
xorg.libXcursor
xorg.libxcb
xorg.libXi
libxkbcommon
]; Unfortunately, it still doesn't work for some reason (see nix-community/nix-ld-rs#26). export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH I am still looking for a better solution. |
For what it's worth, I got a similar app with the same error to work using a modification of the nix shell here https://discourse.nixos.org/t/could-not-find-system-library-x11-required-by-the-x11-crate/33751 |
My solution was to include a fn main() {
println!(
"cargo:rustc-link-search={}",
std::env::var("NIX_LD_LIBRARY_PATH").unwrap_or_default()
);
} This adds Still, it would be nice to use a Nix specific solution. Reference: https://doc.rust-lang.org/cargo/reference/build-scripts.html |
just export |
Description
I'm trying to run an application that uses winit. When I launch it it crashes on the following line :
I then made a dummy Rust package with only this line and sure enough I have the same crash.
OS and window mananger
I am on Nixos and using Plasma 5.
Winit version
0.29.15
The text was updated successfully, but these errors were encountered: