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

Update usb.c to address Bug 1886 ("sr: usb: Failed to get libusb file descriptors.") on Windows #235

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

Conversation

COMBudda
Copy link

Add Windows handling to usb.c.

Per https://libusb.sourceforge.io/api-1.0/group__libusb__poll.html

libusb_get_pollfds()
As file descriptors are a Unix-specific concept, this function is not available on Windows and will always return NULL.

Add Windows handling to usb.c.

Per https://libusb.sourceforge.io/api-1.0/group__libusb__poll.html

libusb_get_pollfds()
As file descriptors are a Unix-specific concept, this function is not available on Windows and will always return NULL.
@ExplodingWaffle
Copy link

Thank you! This fix worked for me (with Kingst LA1010). I imagine this is causing issues with everything on Windows, so it would be nice to see merged, building from source is a lot of effort.

@toonvault
Copy link

Same here... neither the Saleae Clone nor the Kingst LA5016 did work with pulseview on windows, with the very same error
(usb: Failed to get libusb file descriptors.)

I am surprised that it was rather difficult to find more with this error, tried a few nightly builds I found on my drives from a few month ago.. same and on various workstations/laptops.

Building pulseview myself with this fix (MXE) solved the problem.

Thanks for this elegant fix!

Copy link

@lesshonor lesshonor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch solved my problem. Built with MXE using your average WSL2 Ubuntu 22.04 install.

If you intend to do the same, note that:

  • In addition to all the listed sigrok-util reqs and the MXE reqs, you will also need to install at least doxygen and asciidoctor.
  • mxe_fixes.patch and libusb1_upgrade.patch don't appear to be necessary anymore

@mahoekst
Copy link

Would be nice if this fix merged to main. I am currently stuck on my Windows machine to use the HiLetgo USB Logic Analyzer

@l33tm4st3r
Copy link

Would be nice if this fix merged to main. I am currently stuck on my Windows machine to use the HiLetgo USB Logic Analyzer

Me too...

@4rz0
Copy link

4rz0 commented Feb 15, 2024

Looking forward to have this merged into a release as well.

@CraigHutchinson
Copy link

Anybody got a windows binary? Maybe attach on a release in the fork etc?

@mahoekst
Copy link

Would love to find one too. Meanwhile I started using https://www.saleae.com/downloads/ which works with my USB logic analyzer as well.

@sricheson
Copy link

Would be nice to have this merged into main.

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