hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Allow to optional disable libusb version on linux

Open jonasschnelli opened this issue 8 years ago • 4 comments

Quick way to compile libhidapi only with hidraw.

jonasschnelli avatar Mar 21 '17 12:03 jonasschnelli

Why? And why not the opposite instead or as well?

I'd love for it to be hidraw-only, but there are technical issues in the way of that, unfortunately.

signal11 avatar Mar 22 '17 19:03 signal11

The default should probably be to compile with libusb.

In our use case, we cross compile static binaries with hidraw and don't need the libusb part. During full static cross compilation you don't want to solve dependencies of parts you don't need at the end.

Maybe a better option would be to not build the libusb part if libusb is not available?

jonasschnelli avatar Mar 22 '17 20:03 jonasschnelli

Maybe a better option would be to not build the libusb part if libusb is not available?

Maybe but I'd like for any disabling of basic features to be manual rather than automatic (ie: --disable-libusb or --disable-hidraw). I think that makes the most sense but I'm open to being convinced otherwise.

signal11 avatar Mar 22 '17 21:03 signal11

FYI: There is now a maintained fork of this project at https://github.com/libusb/hidapi

jonathancross avatar Jul 11 '19 01:07 jonathancross