Discussion:
[Discuss-gnuradio] CMake Error
s***@comcast.net
2016-01-13 02:11:33 UTC
Permalink
Hello!

Wondering if anyone can comment on this error. I'm running Ubuntu 14.04 which I installed gnuradio using apt. The problem that I see is that it's looking for gnuradio version 3.7.2. This is the version that got installed when I used apt to install. Do I need to provide a path name back to gnuradio?? Any help would be appreciated. Thanks!!


-- Build type not specified: defaulting to release.
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- filesystem
-- system
CMake Error at CMakeLists.txt:94 (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!
Michael Dickens
2016-01-13 13:56:24 UTC
Permalink
Hi shortwavedude - You're trying to configure an OOT module, yes? (GNU
Radio internally would not look for itself, so this is the logical
conclusion. Which OOT module are you trying to build?) That error means
that this OOT module is looking for GR 3.7.2 or newer, and that cmake
can't find GR installed in the usual cmake locations (e.g.,
/usr/local/lib/cmake, /usr/local/share/cmake). Since I don't use Ubuntu,
I can't help much beyond advising the you use apt to search for
"gnuradio" and see what options come up, and maybe one of those will
include the cmake files. Maybe a "dev" version or something like that.
Hopefully one of the Linux / Ubuntu GR devs can chime in here with more
specific info. Hope this helps! - MLD
Wondering if anyone can comment on this error. I'm running Ubuntu 14.04 which I installed gnuradio using apt. The problem that I see is that it's looking for gnuradio  version 3.7.2.   This is the version that got installed when I used apt to install.  Do I need to provide a path name back to gnuradio??  Any help would be appreciated. Thanks!! 
-- Build type not specified: defaulting to release.
-- Boost version: 1.54.0
--   filesystem
--   system
  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"
    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!
s***@comcast.net
2016-01-13 15:27:08 UTC
Permalink
Michael,
 
Thanks for the response, I'm not a software developer so bear with me. Yes I'm using an OOT at https://github.com/kik/sdr-tv/blob/master/gr-ntsc/examples/ntsc.grc   which I would like to experiment with.  My thinking was to edit the CMakelists.txt??? that comes along with this gr-function to indicate where gnuradio is located but not sure if this is correct nor do I know the syntax to do this. Will perform a search to find out using apt or maybe locate?? then what?
 
I can say that if I run a python script in my home directory it can not import any gr classes but I can execute gnuradion_companion. Not sure if this helps. 
 
Still learning,
 
Thanks!
 

----- Original Message -----

From: "Michael Dickens" <***@ettus.com>
To: discuss-***@gnu.org
Sent: Wednesday, January 13, 2016 8:56:24 AM
Subject: Re: [Discuss-gnuradio] CMake Error

Hi shortwavedude - You're trying to configure an OOT module, yes? (GNU
Radio internally would not look for itself, so this is the logical
conclusion. Which OOT module are you trying to build?) That error means
that this OOT module is looking for GR 3.7.2 or newer, and that cmake
can't find GR installed in the usual cmake locations (e.g.,
/usr/local/lib/cmake, /usr/local/share/cmake). Since I don't use Ubuntu,
I can't help much beyond advising the you use apt to search for
"gnuradio" and see what options come up, and maybe one of those will
include the cmake files. Maybe a "dev" version or something like that.
Hopefully one of the Linux / Ubuntu GR devs can chime in here with more
specific info. Hope this helps! - MLD
Wondering if anyone can comment on this error. I'm running Ubuntu 14.04 which I installed gnuradio using apt. The problem that I see is that it's looking for gnuradio  version 3.7.2.   This is the version that got installed when I used apt to install.  Do I need to provide a path name back to gnuradio??  Any help would be appreciated. Thanks!! 
-- Build type not specified: defaulting to release.
-- Boost version: 1.54.0
--   filesystem
--   system
  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"
    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!
_______________________________________________
Discuss-gnuradio mailing list
Discuss-***@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Michael Dickens
2016-01-13 17:31:12 UTC
Permalink
No problems. As I said, I don't use Ubuntu right now so I'm a bit out of
the loop on these matters. Keep playing around & learn all you can! -
MLD

If you look in <
https://github.com/kik/sdr-tv/blob/master/gr-ntsc/CMakeLists.txt >,
lines 89-94 read:
{{{
# Search for GNU Radio and its components and versions. Add any
# components required to the list of GR_REQUIRED_COMPONENTS (in all
# caps such as FILTER or FFT) and change the version to the minimum
# API compatible version required.
set(GR_REQUIRED_COMPONENTS RUNTIME)
find_package(Gnuradio "3.7.2" REQUIRED)
}}}

When you run the "cmake" command using this source directory, cmake will
"execute" this file (CMakeLists.txt), which will do some other stuff
before this command, then when it gets to this command cmake will go off
and try to find GNU Radio 3.7.2 or newer.

The way this step works is that GNU Radio has already installed cmake
files somewhere, generally /usr/local/lib/cmake or
/usr/local/share/cmake; append "gnuradio" to one of those and you should
find files inside that directory if it is installed. For example, you
could execute the following to look for this directory via:
{{{
ls -lAF /usr/local/lib/cmake /usr/local/share/cmake
}}}
which will either list files / directories in those directories, or will
return "No such file or directory" if the directory does not exist.

I think in your case there will be listings inside at least one of those
locations, but "gnuradio" will not be found. I'm guessing that when you
do "sudo apt-get install gnuradio", you get the runtime parts of GNU
Radio -- those parts that you need for running scripts, but not files
for developing or building an OOT module on your own. I'm guessing you
need to do something like "sudo apt-get install gnuradio-dev" to get the
developer parts of GNU Radio.
Thanks for the response, I'm not a software developer so bear with me. Yes I'm using an OOT at https://github.com/kik/sdr-tv/blob/master/gr-ntsc/examples/ntsc.grc  which I would like to experiment with.  My thinking was to edit the CMakelists.txt??? that comes along with this gr-function to indicate where gnuradio is located but not sure if this is correct nor do I know the syntax to do this. Will perform a search to find out using apt or maybe locate?? then what?
I can say that if I run a python script in my home directory it can not import any gr classes but I can execute gnuradion_companion. Not sure if this helps. 
Still learning,
Loading...