交叉编译libusb的测试用例的时候报出如下警告,最终连接失败
warning : librt.so.0,need by /路径/libusb/lib/libusb-1.0.so,not found(try using -rpath or -rpath-link)
arm-none-linux-gnueabi/bin/ld:final link failed:Bad value
collect2:error:ld returned 1 exit status
离线
我用的是-L指定的路径,怎么找不到呢
离线
arm-cortex_a9_linux-gnueabi-gcc -I/libusb-1.0.9/libusb/include/libusb-1.0 -L/libusb-1.0.9/libusb/lib -lusb-1.0 ./examples/listdevices.c
离线