[Nut-upsuser] libusb not recognized?
clepple at gmail.com
Fri Nov 11 12:59:09 UTC 2011
[Andrew: please subscribe to the nut-upsuser list:
Also, please gzip any attached logs.]
> I downloaded NUT ver 2.6.2 and tried it on my Linux development
> board. when I configure and it notified me that "USB drivers
> requested, but libusb not found."
> Then I download libusb v1.0.8 and install it to my board, and re-
> configure NUT, still "USB drivers requested, but libusb not found".
> I look into config.log, and found that usb.h not found.
> I tried Google and install libusb-compat. Then usb.h was found,
> and libusb version is recognized. However, still "USB drivers
> requested, but libusb not found"...
Correct, NUT is only designed to work with the libusb-0.1 API
(provided by libusb-compat).
> I could not fing any more solution of that. Therefore, I turn to
> developers. config.log is attached. Here are my hardware and
> software configurations:
> CPU: Marvell 88E6281 with ARM926ejs
> Linux ver: 22.214.171.124
> cinfigure commnd:
> ./configure --with-usb --with-doc \
> --host=arm-mv5sft-linux-gnueabi \
> --prefix=/mnt/ARM_FS \
How did you install libusb-1.0? It appears that the actual .so file
was not installed properly:
configure:7259: checking for libusb version via pkg-config
configure:7278: result: 0.1.12 found
configure:7281: checking for libusb cflags
configure:7298: result: -I/mnt/ARM_FS/include
configure:7301: checking for libusb ldflags
configure:7318: result: -L/mnt/ARM_FS/lib -lusb
configure:7323: checking for usb.h
configure:7323: arm-mv5sft-linux-gnueabi-gcc -c -I/mnt/ARM_FS/
include conftest.c >&5
configure:7323: $? = 0
configure:7323: result: yes
configure:7338: checking for usb_init
configure:7338: arm-mv5sft-linux-gnueabi-gcc -o conftest -I/mnt/ARM_FS/
include conftest.c -L/mnt/ARM_FS/lib -lusb >&5
libusb-1.0.so.0, needed by /mnt/ARM_FS/lib/libusb.so, not found (try
using -rpath or -rpath-link)
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_clear_halt'
/mnt/ARM_FS/lib/libusb.so: undefined reference to
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_close'
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_unref_device'
The libusb-1.0.so.0 file should be in the same directory as libusb.so,
meaning that -rpath* options shouldn't be necessary. But if there is
something special about the way libusb was installed (packaging, etc.)
then you might need to fiddle with those options.
> Any suggestions?
> Best Regards
> Andrew Chang
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9959 bytes
Desc: not available
More information about the Nut-upsuser