Replies: 4 comments 5 replies
-
Define what do you expect to be easy. |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @madebr in #681 (comment)
By easy, I mean the cmake script does need no modifications and can build with libusb support (using a system library) without needing to building libusb yourself. Lines 40 to 48 in 4578ea2 Lines 110 to 130 in 4578ea2 HIDAPI_WITH_LIBUSB is not used on Windows
It works, but you're effectively using a fork and do not use upstream.
Looking at SDL's cmake script, we've added a |
Beta Was this translation helpful? Give feedback.
-
libusb backend for HIDAPI officially supported only on a number of platforms but Windows is not one of them. If you happen to use libusb backend of HIDAPI on Windows - you must be using modified or your own build script for HIDAPI, which is not official distribution as of yet. On those supported platforms, libusb officially distributed in a way that pkg-config should be used to find it, and this part of HIDAPI CMake script handles it, at least according to my testing. Are you saying it doesn't work in your environemnt?
We have |
Beta Was this translation helpful? Give feedback.
-
I caught this on a local MSVC instance, which apparently warned about this. |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @madebr in #681 (comment):
For this, SDL uses a
FindLibUSB.cmake
module and a GitHub prebuilt release to provide binariesBeta Was this translation helpful? Give feedback.
All reactions