# Cmake / Could not find a package configuration file provided by "Gnuradio"

**URL:** <https://www.ruby-forum.com/t/cmake-could-not-find-a-package-configuration-file-provided-by-gnuradio/231874>\
**Category:** GNU Radio\
**Created:** [September 3, 2014, 7:50pm UTC](https://www.ruby-forum.com/t/cmake-could-not-find-a-package-configuration-file-provided-by-gnuradio/231874 "2014-09-03T19:50:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 3, 2014, 7:50pm UTC](https://www.ruby-forum.com/t/cmake-could-not-find-a-package-configuration-file-provided-by-gnuradio/231874/1 "2014-09-03T19:50:35Z")

</div>

Hi,

I’ve recently installed gnuradio (3.7.2.1, through apt-get install) on  
my Ubuntu 14.04.

I’d like now to build gr-baz, but cmake returns the following errors:

```
 ~/SDR/gr-baz/build$ cmake ..
 -- Build type not specified: defaulting to release.
 -- Boost version: 1.54.0
 -- Found the following Boost libraries:
 -- system
 -- thread
 CMake Warning at CMakeLists.txt:132 (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” 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.

```
 CMake Error at CMakeLists.txt:135 (message):
   GnuRadio Core required to compile baz

 -- Configuring incomplete, errors occurred!

```

I couldn’t find gnuradio’s cmake files mentioned above. I get the same  
error while trying to build gr-osmosdr.

Would appreciate any help!

Thanks

Dimitri

---

<div class="post-metadata">

**Author:** ![Dimitri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Dimitri](https://www.ruby-forum.com/u/Dimitri)\
**Post date:** [September 3, 2014, 10:26pm UTC](https://www.ruby-forum.com/t/cmake-could-not-find-a-package-configuration-file-provided-by-gnuradio/231874/2 "2014-09-03T22:26:37Z")

</div>

Hi Dimitri - I’m not sure the GR cmake files are being installed in that  
version of GR. On Linux by default, these files will be installed into  
“${prefix}/lib/cmake/gnuradio/”, and there will be one called  
“GnuradioConfig.cmake”. gr-baz does not provide this specific file, and  
if the specific GR version does not either then it’s no wonder CMake is  
erroring out. Is there any way to install a newer version of GR? - MLD

---

<div class="post-metadata">

**Author:** ![Dimitri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Dimitri](https://www.ruby-forum.com/u/Dimitri)\
**Post date:** [September 4, 2014, 7:37am UTC](https://www.ruby-forum.com/t/cmake-could-not-find-a-package-configuration-file-provided-by-gnuradio/231874/3 "2014-09-04T07:37:54Z")

</div>

Hi Michael,  
Thanks for your answer. I actually tried to build the latest version  
from the git repo, but it stopped at 98% with the following errors:  
[98%] Building CXX object  
gr-dtv/lib/CMakeFiles/gnuradio-dtv.dir/atsc/atsc\_viterbi\_decoder\_impl.cc.o  
Linking CXX shared library libgnuradio-dtv-3.7.6git.so  
/usr/bin/ld: cannot find -lgnuradio-analog  
/usr/bin/ld: cannot find -lgnuradio-filter  
collect2: error: ld returned 1 exit status  
Couldn’t find out what I’m missing. I have libgnuradio-digital3.7.2.1  
installed but I don’t know if that’s the one.
