当遇到“dependency 'sdl2' not found, tried pkgconfig and config-tool”这样的错误时,可以按照以下步骤进行排查和解决: 检查是否已经安装了sdl2库: 在不同的操作系统上,检查方法有所不同。例如,在Linux上,你可以使用包管理器(如apt、yum等)来检查是否已安装SDL2。 bash sudo apt-get install libsdl2-dev...
Found pkg-config: C:\msys64\mingw64\bin\pkg-config.EXE (1.9.5) sdl2-config found: NO Found CMake: D:\programms\cmake\bin\cmake.EXE (3.27.4) Run-time dependency sdl2 found: NO (tried pkgconfig, config-tool and cmake) src\meson.build:14:11: ERROR: Dependency "sdl2" not found...
# Define this to avoid linking with SDL, which requires SDL libraries # This can solve 'sdl-config: Command not found' errors ifeq ($(CONFIG_SANDBOX_SDL),y) -PLATFORM_LIBS += $(shell $(SDL_CONFIG) --libs) -PLATFORM_CPPFLAGS += $(shell $(SDL_CONFIG) --cflags) +PLATFORM_LIBS +=...
checking for sdl3... no configure: error: Package requirements (sdl3) were not met: Package 'alsa', required by 'sdl3', not found The equivalent check for SDL2 works fine because it doesn't need all the dependent.pcfiles. This is the property I'd like to have for SDL3, as well....
set(SDL2_SDL2test_FOUND TRUE) endif() include("${CMAKE_CURRENT_LIST_DIR}/sdlfind.cmake") set(SDL_ALSA @SDL_ALSA@) set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@) if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static) sdlFindALSA() endif() unset(SDL_ALSA) un...
Package SDL2 was not found in the pkg-config search path. Perhaps you should add the directory containing `SDL2.pc' to the PKG_CONFIG_PATH environment variable Package 'SDL2', required by 'virtual:world', not found [root@fedora ~]# pkg-config --libs --cflags "opengl" "glut" "glew"...
When I was working on the sdl3 port as well, I found it cumbersome and error prone to have to essentially reverse engineer what cmake is already doing. It would be amazing if the port file could instead do: # fetch the zip file # run emcmake cmake ... # cmake --build . --tar...