Topic: [SOLVED] libhid, chumby, and linking with "-lhid"
I am currently working on a project which requires that I access usb devices from the Chumby. To do so, I am attempting to use libhid. Compiling libusb-0.1 and libhid has not been an issue, however I am running into problems when I attempt to compile my own applications that use libusb.
Specifically, gcc/ld appear to have trouble finding the libhid headers and the libhid library files. On my laptop, my code is easily compiled with:
gcc test_hid.c -o test_hid -lusb -lhid
Attempting to run the same command on my CHB results in in an "hid.h not found" error. I am able to correct this problem by specifying the actual path of the include files:
gcc test_hid.c -o test_hid -I/mnt/storage/local/include -lusb -lhid
This fixes the first error, however a second error arises: -lhid is an unknown linking parameter. In attempt to rectify this problem, I changed my compilation command to:
gcc test_hid.c -o test_hid -I/mnt/storage/local/include -L/mnt/storage/local/lib -lusb
This eliminates the linker's complaints about "-lhid" however gcc still complains about not being able to find any of the libhid functions that I use in my code. At this point I am about out of ideas.
Does anyone have any experience with libhid on the chumby that might be able to shed some light on the problem?
Also, on another note, I initially attempted to use libusb-1.0. This compiled fine and I was even able to compile my code without a problem. Unfortunately, I am unable to receive any data from my usb peripherals on my CHB using libusb 1.0 (the same code works fine on my other linux machines). Any ideas why the CHB has trouble with this newer version of libusb?