gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Can't open devices in Windows 10 (new hidapi needed) #60

Closed sean-horton closed 4 years ago

sean-horton commented 7 years ago

It looks like the included hidapi dll is from 2 years ago which seems to be broken on Windows 10. There was a fix in hidapi 10 months ago which allows devices to be opened in Windows 10, issue seen here https://github.com/signal11/hidapi/issues/231

I've not tested the fix yet, but will give it a try over then next few days. Figured I would report it though.

gary-rowe commented 7 years ago

Thanks for the update. The binaries haven't been changed for a long time so could certainly do with a refresh for 0.6.0.

sean-horton commented 7 years ago

Is this something you would accept a pull request for?

I've tested the change on Windows 10 x64 and it is working. I've not yet tried compiling hidapi for Mac or Linux, but will do so if you are okay accepting a pull request.

gary-rowe commented 7 years ago

OK, good to know. I'll see if I can rebuild my Windows compilation environments over the weekend and look into a freshening of the binaries for 0.6.0.

If it's turning hairy I'll look to the community to offer up suitable binaries - I'd prefer deterministic builds with SHA256 hashes confirmed by other contributors for safety (that includes my own contributions too).

sean-horton commented 7 years ago

Hi Gary, is there any update on this or ETA? Thanks.

gary-rowe commented 4 years ago

Well it's been a long time, but I've finally be able to revisit the project. I've updated the binaries and they are currently in the develop branch. Since this is probably now a duplicate of #81 I'll mark this one as closed to avoid distractions.