Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to optional disable libusb version on linux #318

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonasschnelli
Copy link

Quick way to compile libhidapi only with hidraw.

@signal11
Copy link
Owner

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.

@jonasschnelli
Copy link
Author

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?

@signal11
Copy link
Owner

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.

@jonathancross
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants