# Cmake and Fedora 20

**URL:** <https://www.ruby-forum.com/t/cmake-and-fedora-20/230370>\
**Category:** GNU Radio\
**Created:** [June 13, 2014, 4:47pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370 "2014-06-13T16:47:36Z")\
**Posts on this page:** 5\
**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:** [June 13, 2014, 4:47pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370/1 "2014-06-13T16:47:36Z")

</div>

Hello All,  
I’m working on the Out-of-Tree Module tutorial to ensure that my  
install of GNU Radio (3.7.3) on Fedora 20 (64bit) is working properly  
(as I am more accustomed to working on Ubuntu). Alas, when I run CMake  
on the tutorial code, I receive the following error. I believe it has  
something to do with setting the correct path to GNURadio and CMake, but  
I’m not entirely sure.

* * *

– Build type not specified: defaulting to release.  
– Boost version: 1.54.0  
– Found the following Boost libraries:  
– filesystem  
– system  
– checking for module ‘cppunit’  
– package ‘cppunit’ not found  
– Could NOT find CPPUNIT (missing: CPPUNIT\_INCLUDE\_DIRS)  
CMake Error at CMakeLists.txt:93 (find\_package):  
By not providing “FindGnuradio.cmake” in CMAKE\_MODULE\_PATH this  
project has  
asked CMake to find a package configuration file provided by  
“Gnuradio”,  
but CMake did not find one.

Could not find a package configuration file provided by “Gnuradio”  
(requested version 3.7.2) with any of the following names:

```
 GnuradioConfig.cmake
 gnuradio-config.cmake

```

Add the installation prefix of “Gnuradio” to CMAKE\_PREFIX\_PATH or set  
“Gnuradio\_DIR” to a directory containing one of the above files. If  
“Gnuradio” provides a separate development package or SDK, be sure it  
has  
been installed.

– Configuring incomplete, errors occurred!  
See also  
“/home/gnuradio/GRC\_Modules/gr-howto/build/CMakeFiles/CMakeOutput.log”.

---

<div class="post-metadata">

**Author:** ![fnguyen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fnguyen](https://www.ruby-forum.com/u/fnguyen)\
**Post date:** [June 13, 2014, 5:20pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370/2 "2014-06-13T17:20:15Z")

</div>

“yum install cppunit cppunit-devel”.  
Regards  
Sid.

On 13/06/14 15:46, fnguyen wrote:

> – Boost version: 1.54.0  
> “Gnuradio”,  
> “Gnuradio” provides a separate development package or SDK, be sure
> 
> Thanks in advance,  
> Francis Nguyen
> 
> * * *
> 
> 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)

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![fnguyen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fnguyen](https://www.ruby-forum.com/u/fnguyen)\
**Post date:** [June 13, 2014, 11:49pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370/3 "2014-06-13T23:49:54Z")

</div>

I just cloned a git version of gnuradio and those files are part of the  
source.  
slipstream:/usr/src/XXX/1/gnuradio # ls -l  
cmake/Modules/GnuradioConfig.cmake cmake/Modules/FindGnuradio.cmake  
-rw-r–r-- 1 root root 4805 Jun 13 21:11  
cmake/Modules/FindGnuradio.cmake  
-rw-r–r-- 1 root root 5551 Jun 13 21:11  
cmake/Modules/GnuradioConfig.cmake  
73 … Sid.

On 13/06/14 17:25, fnguyen wrote:

> > “yum install cppunit cppunit-devel”.  
> > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![fnguyen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fnguyen](https://www.ruby-forum.com/u/fnguyen)\
**Post date:** [June 13, 2014, 6:26pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370/4 "2014-06-13T18:26:40Z")

</div>

Hi Sid,  
Thanks for your help. It resolved the ‘Could not find CPPUNIT’ issue,  
but the errors that follow are still present (CMake Error…).

Thanks again,  
Francis

---

<div class="post-metadata">

**Author:** ![fnguyen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fnguyen](https://www.ruby-forum.com/u/fnguyen)\
**Post date:** [June 13, 2014, 11:57pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370/5 "2014-06-13T23:57:01Z")

</div>

On Fri, Jun 13, 2014 at 5:48 PM, Sid B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I just cloned a git version of gnuradio and those files are part of the  
> source.  
> slipstream:/usr/src/XXX/1/gnuradio # ls -l cmake/Modules/GnuradioConfig.cmake  
> cmake/Modules/FindGnuradio.cmake  
> -rw-r–r-- 1 root root 4805 Jun 13 21:11 cmake/Modules/FindGnuradio.cmake  
> -rw-r–r-- 1 root root 5551 Jun 13 21:11 cmake/Modules/GnuradioConfig.  
> cmake  
> 73 … Sid.

See this as well:

[http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig](http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig)

Make sure you’re setting up your project as discussed on that wiki. What  
Sid points out is that there is both a FindGnuradio and GnuradioConfig  
cmake script. The FindGnuradio is older and will be removed in the next  
version and we will only have the GnuradioConfig script from then on.

Tom
