Spending the whole day to build gnuradio on a Mac?

Mac OSX 10.10.4
gnuradio homebrew
Trying to get the SDPplay to work using gr-osmosdr

I tried an innocent brew install gnuradio. That went wrong on the fact
gnuradio was compiled against the homebrew python and when launched uses
the Darwin python as discussed here:
Fatal Python error: PyThreadState_Get: no current thread (Mountain Lion) · Issue #7 · titanous/homebrew-gnuradio · GitHub. Haven’t found a
good solution to that problem yet.

Then i used the workaround to export
DYLD_FRAMEWORK_PATH=/usr/local/lib:$DYLD_FRAMEWORK_PATH, uninstalled
gnuradio and installed it again. That went ok until i built gr-osmosdr
the ENABLE_NONFREE option. Then the problem came back again.

Then i tried to build gnuradio from source hoping it would use the
python and the problem would go away. That took a few hours only to
in the same error.

So i removed all the dependencies and built those from source as well.
when building gnuradio i get the following error:
==> cmake … -DCMAKE_PREFIX_PATH=/usr/local/Cellar/gnuradio/
==> make
==> make install
Error: No such file or directory - /usr/local/Cellar/gnuradio/

What’s going on? Is there not a relative simple way to build gnuradio on
Mac? I got all those problems while following the instructions on

Any suggestions would be appreciated,


Hi Ton - As always, I recommend using MacPorts to do your dirty work;
check out the GR install guide
http://gnuradio.org/redmine/projects/gnuradio/wiki/MacInstall . Once
‘port’ is installed, getting GR is as simple as “sudo port install

For sdrplay: If you check out the Gqrx forum, you’ll find a related
discussion here:
Redirecting to Google Groups . I offer a
patch for MacPorts’ gr-osmosdr port that installs sdrplay as an optional
variant. What the OP found is, and this is not a great surprise, is that
sdrplay isn’t really ready for OSX yet.

You can use Homebrew for GR, and a few folks I know do. I prefer to not
do that, because Homebrew installs into /usr/local, which is a standard
search path for most Unix-y tools & is prone to being found before other

I you want specific help, email me off list. Homebrew is not my
specialty, but I’ll do what I can.

Good luck! - MLD