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

Re: Building user applications with thread library



On Thu, 2009-04-30 at 19:27 +0200, Martin Fuzzey wrote:
> >
> > Hello Martin,
> > I tried to compile testusb (http://www.linux-usb.org/usbtest/testusb.c)
> > as well as you did (good news, I got the USB driver working):
> >
> > hoefle@wks02-lin:/mnt/ext3_data/projects/hasler/emdebian_eval/testusb$
> > arm-linux-gnu-gcc -Wall -g -lpthread -o testusb testusb.c
> > In file included from /usr/arm-linux-gnu/include/errno.h:36,
> >                 from testusb.c:27:
> > /usr/arm-linux-gnu/include/bits/errno.h:25:26: error: linux/errno.h: No
> > such file or directory
> > In file included from /usr/arm-linux-gnu/include/sys/ioctl.h:27,
> >                 from testusb.c:33:
> > /usr/arm-linux-gnu/include/bits/ioctls.h:24:24: error: asm/ioctls.h: No
> > such file or directory
> > testusb.c:34:32: error: linux/usbdevice_fs.h: No such file or directory
> > testusb.c:60: error: expected specifier-qualifier-list before ‘__u8’
> > testusb.c: In function ‘is_testdev’:
> > .
> > .> .
> >
> > Do I miss something? Don't I have to specify at least the kernel
> > headers?
> >
> >>
> 
> emsetup should have installed everything you need.
> I have the files you are missing
> 
> (lenny)mfuzzey@sisncf-test-dom0:~$ dpkg -S
> /usr/arm-linux-gnu/include/linux/errno.h
> linux-libc-dev-arm-cross: /usr/arm-linux-gnu/include/linux/errno.h
> 
> I didn't install that package by hand,   emsetup --arch arm   did it for me :)
> 
> Martin

That does the trick! I thought I had everything configured by using
dpkg-reconfigure dpkg-cross and selecting arm.
You are using USB as well obviously :-)
Have you managed to get the usbutils running on your ARM crush device?
It would be handy for the lsusb command.


Reply to: