Topic: building phidgets requires libhid requires libusb on infocast
I've been trying to use the on-board infocast 8 tools instead of using scratchbox and cross compilation. The infocast 8 is cool because it auto installs the gcc tools to /mnt/storage/gccthe first time you run make
I want to use a Phidget on the infocast. The Phidgets library requires libhid.
libhid fails to build because usb.h can't be found, similar to another posting in this form.
The infocast comes with libusb 0.1 but no header files. The development environment on the infocast doesn't include the usb header files either. It seems like I need to build libusb to get the header files installed so I can build libhid so I can build the Phidgets library
I pulled down libhid-0.2.16, the current version, and configured with ./configure –prefix=/mnt/storage/local run make and received a message that implies that I need to pull build libusb
because there is a missing header file
In file included from linux.c:6:
../include/hid.h:5:17: error: usb.h: No such file or directory
cc1: warnings being treated as errors
In file included from linux.c:9:
../include/debug.h:23: error: 'struct usb_bus' declared inside parameter list
libusb 0.1.12 is available files.chumby.com. I configured it with ./configure --prefix=/mnt/storage/local the ran make and which resulted in the message
grep: /lib/libstdc++.la: No such file or directory
sed: /lib/libstdc++.la: No such file or directory
libtool: link: `/lib/libstdc++.la' is not a valid libtool archive
which makes sense because it's actually in /mnt/storage/gcc/usr/lib
Is this the right path or is it a rat hole? How do I tell the libhid to look somewhere else for the libstdc++.la files?