Cmake and Fedora 20

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”.

“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
[email protected]
Discuss-gnuradio Info Page


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

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


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

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

On Fri, Jun 13, 2014 at 5:48 PM, Sid B. [email protected]
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

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