# Spending the whole day to build gnuradio on a Mac?

**URL:** <https://www.ruby-forum.com/t/spending-the-whole-day-to-build-gnuradio-on-a-mac/243019>\
**Category:** GNU Radio\
**Created:** [August 15, 2015, 4:57pm UTC](https://www.ruby-forum.com/t/spending-the-whole-day-to-build-gnuradio-on-a-mac/243019 "2015-08-15T16:57:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 15, 2015, 4:57pm UTC](https://www.ruby-forum.com/t/spending-the-whole-day-to-build-gnuradio-on-a-mac/243019/1 "2015-08-15T16:57:39Z")

</div>

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

I tried an innocent brew install gnuradio. That went wrong on the fact  
that  
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](https://github.com/titanous/homebrew-gnuradio/issues/7). 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  
with  
the ENABLE\_NONFREE option. Then the problem came back again.

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

So i removed all the dependencies and built those from source as well.  
Now  
when building gnuradio i get the following error:  
==\> cmake … -DCMAKE\_PREFIX\_PATH=/usr/local/Cellar/gnuradio/3.7.7.1  
-DENABLE\_DOXYGEN=Off -DCMAKE\_C\_COMPILER=clang -DCMAKE\_CXX\_COMPIL  
==\> make  
==\> make install  
Error: No such file or directory - /usr/local/Cellar/gnuradio/  
3.7.7.1/etc/gnuradio/conf.d/grc.conf

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

> **[GitHub - metacollin/homebrew-gnuradio: Latest dev build using OS X Yosemite...](https://github.com/metacollin/homebrew-gnuradio)**
>
> Latest dev build using OS X Yosemite 10.10's built in compiler, clang and llvm. Builds without issue or patches, complete with working GUI and docs if desired. - GitHub - metacollin/homebrew-g...

Any suggestions would be appreciated,

Ton.

---

<div class="post-metadata">

**Author:** ![Ton\_Machielsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9c0ed/32.png) [@Ton\_Machielsen](https://www.ruby-forum.com/u/Ton_Machielsen)\
**Post date:** [August 16, 2015, 3:40am UTC](https://www.ruby-forum.com/t/spending-the-whole-day-to-build-gnuradio-on-a-mac/243019/2 "2015-08-16T03:40:48Z")

</div>

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](http://gnuradio.org/redmine/projects/gnuradio/wiki/MacInstall) . Once  
‘port’ is installed, getting GR is as simple as “sudo port install  
gnuradio”.

For sdrplay: If you check out the Gqrx forum, you’ll find a related  
discussion here:  
[Redirecting to Google Groups](https://groups.google.com/forum/#!topic/gqrx/OtTNWVTTjFU) . 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  
paths.

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

Good luck! - MLD
