Pupusa
Pupusa

Reputation: 197

cmake for GNU Radio tutorial

I was trying to follow a tutorial on building the signal processing block on the gnuradio website: http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules.

However, when it comes to the step where it requires me to use CMake, the terminal is complaining that

package cppunit is not found  checking for module 'cppunit'
--   package 'cppunit' not found
-- Could NOT find CPPUNIT (missing:  CPPUNIT_INCLUDE_DIRS) 
CMake Error at CMakeLists.txt:101 (message):
  CppUnit required to compile howto

I have tried command such as sudo apt-get cppunit.

Upvotes: 2

Views: 6936

Answers (5)

Barry Duggan KV4FV
Barry Duggan KV4FV

Reputation: 311

That tutorial is very out of date! I suggest following https://wiki.gnuradio.org/index.php/Tutorials

Upvotes: 0

Michel
Michel

Reputation: 28349

You need libcppunit-dev, which is a library for C++ unit testing:

sudo apt install libcppunit-dev

Upvotes: 5

Ralph Lauren
Ralph Lauren

Reputation: 11

In fedora, try:

sudo dnf install cppunit-devel

In ubuntu, try:

sudo dnf install cppunit-dev

Upvotes: 1

ch3ll0v3k
ch3ll0v3k

Reputation: 334

If you using Debian, then will output usefull info

apt-get cache search libcppuint

libcppunit-1.12-1 - Unit Testing Library for C++
libcppunit-subunit-dev - SubunitTestProgressListener for CPPUnit - Development headers
libcppunit-subunit0 - SubunitTestProgressListener for CPPUnit - C++ shared library
libcppunit-1.13-0 - Unit Testing Library for C++
libcppunit-dev - Unit Testing Library for C++
libcppunit-doc - Unit Testing Library for C++

Upvotes: 0

Marcus Müller
Marcus Müller

Reputation: 36442

As @moggi mentioned, you need to install the cppunit development package for your distribution.

What's more important, that guide is currently becoming outdated; I'd advise you to follow the new Guided Tutorials. Also, if you build GNU Radio from source yourself by using PyBombs, it will a) automatically build the newest and greatest version of GNU Radio from source, and will b) automatically install all the build dependencies for you. Please make sure to uninstall all GNU Radio (and uhd, if any) packages that you've installed using your distribution, first.

Upvotes: 0

Related Questions