On Tue, Oct 12, 2010 at 7:10 AM, Michael Hoyt <[email protected]> wrote:

> On Mon, Oct 11, 2010 at 10:05 PM, Vitus Jensen <[email protected]> wrote:
>
>> On Sat, 9 Oct 2010, Michael Hoyt wrote:
>>
>>  I am trying to compile a small application that requires libusb on an
>>> BeagleBoard Angstrom installation.  I am running into trouble not finding
>>> usb.h.
>>> My suspicions are that I need libusb-dev installed but I don't see
>>> that as an available package for Angstrom.
>>>
>>> What are my options at this point?  Cross compile on a host or am I
>>> not looking in the right place for the usb.h file?
>>>
>>
>> The libusb situation isn't that easy :-D
>>
>> There are three recipes which could provide you with a usable header:
>>
>> libusb which creates a libusb-0.1-dev package
>> libusb-compat which creates the same package but depends on libusb1
>> libusb1 creates a libusb-1.0-dev package
>>
>> As you seem to use legacy API (see http://www.libusb.org/) libusb or
>> libusb-compat are your options.  Your distro should have made the selection
>> for you, there is a virtual for this selection:
>>
>>   bitbake virtual/libusb0
>>
>> Vitus
>>
>> PS: if anyone is trying libusb with big-endian machines, port to libusb1.
>> libusb-0.1 has endian-problems.
>
>
> Thanks for the reply.
>
> I actually got it to work this way:
> - I copied usb.h from a 10.4 Ubuntu (libusb-dev) installation to
> /usr/include on
> Angstrom/Beagleboard
> - I created a symbolic link for the libusb.so: ln -s /usr/lib/
> libusb-0.1.so.4.4.4 libusb.so
>
> The installed versions of libusb on both system was the same so I figured
> the API should be identical.  Both are using what you are referring to as
> the legacy version.  I realize this is a pretty unorthodox way to do this.
>  How would one go about getting a libusb-dev package for Angstrom?
>
> Mike
>
> I've since discovered the reason why there was no libusb-dev package, I
hadn't actually run:
# opkg update

Probably something a wise person should do before chasing rabbits down holes
like this.

I now have a legitimate installation of libusb-dev.

Thanks again for the insight.
_______________________________________________
Angstrom-distro-users mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to