discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] anyone else having trouble compiling fusb_linux.c


From: Larry Doolittle
Subject: Re: [Discuss-gnuradio] anyone else having trouble compiling fusb_linux.cc?
Date: Thu, 8 Sep 2005 12:47:02 -0700
User-agent: Mutt/1.5.10i

On Thu, Sep 08, 2005 at 11:04:33AM -0700, Larry Doolittle wrote:
> 
> I have my code compiling, but it required major surgery.
> I haven't tested its operation yet, but I'm optimistic.

I can confirm this approach works.  I haven't given it
exhaustive tests, but in the 6-12 MB/s range "it works
for me" just the way it used to under debian sarge.

To try it out yourself:
  apply the fusb_linux.cc patch from my previous e-mail
  grab linux.h from libusb_0.1.10a
     (debian users can just "apt-get source libusb")
     and put it in usrp/host/lib/libusb_linux.h
  disable linux/usbdevice_fs.h checking in config/usrp_fusb_tech.m4
     (patch appended)
  bootstrap, configure, make install, test

It is normally considered proper to avoid direct reference to
kernel header files.  The practical problem is tracking changes
to the interface, but I suppose the libusb folk can do that for us.

       - Larry


--- /home/ldoolitt/cvs/usrp/config/usrp_fusb_tech.m4    2005-09-08 
08:34:54.000000000 -0700
+++ usrp_fusb_tech.m4   2005-09-08 11:43:57.000000000 -0700
@@ -27,19 +27,9 @@
                [cf_with_fusb_tech="$target_os"])
        
 
-  AC_CHECK_HEADER([linux/usbdevice_fs.h],
-       [x_have_usbdevice_fs_h=yes],
-       [x_have_usbdevice_fs_h=no])
-
   AC_MSG_CHECKING([for fast usb technique to use])
   case "$cf_with_fusb_tech" in
-    linux*)    if test x${x_have_usbdevice_fs_h} = xyes;
-               then
-                 FUSB_TECH=linux
-                else
-                 FUSB_TECH=generic
-               fi                      ;;
-
+    linux*)    FUSB_TECH=linux         ;;
     darwin*)   FUSB_TECH=darwin        ;;
     cygwin*|win*|mingw*)       FUSB_TECH=win32         ;;
     *)         FUSB_TECH=generic       ;;

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]