Xirom
Xirom

Reputation: 41

GLFW: no xkbcommon locale

I'm trying to build a small OpenGL renderer with GLFW, but am getting stuck at creating a window.

Here's my code so far:

#include <glad/glad.h>
#include <GLFW/glfw3.h>

#include <iostream>

int main(int argc, char** argv){

  glfwInit();
  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
  glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

  GLFWwindow* window = glfwCreateWindow(1280, 750, "renderer", nullptr, nullptr);
  if(window == nullptr){
    std::cout << "Could not create GLFW window\n";
    glfwTerminate();
    return -1;
  }

  glfwMakeContextCurrent(window);

  return 0;
}

When I run this code I get:

xkbcommon: ERROR: couldn't find a Compose file for locale "" (mapped to "")

I'm using arch linux with kde-plasma/wayland and nvidia.

Upvotes: -1

Views: 41

Answers (0)

Related Questions