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

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

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

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.