arch linux 中的 raylib 需要什么库而不是 mesa 和
what is raylib required libraries in arch linux instead of mesa and
如何在arch中安装raylib所需的库。所有必需的库都适用于 Debian。 arch 需要哪些 raylib 库?
我安装了 raylib 并创建了一个 CMakeLists.txt 文件用于在 运行 cmake 之后创建可执行文件并创建可执行文件,但是当我 运行 它时,我得到了这个错误
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 代码
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})
我通过删除 glfw-wayland
并安装 glfw-x11
解决了问题
sudo pacman -S glfw-x11
如何在arch中安装raylib所需的库。所有必需的库都适用于 Debian。 arch 需要哪些 raylib 库?
我安装了 raylib 并创建了一个 CMakeLists.txt 文件用于在 运行 cmake 之后创建可执行文件并创建可执行文件,但是当我 运行 它时,我得到了这个错误
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 代码
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})
我通过删除 glfw-wayland
并安装 glfw-x11
sudo pacman -S glfw-x11