Skip to content

Fix libusb handling on FreeBSD #12502

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AMDmi3
Copy link
Contributor

@AMDmi3 AMDmi3 commented Mar 9, 2025

  • The library is named libusb.so, not libusb-1.0.so
  • Type of third argument to get_port_numbers differs (int vs uint8_t)

Note that this currently fails CI on FreeBSD because it cannot find symbols from libusb. I have no idea on how to fix that, however FreeBSD port of SDL3 is not affected as it's built with SDL_DEPS_SHARED which avoids this and many others issues caused by runtime dependency linking.

- The library is named libusb.so, not libusb-1.0.so
- Type of third argument to get_port_numbers differs (int vs uint8_t)
@madebr
Copy link
Contributor

madebr commented Mar 9, 2025

Linking is failing because it cannot find the libusb_get_string_descriptor and libusb_fill_interrupt_transfer symbols, used here:

len = libusb_get_string_descriptor(dev,

Perhaps these should be added to the libusb context here?

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

Successfully merging this pull request may close these issues.

2 participants