OpenWrt Forum Archive

Topic: libusb

The content of this topic has been archived on 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am attempting to get  a wi-spy running on an openwrt machine but when I try to compile my new package it complains that usb.h file does not exist.
1. Does it sound like libusb is not included.
2. Where do I select libusb at in menuconfig

I am attempting to get  a wi-spy running on an openwrt

Suh-weet!

Yeah, libusb isn't included in trunk, it's under packages-

https://dev.openwrt.org/browser/packages/libs/libusb

You can use $buildroot/scripts/feeds to fetch the package or just check it out directly-

svn co https://svn.openwrt.org/openwrt/packages/libs/libusb

It'll then show up under 'Libraries' when you run 'make menuconfig'.

Hope this helps,
Charlie

$ ./scripts/feeds update packages
$ ./scripts/feeds install -d m libusb
$ make package/libusb/{clean,compile}

(Last edited by Yanira on 20 Feb 2009, 21:19)

Making that, you get:

ogry@ogry-ubuntu:~/SDKamikaze$ ./scripts/feeds install -d m libusb
Installing package 'libusb'
WARNING: No feed for package 'libtool' found, maybe it's already part of the standard packages?

And later, after the make

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for -openwrt-linux-strip... -openwrt-linux-strip
checking build system type... i486-pc-linux-gnu
checking host system type... configure: error: /bin/bash ./config.sub -openwrt-linux failed
make[3]: *** [/home/ogry/SDKamikaze/build_dir/target-_-/libusb-0.1.12/.configured] Error 1
make[3]: Leaving directory `/home/ogry/SDKamikaze/feeds/packages/libs/libusb'
make[2]: *** [package/feeds/packages/libusb/compile] Error 2
make[2]: Leaving directory `/home/ogry/SDKamikaze'
make[1]: *** [/home/ogry/SDKamikaze/staging_dir/target-_-/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/ogry/SDKamikaze'
make: *** [world] Error 2

While the feeds updates again (some times its stoled), I'm struggling my brain looking for a workaround...


Saludos,       OSCAR.

This is for the build-system, not for the SDK.

The discussion might have continued from here.