Search code examples
c++installationerror-handlingarchraylib

what is raylib required libraries in arch linux instead of mesa and


How to install raylib required libraries in the arch. All required libraries are for Debian. what are raylib required libraries for arch?

I installed raylib and created a CMakeLists.txt file for creating an executable file after running cmake and making the executable file created, but when I ran it, I got this error

INFO: Initializing raylib 4.0
WARNING: GLFW: Error: 65544 Description: Wayland: Failed to connect to display
WARNING: GLFW: Failed to initialize GLFW
FATAL: Failed to initialize Graphic Device

CMakeLists.txt codes

cmake_minimum_required(VERSION 3.0.0)

project(gamedev)

find_package(raylib REQUIRED)

add_executable(gamefight main.cpp)

target_include_directories(gamefight PRIVATE ${raylib_INCLUDE_DIRS})

target_link_libraries(gamefight PRIVATE ${raylib_LIBRARIES})

Solution

  • I solved the problem with remove glfw-wayland and installing glfw-x11

    sudo pacman -S glfw-x11