usb icon indicating copy to clipboard operation
usb copied to clipboard

Demo does not run on windows

Open apatura-iris opened this issue 6 years ago • 4 comments

When trying to run the demo on windows 10 (1803) via go run demo.go, I get the following error: panic: failed to get device 0 config 0: libusb: not found [code -5]

The same error appears over and over when trying to run the tests

>go test
--- FAIL: TestThreadedEnumerateRaw (93.06s)
    usb_test.go:58: thread 0, iter 0: failed to enumerate: failed to get device 0 config 0: libusb: not found [code -5]
    usb_test.go:58: thread 0, iter 1: failed to enumerate: failed to get device 0 config 0: libusb: not found [code -5]
    usb_test.go:58: thread 0, iter 2: failed to enumerate: failed to get device 0 config 0: libusb: not found [code -5]

This is with the current version from master and go1.13.1 windows/amd64 (also tried 1.12 with the same result) and mingw (64bit version) as c compiler. On linux (Ubuntu 18.04) everything works as expected.

Suggestions on what to try or report would be highly appreciated.

apatura-iris avatar Oct 20 '19 04:10 apatura-iris

@apatura-iris Did you find any solution ?

arslanmughal99 avatar Sep 23 '20 16:09 arslanmughal99

i got the same problem

howhuai avatar Jan 14 '21 02:01 howhuai

i got the same problem. panic: failed to get device 2 config 0: libusb: not found [code -5]

zhuwei avatar Mar 11 '21 09:03 zhuwei

Looks like this project is dead . No development since year.

arslanmughal99 avatar Mar 11 '21 09:03 arslanmughal99