sdl2-compat icon indicating copy to clipboard operation
sdl2-compat copied to clipboard

sdl2-compat builds with SDL_JOYSTICK_DISABLED

Open 1bsyl opened this issue 2 years ago • 2 comments

not sure why it builds with SDL_JOYSTICK_DISABLED

so that ./testjoystick prints: ERROR: SDL compiled without Joystick support.

1bsyl avatar Feb 07 '23 10:02 1bsyl

maybe because it uses SDL_config_minimal ...

include/SDL2/SDL_config_ngage.h:#define SDL_JOYSTICK_DISABLED   1
include/SDL2/SDL_config.h.cmake:#cmakedefine SDL_JOYSTICK_DISABLED @SDL_JOYSTICK_DISABLED@
include/SDL2/SDL_config.h.in:#undef SDL_JOYSTICK_DISABLED
include/SDL2/SDL_config_minimal.h:#define SDL_JOYSTICK_DISABLED   1
include/SDL2/SDL_config_winrt.h:#define SDL_JOYSTICK_DISABLED 1

1bsyl avatar Feb 10 '23 08:02 1bsyl

This fixme is related: https://github.com/libsdl-org/sdl2-compat/blob/2c8012aedceb9bbbde50c01d3ff6ff1e052a13c4/CMakeLists.txt#L568-L569

SDL3 eliminated installation of generated headers. I think the sdl2-compat headers should assume everything is available, and internally fail those functions if dlsym cannot find something.

madebr avatar Feb 10 '23 11:02 madebr

How can I build sdl2-compat with joystick support enabled? Is that possible at the moment? Installed sdl3 and sdl2-compat from aur last time.

FZXizzbKv7jg avatar Oct 03 '24 04:10 FZXizzbKv7jg