- 论坛徽章:
- 0
|
问题现象如下:
[root@localhost usb-modeswitch-1.2.5]# make all
arm-linux-gcc -o usb_modeswitch usb_modeswitch.c -Wall -I /home/admin/libusb-compat-0.1.3/install/include/ -L /home/admin/libusb-compat-0.1.3/install/lib/ -l usb
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libusb-1.0.so.0, needed by /home/admin/libusb-compat-0.1.3/install/lib//libusb.so, not found (try using -rpath or -rpath-link)
/home/admin/libusb-compat-0.1.3/install/lib//libusb.so: undefined reference to `libusb_clear_halt'
/home/admin/libusb-compat-0.1.3/install/lib//libusb.so: undefined reference to `libusb_get_device_address'
/home/admin/libusb-compat-0.1.3/install/lib//libusb.so: undefined reference to `libusb_close'
/home/admin/libusb-compat-0.1.3/install/lib//libusb.so: undefined reference to `libusb_unref_device'
但是我看我的库文件目录是有这个文件的:
[root@localhost usb-modeswitch-1.2.5]# ls /home/admin/libusb-compat-0.1.3/
install
[root@localhost usb-modeswitch-1.2.5]# ls /home/admin/libusb-compat-0.1.3/install/lib
libusb-0.1.so.4 libusb-0.1.so.4.4.4 libusb-1.0.so libusb-1.0.so.0 libusb.a libusb.la libusb.so pkgconfig
[root@localhost usb-modeswitch-1.2.5]#
请问下,这个怎么解决?
|
|