Unable to build GNU Radio on Mac OS X 10.6.4 for USRP2

Hi,
I’m using Mac OS X 10.6.4 and I’m unable to build the USRP2
component on Mac OS X 10.6.4. I get the following error message when
running ./configure

checking whether host_os is linux*… no
configure: USRP2 currently requires Linux host OS, not found
Not building component usrp2.

Elvis D.

Dont blow up on me like the last guy… but the usrp2 gnuradio driver
uses a linux kernel-specific packet ring and will only build on linux.
Hence the error message that you saw.

However, the UHD uses userspace udp sockets and will build on macos and
windows as well. You may want to try:
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki

-Josh

Hi Josh,

On Jul 13, 2010, at 7:14 AM, Josh B. wrote:

Dont blow up on me like the last guy… but the usrp2 gnuradio driver uses a linux kernel-specific packet ring and will only build on linux. Hence the error message that you saw.

I run Fedora 12 x86 64-bit on a VMware image on Mac OS X anyway, so I’ll
switch over to Linux.

However, the UHD uses userspace udp sockets and will build on macos and windows as well. You may want to try: http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki

What’s the benefit of using UHD, at the moment? I thought that was
something that was being developed to better integrate with the National
Instruments hardware ecosystem.

Elvis D.

What’s the benefit of using UHD, at the moment? I thought that was something that was being developed to better integrate with the National Instruments hardware ecosystem.

Eventually it will incorporate all the hardware with full functionality
under one API. It currently supports only the USRP2 and most of the
dbords at the moment.

So currently the main benefits are:
using usrp2 on a non linux based OS
using usrp2 without gnuradio (not just NI)
controlling the dboard antennas (mentioned earlier)
individually controllable dboard gains
aligned receive in a mimo configuration

What we are missing in UHD that gr-usrp2 has:
DBSRX support
TVRX support

-josh

On Jul 12, 2010, at 10:03 PM, Elvis D. wrote:

Hi,
I’m using Mac OS X 10.6.4 and I’m unable to build the USRP2 component on Mac OS X 10.6.4. I get the following error message when running ./configure

checking whether host_os is linux*… no
configure: USRP2 currently requires Linux host OS, not found
Not building component usrp2.

Elvis D.

You will hear it all here or read it in the archive, but understand that
Gnuradio is not Mac friendly–or perhaps the Mac is not friendly to
Gnuradio.

I went through your same pain a few months ago, my solution: Parallels
running Ubuntu.

One of the major hurdles, even for the PC hardware + Linux drones, is
the Ethernet board. I have a pair of Ethernet ports that was standard on
the machine and the extra one works great with the exception of the
little dance that has to be done using the System Preferences app each
time the system is rebooted. In that app under Network, I have to go in
and turn flow-control off under the duplex pull-down in the advanced
settings. Other than that little issue it runs great. Of course, I have
a dual Quad core and Parallels is very good at letting the VM run almost
native.

If you get a different config working post it here, or better yet you
find the YBR to a Mac compilation. Most of us Mac users just lurk until
we see something.

Harley Myler

CONFIDENTIALITY: Any information contained in this e-mail (including
attachments) is the property of The State of Texas and unauthorized
disclosure or use is prohibited. Sending, receiving or forwarding of
confidential, proprietary and privileged information is prohibited under
Lamar Policy. If you received this e-mail in error, please notify the
sender and delete this e-mail from your system.

Hi,
Has anyone built the USRP2 UHD drivers for Mac OS X 10.6.x ?

Elvis D.

HI Harley,
I managed to get GNU Radio building off the git
repo a couple of hours ago and posted the steps back to the mailing
list:

http://old.nabble.com/Build-instructions-for-GNU-Radio-%2B-USRP2-%2B-WBX-on-Fedora-12-64-bit-VMware-image-td29147498.html

I used VMware Fusion 3.1.0, with Fedora 12 64-bit. The host hardware was
an iMac 27" i7 Quad core system with 4GB RAM.

I allocated with 8 CPUs to the Fedora VM and 2048GB RAM. The second
ethernet adapter was configured as a bridged ethernet network adapter.

Elvis D.

The driver is able to talk to the usrp2, however, I just noticed that
since i put the code in to resize the buffer, that mac osx gives error:
no buffer space available. There seems to a sysctl to resize the
incoming udp buffer size but it wont let me go as high as 50MB, and I
cant find a sysctl for the send buffer. I will probably put some code in
to conditionally disable the buffer resizing on mac until its figured out.

ok, i pushed that change public (disabling the automatic buffer resize).
I was able to run the benchmark at full rate on the macintosh-mini, and
despite the smaller buffer (whatever the default is) the performance
seems good.

I tried to set the socket buffer size limit to 50 MB with sysctl -w
kern.ipc.maxsockbuf but it wouldnt let me go over 5 MB (with a Result
too large error). Any macox/freebsd experts out there with an idea?

Thanks,
-Josh

Well, I have build it on the mac. I just used standard makefiles to
build. I got my dependencies from installable web packages and mac
ports. If you have installed gnuradio, then you probably have all the
dependencies. I didnt try the xcode project file generation with cmake.

The driver is able to talk to the usrp2, however, I just noticed that
since i put the code in to resize the buffer, that mac osx gives error:
no buffer space available. There seems to a sysctl to resize the
incoming udp buffer size but it wont let me go as high as 50MB, and I
cant find a sysctl for the send buffer. I will probably put some code in
to conditionally disable the buffer resizing on mac until its figured
out.

-Josh

Hi Josh,

On Jul 14, 2010, at 9:33 PM, Josh B. wrote:

Well, I have build it on the mac. I just used standard makefiles to build. I got my dependencies from installable web packages and mac ports. If you have installed gnuradio, then you probably have all the dependencies. I didnt try the xcode project file generation with cmake.

The driver is able to talk to the usrp2, however, I just noticed that since i put the code in to resize the buffer, that mac osx gives error: no buffer space available. There seems to a sysctl to resize the incoming udp buffer size but it wont let me go as high as 50MB, and I cant find a sysctl for the send buffer. I will probably put some code in to conditionally disable the buffer resizing on mac until its figured out.

When I run ./configure, usrp2 and gr-usrp2 doesn’t get built. What
should I do to get past this, since there is a check to see if the host
OS is linux, and it aborts building the usrp2 and gr-usrp2 components.

checking whether host_os is linux*… no
configure: USRP2 currently requires Linux host OS, not found
Not building component usrp2.
Component gr-usrp passed configuration checks; building.
Component gr-usrp2 requires usrp2, which is not being built or specified
via pre-installed files.
Not building component gr-usrp2.


The following components were skipped either because you asked not
to build them or they didn’t pass configuration checks:

gcell
usrp2
gr-usrp2
gr-gcell
gr-audio-alsa
gr-audio-oss
gr-audio-windows
gr-comedi
gr-qtgui

These components will not be built.

Configured GNU Radio release v3.3.1git-30-g278b6db3 for build.

Best regards,

Elvis D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs