<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi Arnaud,<br><br>I tried libusb-0.1.0 and libusb-0.1.9. Neither of them worked. <br>My instiall logs attached. And here is my install sequence (log files are arranged by name): <br><br><br>libusb-0.1.0 log:<br>1. configure libusb-0.1.0: <br>-- File: 01-libusb-0.1.0_config.log<br># ./configure --host=arm-mv5sft-linux-gnueabi --prefix=/mnt/ARM_FS<br>2. make libusb-0.1.0: <br>-- File: 02-libusb-0.1.0_make.txt<br># make<br>3. install libusb<br>-- File: 03-libusb-0.1.0_makeInatall.txt<br># make install<br>4. <br>-- configure NUT<br>-- File: 04-NUT_config.log<br># export PKG_CONFIG_PATH=/mnt/ARM_FS/lib/pkgconfig<br>./configure --with-usb --with-doc \<br>--host=arm-mv5sft-linux-gnueabi \<br>--prefix=/mnt/ARM_FS \<br>--with-usb-libs=-L/mnt/ARM_FS/lib \<br>--with-usb-includes=-I/mnt/ARM_FS/include<br><br><br>Also attach sequence of installing libusb-0.1.12 with same commands, from file 05 to 08. <br>
<br>Any suggestions?<br><br>Thanks!<br><br>Best Regards,<br>
Andrew <br>
2011-11-16<br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2011-11-14 20:47:53,"Arnaud Quette" <aquette.dev@gmail.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Andrew,<br><br>as told 2 times (one from myself and another one from Charles), please subscribe to the mailing list prior to posting.<br>Information on how to subscribe can be found at the following address:<br><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
<br>and as told 2 times also, please use libusb 0.1 not 1.0, since we're not yet compatible with the latter.<br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&D - Eaton - <a href="http://powerquality.eaton.com/" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org/" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br><br><div class="gmail_quote">2011/11/11 Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">[Andrew: please subscribe to the nut-upsuser list:<br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.<u></u>org/cgi-bin/mailman/listinfo/<u></u>nut-upsuser</a><br>
Also, please gzip any attached logs.]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Hello,<br>
<br>
    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."<br>
    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.<br>
    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"...<br>
</blockquote>
<br>
Correct, NUT is only designed to work with the libusb-0.1 API (provided by libusb-compat).<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    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:<br>
CPU: Marvell 88E6281 with ARM926ejs<br>
Linux ver: 2.6.31.8<br>
cinfigure commnd:<br>
./configure --with-usb --with-doc \<br>
--host=arm-mv5sft-linux-<u></u>gnueabi \<br>
--prefix=/mnt/ARM_FS \<br>
<br>
</blockquote>
How did you install libusb-1.0? It appears that the actual .so file was not installed properly:<br>
<br>
configure:7259: checking for libusb version via pkg-config<br>
configure:7278: result: 0.1.12 found<br>
configure:7281: checking for libusb cflags<br>
configure:7298: result: -I/mnt/ARM_FS/include<br>
configure:7301: checking for libusb ldflags<br>
configure:7318: result: -L/mnt/ARM_FS/lib -lusb<br>
configure:7323: checking for usb.h<br>
configure:7323: arm-mv5sft-linux-gnueabi-gcc -c -I/mnt/ARM_FS/include    conftest.c >&5<br>
configure:7323: $? = 0<br>
configure:7323: result: yes<br>
configure:7338: checking for usb_init<br>
configure:7338: arm-mv5sft-linux-gnueabi-gcc -o conftest -I/mnt/ARM_FS/include     conftest.c -L/mnt/ARM_FS/lib -lusb   >&5<br>
/root/uboot_NAS/cross/bin/../<u></u>lib/gcc/arm-mv5sft-linux-<u></u>gnueabi/4.3.2/../../../../arm-<u></u>mv5sft-linux-gnueabi/bin/ld: warning: libusb-1.0.so.0, needed by /mnt/ARM_FS/lib/libusb.so, not found (try using -rpath or -rpath-link)<br>

/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_clear_halt'<br>
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_get_device_address'<br>
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_close'<br>
/mnt/ARM_FS/lib/libusb.so: undefined reference to `libusb_unref_device'<br>
[...]<br>
<br>
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.<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
   Any suggestions?<br>
   Thanks!<br>
<br>
<br>
Best Regards<span class="HOEnZb"><font color="#888888"><br>
--<br>
Andrew Chang<br>
2011-11-09<br>
<br>
<br>
<br>
<config.log><br>
<br>
<br>
<br>
</font></span></blockquote>
<br>_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br></blockquote></div><br><br clear="all"><br><br>
</blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>