[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] usrp compilation
From: |
Ramakrishnan Muthukrishnan |
Subject: |
[Discuss-gnuradio] usrp compilation |
Date: |
25 Dec 2003 23:01:42 +0530 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
I downloaded the USRP sources from the CVS.
When I compiled it, I noticed that compiler gives errors
for usr/include/linux/usbdevice_fs.h
__user etc are defined in linux/compiler.h, so that file
needs to be included before including linux/usbdevice_fs.h
The problem went away after doing this.
Now, it again gave an error:
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../../host/lib
-I../../firmware/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT fusb.lo
-MD -MP -MF .deps/fusb.Tpo -c fusb.cc -fPIC -DPIC -o .libs/fusb.o
fusb.cc: In function `usbdevfs_urb* alloc_urb(fusb_ephandle*, int, int, bool,
unsigned char*)':
fusb.cc:90: error: `USBDEVFS_URB_QUEUE_BULK' undeclared (first use this
function)
fusb.cc:90: error: (Each undeclared identifier is reported only once for each
function it appears in.)
The problem is that USBDEVFS_URB_QUEUE_BULK is depricated and
is not used in newer kernels (2.6.x) anymore. Please see
http://wuarchive.wustl.edu/pub/linux/kernel/people/gregkh/usb/2.5/usb-core-2.5.25.patch
(The author says this particular constant is UHCI-specific and is removed
entirely).
Debian ships kernel-headers of 2.5.x (i.e 2.6) in the unstable,
and hence I cannot compile usrp.
73
--
Ramakrishnan http://www.hackGNU.org/
Use Free Software -- Help stamp out Software Hoarding!
- [Discuss-gnuradio] usrp compilation,
Ramakrishnan Muthukrishnan <=