[Nut-upsuser] libusb not recognized?
Andrew Min Chang
laplacezhang at 126.com
Wed Nov 16 08:55:43 UTC 2011
Hi, Charles,
libusb-0.1.12 did not work, too.
Do you mean the testlibusb.c as attached? I compiled it by:
# cc -c testlibusb.c
# cc -o test testlibusb.o -lusb
Because there's gcc on my target board.
but ./test prints nothing. I looked into the source and fount that "usb_busses" is zero.
I had a usb hardisk and a APC smart-ups connected to my board through usb. The hardisk was recognized and automatically mounted to system. While smart-ups was not recognized by Linux, but Linux knew that that was a usb device.
I am not familar with usb drive. But I guess if libusb is correctly installed, testlibusb should list all usb device. So libusb was not correctly installed. However, gcc recognized the usb.h provided by libusb. That seemed strange to me.
Best Regards
--
Andrew Chang
2011-11-09
At 2011-11-16 11:02:21,"Charles Lepple" <clepple at gmail.com> wrote:
>On Nov 15, 2011, at 9:13 PM, Andrew Min Chang wrote:
>
>> Also attach sequence of installing libusb-0.1.12 with same commands, from file 05 to 08.
>
>When Arnaud said "libusb-0.1", I think he meant "the latest in the libusb 0.1 series," which is 0.1.12.
>
>Have you been able to run any other programs that use libusb? There is an example program called "testlibusb", and it should print some output similar to lsusb.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20111116/9b2954e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testlibusb.c
Type: text/x-csrc
Size: 4731 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20111116/9b2954e2/attachment.c>
More information about the Nut-upsuser
mailing list