-
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
"The wayland library could not be loaded" on NixOs with wayland & hyprland #3244
Comments
VirgileHenry
changed the title
"The wayland library could not be loaded" on NixOs with wayland & hyprland
Nov 27, 2023
The wayland library could not be loaded
on NixOs with wayland & hyprland
Please, read the documentation on how to use your system. Winit uses dlopen. |
Thanks for the quick reply. I'm trying my best, and I've also tried to use the following flake : {
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=release-21.11";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in with pkgs; rec {
devShell = mkShell rec {
buildInputs = [
libxkbcommon
libGL
# WINIT_UNIX_BACKEND=wayland
wayland
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
RUST_BACKTRACE="full";
};
});
} Which effectively sets the path for the wayland lib, but with this there is no window at all (the program runs and that's it) |
You must draw on Wayland to have your window shown. |
2 tasks
13 tasks
elsirion
added a commit
to elsirion/harbor
that referenced
this issue
May 31, 2024
iced wants to load a dynamic library for wayland, which doesn't work on nix if it's not explicitly put into the path. See: rust-windowing/winit#3244 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to run winit on NixOs, under wayland and I hit this error :
(This is with the rust backtrace set to 1, I can run it with
full
if required.)I'm running this minimal example :
I've also tried creating the event loop with:
Which have the same effects.
This is all run into an nix shell where I imported the wayland libs:
Maybe I'm missing something ? Any help would be helpful.
The text was updated successfully, but these errors were encountered: