# GNU Radio distribution and build from source

**URL:** <https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022>\
**Category:** GNU Radio\
**Created:** [May 27, 2014, 3:51pm UTC](https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022 "2014-05-27T15:51:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [May 27, 2014, 3:51pm UTC](https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022/1 "2014-05-27T15:51:37Z")

</div>

I think the distribution and build system needs some improvement.

I say that because a disproportionate amount of traffic on this list  
seems  
to pertain to building the software from source. It shouldn’t be this  
hard  
given the tools that are available.

Mike H., N4PLE

---

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [May 27, 2014, 4:14pm UTC](https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022/2 "2014-05-27T16:14:01Z")

</div>

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [May 27, 2014, 4:23pm UTC](https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022/3 "2014-05-27T16:23:24Z")

</div>

On Tue, May 27, 2014 at 10:12 AM, Marcus L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> o pybombs  
> Gnu Radio, like many modern pieces of software has a metric tonne of
> 
> So, short of the Gnu Radio project inventing their own,  
> yet-another-build-system, and ditching all the dependencies and writing  
> from “bare metal”, I’m not sure that the path forward would be any  
> different than what we have now.

And I agree that it /should/ be easy. But the thing is, I think that it  
/is/ easy. However… One issue is that the project has evolved a lot  
over  
its lifetime and a lot even in the past year. So that means that a)  
there’s  
a lot of bad information out there about working with older releases and  
b)  
people want the latest and greatest. So they try one thing, and it only  
gives them an older version, like 3.6, so they want to update. Without  
properly removing everything from their system, they try and build from  
scratch or use on of the build tools Marcus mention, which then causes  
conflicts. Many of the installation questions are really related to  
Linux  
and it just happens to be GNU Radio that’s causing them to run into  
these  
OS problems.

Tom

---

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [May 28, 2014, 1:53am UTC](https://www.ruby-forum.com/t/gnu-radio-distribution-and-build-from-source/230022/4 "2014-05-28T01:53:39Z")

</div>

On 27/05/14 15:21, Tom R. wrote:

> ```
> ?
> ? *some* of the "top" distributions "out there", but can't
> re-build all that functionality from "bare metal".? Modern software
> ? above?? Well, the folks who write our Cmake files cannot, as a
> 
> ```
> 
> Marcus mention, which then causes conflicts. Many of the installation
> 
> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)  
> Ubuntu supplies 3.7.2 for 14.04, Fedora 20 and openSUSE supply 3.7.3 but  
> I prefer to build my own.

I use SDR apps such as quisk, qsdr and ghpsdr3-alex which have quite a  
number of dependencies that help to reduce the number needed by  
gnuradio. I needed only about 4 to build the latest git on Fedora 20.

Once I have built those apps, especially ghpsdr3-alex which details a  
number of pre-reqs to be installed, it makes light work of building  
gnuradio.

I use 3 cmake scripts, one for x86\_64, one for Ubuntu x86\_64 and one for  
Ubuntu ARM.

# x86\_64 openSUSE and Fedora which use /usr/lib64

#!/bin/sh  
cmake -DPYTHON\_EXECUTABLE=/usr/bin/python2.7  
-DPYTHON\_INCLUDE\_DIR=/usr/include/python2.7  
-DPYTHON\_LIBRARY=/usr/lib64/libpython2.7.so -DCMAKE\_INSTALL\_PREFIX=/usr  
.

# Ubuntu x86\_64 which uses /usr/lib

#!/bin/sh  
cmake -DPYTHON\_EXECUTABLE=/usr/bin/python2.7  
-DPYTHON\_INCLUDE\_DIR=/usr/include/python2.7  
-DPYTHON\_LIBRARY=/usr/lib/libpython2.7.so -DCMAKE\_INSTALL\_PREFIX=/usr .

# ARM Ubuntu on Pandaboard, ODROID-X and Parallella-16.

#!/bin/sh  
cmake -DPYTHON\_EXECUTABLE=/usr/bin/python2.7  
-DPYTHON\_INCLUDE\_DIR=/usr/include/python2.7  
-DPYTHON\_LIBRARY=/usr/lib/libpython2.7.so -DCMAKE\_INSTALL\_PREFIX=/usr  
-DENABLE\_PYTHON=ON -DENABLE\_VOLK=ON -DENABLE\_GRC=ON ..

73 … Sid.
