Hi
I'm attempting to use eclipse on Hardy to brush up (OK, I'm learning from scratch) on C development. The interest is really in robotics (the arduino platform) and while setting the environment I noticed something odd.
One of the tests I am trying to run is accessing images from my USB webcam. I have libusb-dev and libusb-0.1-4.
I am also using CDT for C development.
When I include usb.h and then try and compile with even usb_init(); in my code eclipse complains that "undefined reference to `usb_init'". I can see usb.h in the include folder.
Here's the code (it is something from online)
#include <usb.h>
int main(int argc, char **argv) {
struct usb_bus *busses;
usb_init();
usb_find_busses();
usb_find_devices();
busses = usb_get_busses();
return 0;
}
Should I get a source from libusb and compile myself? Is there a reason libusb-dev etc., doesn't work here.
I googled for an answer but nothing seems to strike this problem. Any help appreciated!