Skip to content

GLFW 3.4 does not work correctly with wayland #315397

Description

@roman3pm

Describe the bug

Recently, I used glfw-wayland for my little project on OpenGL, and it worked fine. However, after the glfw 3.4 update, my application refuses to run with an error code 65537: "The GLFW library is not initialized". This definitely seems to be an issue with the new version. For comparison, glfw-wayland 3.3.8 from nixos-23.11 works flawlessly without any tinkering required.

Steps To Reproduce

I use this flake configuration

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

  outputs = { nixpkgs, ... }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
      makeShell = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; };
    in
    {
      devShells.${system}.default = makeShell {
        name = "env";
        nativeBuildInputs = with pkgs; [
          cmake
          clang-tools
        ];
        buildInputs = with pkgs; [
          glfw-wayland
          glm
          assimp
        ];
      };
    };
}

Notify maintainers

@getchoo

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.1, NixOS, 24.11 (Vicuña), 24.11.20240524.bfb7a88`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(roz): `"home-manager"`
 - nixpkgs: `/nix/store/z71lmgd0ydfnax1b13zbrls5idf1y7ak-source`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions