FS#75827 - [sdl2] Enable SDL_HIDAPI_LIBUSB in package
Attached to Project:
Arch Linux
Opened by JyKin (JyKin) - Tuesday, 06 September 2022, 16:03 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 10 September 2022, 23:43 GMT
Opened by JyKin (JyKin) - Tuesday, 06 September 2022, 16:03 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 10 September 2022, 23:43 GMT
|
Details
Description:
Latest sdl2 package (2.24.0-1) is compiled using old flags. HIDAPI flags have changed and the use of libusb depends on the cmake flag SDL_HIDAPI_LIBUSB. This flag is off by default, and its value is only forced (off or on) on some systems like Windows or FreeBSD. Without it, controllers like gamecube controller (using the usb adptater) are not correctly recognized (could not use it in retroarch with sdl2 arch packages, setting the flag was enough). Since it is manageable with compilation option, I don't know if I should report it to upstream. Additional info: * package version(s) : 2.24.0-1 |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Saturday, 10 September 2022, 23:43 GMT
Reason for closing: Fixed
Saturday, 10 September 2022, 23:43 GMT
Reason for closing: Fixed
-- SDL_HIDAPI_LIBUSB (Wanted: ON): OFF
Do I have to set anything else?
What I am sure of is that without asking this option, the configuration step do not look for libusb; and that the package I made with the option allows me to use my gamecube controller in retroarch.
As for the cmake output, I checked more and the reporting use secondary variables but none are set for SDL_HIDAPI_LIBUSB. So it will always show it as OFF even when enabled.
I'm reporting this upstream.