交叉编译lsusb

[libusb-1.0.8]
./configure CC=arm-linux-gcc --build=i686-linux --host=arm-linux --prefix="$PWD/../usblib-1.0"
make install

[libusb-compat-0.1.3]
export PKG_CONFIG_PATH="$PWD/../usblib-1.0":$PKG_CONFIG_PATH
./configure CC=arm-linux-gcc --build=i686-linux --host=arm-linux --prefix="$PWD/../usblib-1.0"
make install

[usbutils-0.86]
./configure CC=arm-linux-gcc --build=i686-linux --host=arm-linux LIBUSB_CFLAGS=-L"$PWD/../usblib-1.0/include/libusb-1.0 $PWD/../usblib-1.0/include" LIBUSB_LIBS="$PWD/../usblib-1.0/lib/libusb-1.0.so $PWD/../usblib-1.0/lib/libusb.so" CPPFLAGS=-I"$PWD/../usblib-1.0/include/libusb-1.0"
make

posted on 2011-08-26 15:41  devcfei  阅读(1508)  评论(0编辑  收藏  举报