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

Mac osx fix #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Mac osx fix #4

wants to merge 2 commits into from

Conversation

achingbrain
Copy link

On a similar note, I had to make the changes in this pull request to get it to compile and install successfully on OS X. Namely adding the JDK headers folder to the include path and commenting out the lsusb.main invocation as for me it just prints out usb information and then hangs.

@achingbrain
Copy link
Author

Looks like I was just being impatient. The build does complete, but building the usb tools takes about ten minutes. The thread that takes ages is:

"main" prio=5 tid=7ff6ba801000 nid=0x101fd2000 runnable [101fcf000]
java.lang.Thread.State: RUNNABLE
at javalibusb1.Libusb1UsbDevice.nativeGetString(Native Method)
at javalibusb1.Libusb1UsbDevice.getString(Libusb1UsbDevice.java:74)
at no.hackaton.usb.tools.lsusb.getString(lsusb.java:129)
at no.hackaton.usb.tools.lsusb.dump(lsusb.java:61)
at no.hackaton.usb.tools.lsusb.dump(lsusb.java:42)
at no.hackaton.usb.tools.lsusb.main(lsusb.java:14)
at no.hackaton.usb.tools.LsusbTest.testLsusb(LsusbTest.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145)
at org.apache.maven.surefire.Surefire.run(Surefire.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)

The device in question is this one:

Usb device:
Configured: true
bdcUSB 2.00
bDeviceClass: 239
bDeviceSubClass 2
bDeviceProtocol 1
bMaxPacketSize 64
idVendor 05ac
idProduct 8510
bcdDevice 8.25
iManufacturer 1 Unable to get string #1, libusb: other <----- hangs here
iProduct 2 Unable to get string #2, libusb: other
iSerialNumber 3 Unable to get string #3, libusb: other
bNumConfigurations 1
Configuration #0
Active true
bConfigurationValue 1
bmAttributes 0x80
bMaxPower -6
bNumInterfaces 3
iConfiguration 0
wTotalLength 740
Interfaces #0
bAlternateSetting 0
bInterfaceClass 14
bInterfaceNumber 0
bInterfaceProtocol 0
bInterfaceSubClass 1
bNumEndpoints 1
iInterface 2 Unable to get string #2, libusb: other
Endpoint #0
Direction in
Type 3
bEndpointAddress 0x81
bInterval 6
bmAttributes 3
wMaxPacketSize 8
Interfaces #1
bAlternateSetting 0
bInterfaceClass 14
bInterfaceNumber 1
bInterfaceProtocol 0
bInterfaceSubClass 2
bNumEndpoints 0
iInterface 0
Interfaces #2
bAlternateSetting 0
bInterfaceClass 255
bInterfaceNumber 2
bInterfaceProtocol 0
bInterfaceSubClass 0
bNumEndpoints 0
iInterface 0

..which from USB Prober.app appears to be the built in webcam.

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

Successfully merging this pull request may close these issues.

2 participants