Greetings.

Full disclosure: I am new to using LTIB and not an expert developing for Linux 
having done primarily Windows development over the years.

I have a DM3730 Torpedo + Wireless SOM from LogicPD that uses LTIB. I have 
managed to get the Ubuntu 10.04 LTS development environment setup, build a 
custom target image and add my own hellotorpedo-1.0 package to the image. All 
good so far. Now I am trying to get to work on the actual project which 
involves communicating with a USB device. Years ago, some summer interns wrote 
an application for the OLPC that used libusb to communicate with a similar USB 
device. I figured I would just use libusb for this current project, leveraging 
whatever code I could salvage from the OLPC project. I created a simple 
project, usbtest, to get started. Launching make from the LTIB shell resulted 
in the following (first) error:

usbtest.cpp:3:20: error: libusb.h: No such file or directory

Sure enough, a not even a find / -iname 'libusb.h' got any hits. Firing up 
./ltib -c I noticed that the libusb package has --- instead of [   ] or [ * ], 
so no way for me to add or remove it I guess?

Searching around I discovered some posts on the Ubuntu forums that mentioned 
doing an apt-get for libusb-1.0-X-dev instead of libusb-dev to use libusb for 
development, which I guess is another way of getting the headers. So perhaps 
the libusb package does not include the headers? It also appears to be the 
'old' version which does not support asynchronous I/O.

At this point, I have gone ahead and downloaded the libusbx (a supposedly more 
active fork of libusb) tarball. It has what I guess is a fairly standard 
./configure, make and make install workflow. I ran ./configure --host=arm-linux 
and that seemed to work. I ran make, and things compiled and linked 
successfully. But I am not sure what to do next. Running make install does what 
I suspected and tries to install things in Ubuntu, but I want it installed in 
my LTIB environment so I can have the shared archive pulled into target image 
and be able to compile and link my usbtest project against it. I took a look at 
the libusb.spec and I suspect using a libusbx.spec file is the proper way to do 
this, but I am not sure what all the steps are, particularly getting the 
headers and shared archive available for the usbtest project. How should I 
proceed?

Sorry for the lengthy description but I wanted to make sure I had enough detail.

Many thanks in advance for any help.

Regards,

Dale


________________________________
The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to