Thank you firstfire!
Originally Posted by firstfire
What linux distribution do you use? How did you install libusb?
I am using Ubuntu 11.
Actually, I have already installed libusb, both by apt-get (as a second smarter move) and (firstly) by compiling the downloaded distribution (can this have messed things a bit?).
It seems it got installed in /usr/local/lib, which I added to lib.so.conf and then I run ldconfig.
I was actually including libusb, since with usb I got referencing error messages for the send_message command. And then in the search of some solution I tried to include libusb and got stuck with it, since it was also compiling fine the example program of the libusb library.
Your suggestion has therefore solved the original problem I posted, but now if I include lines including the "send_message" command, which are in the rest of the program I have not posted to the forum, I get the errors:
usb@.c:(.text+0x1fb): undefined reference to `send_command'
The other commands related to USB management in the test program seem to compile fine when I take away the `send_command' statements.
Therefore, it seems this time the problem lies in the dependencies to libusb which are not correctly addressed.
You managed to compile the program from the USBMicro site, if I understood well, therefore the problem is on my side, I reckon...
I am (have been) working on that, but if you have a hint, I would be grateful!
I bet the crosscompiling step will be even tougher (I already managed to crosscompile with buildroot other programs on a couple of platforms, but libusb so far is the one giving me headaches... I am not 'that' experienced and when things get bumpy for any reason I get lost).
Thank you again!