USB development environment query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Linux USB developers,

I have an FC10 installation with libusb including, ...

lrwxrwxrwx 1 root root 19 2008-11-19 11:11 /usr/lib/libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
-rwxr-xr-x 1 root root 33428 2008-10-20 23:22 /usr/lib/libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root 21 2008-11-19 11:11 /usr/lib/libusbpp-0.1.so.4 -> libusbpp-0.1.so.4.4.4
-rwxr-xr-x 1 root root 19264 2008-10-20 23:22 /usr/lib/libusbpp-0.1.so.4.4.4

I had read an article that Greg wrote on using libusb to get userland code to discover/attach usb devices.

He had used a snippet including, ...
  usb_init();
  usb_find_busses();
  usb_find_devices();

  for (usb_bus = usb_busses; usb_bus; usb_bus = usb_bus->next) {
      for (dev = usb_bus->devices; dev; dev = dev->next) {
         if ((dev->descriptor.idVendor == VID) &&
             (dev->descriptor.idProduct == PID))
            return dev;

My target platform is the moblin platform. It has been my plan to write/compile my new code on FC10 and dynamically link with the libusb*.so.* on FC10, the copy my binary over to the moblin platform and run/debug there using the libusb*.so.* there. I am aware i need to sync up the os & library versions,
but this query is first.

I was cruising to build a minimal sample, calling the above initialization routines just to get started.

However, i run into my first problem when there isnt an <usb.h> under /usr/include.

i do find, ...
-rw-r--r-- 1 root root 4952 2009-03-23 19:54 /usr/include/linux/usbdevice_fs.h
/usr/include/linux/usb:
-rw-r--r--  1 root root  1702 2009-03-23 19:54 audio.h
-rw-r--r--  1 root root  6817 2009-03-23 19:54 cdc.h
-rw-r--r--  1 root root 18702 2009-03-23 19:54 ch9.h
-rw-r--r--  1 root root  2751 2009-03-23 19:54 gadgetfs.h
-rw-r--r--  1 root root  1321 2009-03-23 19:54 g_printer.h
-rw-r--r--  1 root root  3372 2009-03-23 19:54 midi.h

so, it seems like my notion of the usb development setup is flawed,
it looks like i am going to have to get the kernel tree that moblin is
using and build/link completely within that environment.

My question to this group is, is this latter assertion correct or is my initial notion is workable
with few links to the usb code i find under /usr/src/kernels/.../usb.h ??

Note too that my query is initially posted to this group rather than moblin as i have been assured that the usb stack hasnt been modified by moblin and the traffic on this mailing list seem to me to be the most
knowledgeable about usb in particular.

any all comments welcome, tia, jackc...

--
  jack craig
     jackc@xxxxxxxxxxxxxxxxxxx
        831-684-1375 (Office)
           831-596-6924 (cell)
              IM: jackcraigaptos (AIM)

_________________________________
This email has been ClamScanned !
    www.LinuxLightHouse.com
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux