|
From: Navdeep <sin...@re...> - 2009-07-24 06:24:27
|
Hi, I am working on RHEL 4 (64x).First time i am working on libusb. In our existing implementation of usbdaemon(binary) we are using the libusb.1.4 related functions ( usb_init(), usb_open(), usb_close) Now i want to update my usbdaemon(binary) to support with libusb1.0. For this i downloaded libusb souce code form sourceforge. Then i Built and installed it on the above machine as per instructions provided in "INSTALL" file which is successfully installed at location /usr/local/lib (Doubt 1 : why it installed at local in place of /usr/lib or /usr/lib64) After this if update my binary with the new function then i get the following error. /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib/libusb.so when searching for -lusb /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libusb.so when searching for -lusb /usr/bin/ld: skipping incompatible /usr/lib/../lib/libusb.so when searching for -lusb /usr/bin/ld: skipping incompatible /usr/lib64/libusb.so when searching for -lusb /usr/bin/ld: skipping incompatible /usr/lib64/libusb.a when searching for -lusb /usr/bin/ld: skipping incompatible /usr/lib/libusb.so when searching for -lusb /usr/bin/ld: cannot find -lusb collect2: ld returned 1 exit status make: *** [usbdaemon] Error 1 if i check the installed libusb using following command i get follwing error [root@localhost usbdaemon]# rpm -qa | grep libusb libusb-devel-0.1.8-3 libusb-0.1.8-3 libusb-0.1.8-3 Here is my doubts: 1. Does RHEL supports to the libusb1.0.so ? 2. Why all files installed at local directory? 3. Is there any other way to build my binary with libusb 1.0 ? Thanks & regards SNAV |