Gnuradio – OSX Installation Guide


I briefly mentioned previously about using gnu radio on Linux or OSX.  Today I will walkthough the installation process on OSX.

First install MacPorts if you have not already done so:

First install the rtl-sdr drivers:

port install gr-osmosdr

Now the latest version of gnuradio uses variants:

port info gnuradio
gnuradio @3.7.1 (science, comms)
Sub-ports: gnuradio-devel, gnuradio-next
Variants: debug, docs, full, grc, jack, orc, portaudio, python26,
[+]python27, qtgui, sdl, swig, uhd, universal, wavelet, wxgui
Description: GNU Radio Software Defined Radio (SDR): This port is
kept up with the
 GNU Radio release, which is typically updated every few months.
Build Dependencies: cmake
Library Dependencies: boost, cppunit, fftw-3-single, pkgconfig, python27, py27-numpy,
Runtime Dependencies: py27-scipy
Conflicts with: gnuradio-next, gnuradio-devel
Platforms: darwin, macosx
License: GPL-3

So if we issue:

port install gnuradio +full

All necessary packages and components will be installed!

You can now use gnuradio in Python and use gnuradio-companion.  To construct radio based programs

You can also  use GQRX, to visualise the radio spectrum to identify and tune into specific frequencies.


UPDATE: OSX Mavericks

Since the update to Mavericks GNURadio was temporarily broken, looking at the Macports Buglist the Team apparently had problems with swig and boost.  I can confirm that as of this weekend the problem has been rectified, and once again we can enjoy radio and playing with RTLSDRs on OSX Mavericks.

After upgrading Mavericks remember to perform the following:

  • Update Xcode to Verison 5.0.2+
  • Update Macoprts verision 2.2.1 (OS X 10.9 Mavericks)
  • For minimum support of MacPorts, you need the Command Line Tools, which can be installed using “xcode-select --install"
  • Run “sudo port update”
  • Then either:
    • “sudo port upgrade outdated”
    • If you have not install GNURadio before “sudo port install gnuradio +full”