-
Notifications
You must be signed in to change notification settings - Fork 399
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
HIDAPI homebrew formula problem #498
Comments
Does Homebrew provides static linking for other libraries? |
For (if) a library provided in both shares/static by Homebrew - what is the mechanism to swith among them by the user/client? |
Yes. For example, there are libftdi1 (CMake based) and libusb-1.0 (auto-tools build) static libraries. Please refer to the following avrdude issues.
|
Example from avrdude: for sure it is not fool-proof, if static library is not present, it will fall back to dynamic library. The default option for Windows is static linking and the default for Linux/macOS is dynamic linking. However, there are users under Linux/macOS who want static linking as well (eg: Arduino project).
|
BTW, avrdude has its own HIDAPI fork (only for Windows and only for MSVC static linking) but it is now using the same Windows codes as HIDAPI 0.13.0. |
From avrdudes/libhidapi README:
I'd say that is a great win for HIDAPI - we where focused on making the library better based on HID Standard and unification of the behavior across platforms and as a result eliminated a (platform-specific) issue some project had. |
I think I will close this issue as it is not really an HIDAPI issue, but rather a Homebrew formula problem. |
This is not really an HIDAPI issue but Homebrew issue.
They do not provide static linking library under Homebrew.
Formula:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/hidapi.rb
The text was updated successfully, but these errors were encountered: