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

Runtime error when running on Nixos and wayland #53

Open
onicue opened this issue Nov 21, 2024 · 0 comments
Open

Runtime error when running on Nixos and wayland #53

onicue opened this issue Nov 21, 2024 · 0 comments

Comments

@onicue
Copy link

onicue commented Nov 21, 2024

I encountered an issue when running Vulkan on Wayland. After launching the application, it throws the following runtime error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  validation layers requested, but not available!
Aborted (core dumped)

shell.nix

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    glslang
    bash
    cmake
    vulkan-tools
    vulkan-utility-libraries
    vulkan-validation-layers
    vulkan-headers
    vulkan-loader
    glfw-wayland
    glm
    git
    clang
    ninja
  ];

  shellHook = ''
    # Set CC and CXX to use Clang
    export CC=${pkgs.clang}/bin/clang
    export CXX=${pkgs.clang}/bin/clang++
  '';
}

The window also doesn't launch after the code from the first lesson on Wayland.

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

1 participant