# No UHD blocks in GNURadio

**URL:** <https://www.ruby-forum.com/t/no-uhd-blocks-in-gnuradio/239900>\
**Category:** GNU Radio\
**Created:** [March 19, 2014, 12:29am UTC](https://www.ruby-forum.com/t/no-uhd-blocks-in-gnuradio/239900 "2014-03-19T00:29:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [March 19, 2014, 12:29am UTC](https://www.ruby-forum.com/t/no-uhd-blocks-in-gnuradio/239900/1 "2014-03-19T00:29:00Z")

</div>

I installed GNU on ubuntu 12.04 lts _before_ installing UHD from  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall](http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)  
by running the following commands:

sudo apt-get -y install git-core autoconf automake libtool g++  
python-dev swig   
pkg-config libboost1.48-all-dev libfftw3-dev libcppunit-dev libgsl0-dev  
  
libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy   
python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev  
  
libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev

git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git)  
cd gnuradio  
mkdir build  
cd build  
cmake …/  
make  
make test  
sudo make install

But I didn’t find UHD blocks when I open gnu by running  
“gnuradio-companion” in terminal.  
So I installed UHD from  
[http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio\_Linux](http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Linux)  
from  
the unstable repositories.

I wanted to check if the GNU & UHD are installed or not so I ran in  
terminal :  
dell@ubuntu:~$ dpkg -l uhd  
Desired=Unknown/Install/Remove/Purge/Hold  
|  
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend  
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)  
||/ Name Version  
Description  
++±==============================-==============================-============================================================================  
rc uhd 003.007.000-1-stable Ettus  
Research - USRP Hardware Driver

dell@ubuntu:~$ dpkg -l gnuradio  
No packages found matching gnuradio.

Does this mean that UHD is installed but GNU isn’t ?!! (THIS IS MY FIRST  
QUESTION)  
But I can run GNU from terminal , how it is written that No packages  
found!!

I decided to build again GNU after installing UHD so I ran “cmake…/”  
and  
“make” commands … But the output of "cmake …/ " shows that gr-uhd is a  
disabled component!! So I won’t find UHD blocks in GNU again. What can I  
do  
? (THIS IS MY SECOND QUESTION)  
Here is the output of cmake … Hope that anyone can help me 🙂 Thanks.

## dell@ubuntu:~/gnuradio/gnuradio/build$ sudo cmake …/ – Build type not specified: defaulting to release. – Extracting version information from git describe… – Compiler Version: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. – Compiler Flags: /usr/bin/gcc:::-O3 -DNDEBUG /usr/bin/c++:::-O3 -DNDEBUG – NO PERF COUNTERS – Minimum SWIG version required is 1.3.31

## – The build system will automatically enable all components. – Use -DENABLE\_DEFAULT=OFF to disable components by default.

## – Configuring python-support support… – Dependency PYTHONLIBS\_FOUND = TRUE – Dependency SWIG\_FOUND = TRUE – Dependency SWIG\_VERSION\_CHECK = TRUE – Enabling python-support support. – Override with -DENABLE\_PYTHON=ON/OFF

## – Configuring testing-support support… – Dependency CPPUNIT\_FOUND = TRUE – Enabling testing-support support. – Override with -DENABLE\_TESTING=ON/OFF

## – Configuring volk support… – Enabling volk support. – Override with -DENABLE\_VOLK=ON/OFF

## – Python checking for python \>= 2.5 – Python checking for python \>= 2.5 - found

## – Python checking for Cheetah \>= 2.0.0 – Python checking for Cheetah \>= 2.0.0 - found – checking for module ‘orc-0.4 \> 0.4.11’ – package ‘orc-0.4 \> 0.4.11’ not found – orc files (missing: ORC\_LIBRARY ORC\_INCLUDE\_DIR ORCC\_EXECUTABLE) – Compiler name: GNU – x86\* CPU detected – CPU missing xgetbv, Overruled arch avx – CPU missing cvtpi32\_ps, Overruled arch avx – ORC support not found, Overruled arch orc – CPU width is 64 bits, Overruled arch 32 – Available architectures: generic;64;3dnow;abm;popcount;mmx;sse;sse2;norc;sse3;ssse3;sse4\_a;sse4\_1;sse4\_2 – Available machines: generic;sse2\_64\_mmx;sse3\_64;ssse3\_64;sse4\_a\_64;sse4\_1\_64;sse4\_2\_64 – BUILTTYPERELEASE – Base cflags = -O3 -DNDEBUG – BUILD INFO ::: generic ::: GNU ::: -O3 -DNDEBUG – BUILD INFO ::: sse2\_64\_mmx ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 – BUILD INFO ::: sse3\_64 ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 – BUILD INFO ::: ssse3\_64 ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 – BUILD INFO ::: sse4\_a\_64 ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -msse4a -mpopcnt – BUILD INFO ::: sse4\_1\_64 ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 – BUILD INFO ::: sse4\_2\_64 ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt – Compiler Version: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. – Did not find liborc and orcc, disabling orc support… – Loading build date Tue, 18 Mar 2014 21:58:14 into constants… – Loading version 0.1 into constants… – Using install prefix: /usr/local – ENABLE\_GR\_LOG set to ON. – HAVE\_LOG4CPP set to False. – LOG4CPP\_LIBRARIES set to . – Could NOT find Sphinx (missing: SPHINX\_EXECUTABLE)

## – Configuring doxygen support… – Dependency DOXYGEN\_FOUND = YES – Enabling doxygen support. – Override with -DENABLE\_DOXYGEN=ON/OFF

## – Configuring sphinx support… – Dependency SPHINX\_FOUND = FALSE – Disabling sphinx support. – Override with -DENABLE\_SPHINX=ON/OFF

## – Configuring gnuradio-runtime support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency PYTHONINTERP\_FOUND = TRUE – Enabling gnuradio-runtime support. – Override with -DENABLE\_GNURADIO\_RUNTIME=ON/OFF – package ‘Ice-3.5’ not found – ICE 3.5 not found. Looking for 3.4 – package ‘Ice-3.4’ not found

## – Configuring gr-ctrlport support… – Dependency Boost\_FOUND = TRUE – Dependency SWIG\_FOUND = TRUE – Dependency SWIG\_VERSION\_CHECK = TRUE – Dependency ICE\_FOUND = – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Disabling gr-ctrlport support. – Override with -DENABLE\_GR\_CTRLPORT=ON/OFF – Loading build date Tue, 18 Mar 2014 21:58:15 into constants… – Loading version v3.7.2.1-195-g19d111e2 into constants… – TRY\_SHM\_VMCIRCBUF set to ON.

## – Configuring gr-blocks support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-blocks support. – Override with -DENABLE\_GR\_BLOCKS=ON/OFF

## – Python checking for python \>= 2.5 – Python checking for python \>= 2.5 - found

## – Python checking for Cheetah \>= 2.0.0 – Python checking for Cheetah \>= 2.0.0 - found

## – Python checking for lxml \>= 1.3.6 – Python checking for lxml \>= 1.3.6 - found

## – Python checking for pygtk \>= 2.10.0 – Python checking for pygtk \>= 2.10.0 - found

## – Python checking for numpy – Python checking for numpy - found

## – Configuring gnuradio-companion support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_PYTHON = ON – Dependency PYTHON\_MIN\_VER\_FOUND = TRUE – Dependency CHEETAH\_FOUND = TRUE – Dependency LXML\_FOUND = TRUE – Dependency PYGTK\_FOUND = TRUE – Dependency NUMPY\_FOUND = TRUE – Enabling gnuradio-companion support. – Override with -DENABLE\_GRC=ON/OFF

## – Configuring gr-fec support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-fec support. – Override with -DENABLE\_GR\_FEC=ON/OFF

## – Configuring gr-fft support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency FFTW3F\_FOUND = TRUE – Enabling gr-fft support. – Override with -DENABLE\_GR\_FFT=ON/OFF

## – Configuring gr-filter support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-filter support. – Override with -DENABLE\_GR\_FILTER=ON/OFF

## – Configuring gr-analog support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Enabling gr-analog support. – Override with -DENABLE\_GR\_ANALOG=ON/OFF

## – Configuring gr-digital support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FILTER = ON – Enabling gr-digital support. – Override with -DENABLE\_GR\_DIGITAL=ON/OFF

## – Configuring gr-atsc support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FEC = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-atsc support. – Override with -DENABLE\_GR\_ATSC=ON/OFF

## – Configuring gr-audio support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-audio support. – Override with -DENABLE\_GR\_AUDIO=ON/OFF – Found ALSA 1.0.25 – checking for module ‘jack’ – package ‘jack’ not found – checking for module ‘portaudio’ – package ‘portaudio’ not found – Could NOT find PORTAUDIO (missing: PORTAUDIO\_INCLUDE\_DIRS PORTAUDIO\_LIBRARIES) – checking for module ‘comedilib’ – package ‘comedilib’ not found

## – Configuring gr-comedi support… – Dependency COMEDI\_FOUND = – Dependency LINUX = TRUE – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Disabling gr-comedi support. – Override with -DENABLE\_GR\_COMEDI=ON/OFF

## – Configuring gr-channels support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-channels support. – Override with -DENABLE\_GR\_CHANNELS=ON/OFF

## – Configuring gr-noaa support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-noaa support. – Override with -DENABLE\_GR\_NOAA=ON/OFF

## – Configuring gr-pager support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-pager support. – Override with -DENABLE\_GR\_PAGER=ON/OFF – QWT Version: 5.2.2

## – Python checking for PyQt4 – Python checking for PyQt4 - found

## – Configuring gr-qtgui support… – Dependency Boost\_FOUND = TRUE – Dependency QT4\_FOUND = TRUE – Dependency QWT\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency PYTHONLIBS\_FOUND = TRUE – Dependency PYQT4\_FOUND = TRUE – Enabling gr-qtgui support. – Override with -DENABLE\_GR\_QTGUI=ON/OFF

## – Configuring gr-trellis support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_DIGITAL = ON – Enabling gr-trellis support. – Override with -DENABLE\_GR\_TRELLIS=ON/OFF – checking for module ‘uhd’ – package ‘uhd’ not found – Could NOT find UHD (missing: UHD\_LIBRARIES UHD\_INCLUDE\_DIRS)

## – Configuring gr-uhd support… – Dependency Boost\_FOUND = TRUE – Dependency UHD\_FOUND = FALSE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Disabling gr-uhd support. – Override with -DENABLE\_GR\_UHD=ON/OFF

## – Configuring gr-utils support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_PYTHON = ON – Enabling gr-utils support. – Override with -DENABLE\_GR\_UTILS=ON/OFF

## – Configuring gr-video-sdl support… – Dependency SDL\_FOUND = YES – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-video-sdl support. – Override with -DENABLE\_GR\_VIDEO\_SDL=ON/OFF

## – Configuring gr-vocoder support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-vocoder support. – Override with -DENABLE\_GR\_VOCODER=ON/OFF

## – Configuring gr-fcd support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_AUDIO = ON – Dependency LIBUSB\_FOUND = TRUE – Enabling gr-fcd support. – Override with -DENABLE\_GR\_FCD=ON/OFF

## – Configuring gr-wavelet support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency GSL\_FOUND = 1 – Enabling gr-wavelet support. – Override with -DENABLE\_GR\_WAVELET=ON/OFF

## – Python checking for wx \>= 2.8 – Python checking for wx \>= 2.8 - found

## – Python checking for numpy – Python checking for numpy - found

## – Configuring gr-wxgui support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_PYTHON = ON – Dependency NUMPY\_FOUND = TRUE – Dependency WX\_FOUND = TRUE – Enabling gr-wxgui support. – Override with -DENABLE\_GR\_WXGUI=ON/OFF

## – ###################################################### – # Gnuradio enabled components – ###################################################### – \* python-support – \* testing-support – \* volk – \* doxygen – \* gnuradio-runtime – \* gr-blocks – \* gnuradio-companion – \* gr-fec – \* gr-fft – \* gr-filter – \* gr-analog – \* gr-digital – \* gr-atsc – \* gr-audio – \* gr-channels – \* gr-noaa – \* gr-pager – \* gr-qtgui – \* gr-trellis – \* gr-utils – \* gr-video-sdl – \* gr-vocoder – \* gr-fcd – \* gr-wavelet – \* gr-wxgui

– ######################################################  
– # Gnuradio disabled components  
– ######################################################  
– \* sphinx  
– \* gr-ctrlport  
– \* gr-comedi  
– \* gr-uhd

---

<div class="post-metadata">

**Author:** ![Sara\_ChSSrif](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sara\_ChSSrif](https://www.ruby-forum.com/u/Sara_ChSSrif)\
**Post date:** [March 19, 2014, 12:47am UTC](https://www.ruby-forum.com/t/no-uhd-blocks-in-gnuradio/239900/2 "2014-03-19T00:47:43Z")

</div>

Sara,

The GNURadio installation tells you at the end of that long printout  
that  
it skipped over gr-uhd, which is the block you are looking for. This  
needs  
to be installed prior to installing GNURadio, so that way GNURadio knows  
of  
it’s existence and can properly build against it. Since you installed  
the  
UHD drivers after GNURadio, you need to uninstall and re-install  
GNURadio.  
This should fix your problem.

Based on the information provided above, cd to ~/gnuradio/gnuradio/build  
and run make uninstall followed by make and then sudo make install once  
more. You need to rebuild in order to get the gr-uhd features that  
weren’t  
built during the first install. To make this go a little faster, i’d  
recommend using the -j flag with make; I generally use the number of CPU  
cores I have + 1 ( if i’m on a quad core machine, I would call ‘make -j  
5’).

Michael B.

---

<div class="post-metadata">

**Author:** ![Sara\_ChSSrif](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sara\_ChSSrif](https://www.ruby-forum.com/u/Sara_ChSSrif)\
**Post date:** [March 19, 2014, 1:28am UTC](https://www.ruby-forum.com/t/no-uhd-blocks-in-gnuradio/239900/3 "2014-03-19T01:28:02Z")

</div>

On Tue, Mar 18, 2014 at 7:26 PM, Sara C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> |  
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend  
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)  
> ||/ Name Version  
> Description

++±==============================-==============================-============================================================================

> rc uhd 003.007.000-1-stable Ettus  
> Research - USRP Hardware Driver
> 
> dell@ubuntu:~$ dpkg -l gnuradio  
> No packages found matching gnuradio.

I think there are a few points of confusion here. First, you said that  
you tried to build GNU Radio before installing UHD, but I’m guessing  
that was a mistake since you show here that you’ve installed UHD. If  
you build GNU Radio before installing UHD, you shouldn’t expect it to  
know about UHD.

(Also, it’s “GNU Radio” and not just “GNU” – GNU refers to the  
bigger GNU project at [www.gnu.org](http://www.gnu.org).)

> Does this mean that UHD is installed but GNU isn’t ?!! (THIS IS MY FIRST  
> QUESTION)  
> But I can run GNU from terminal , how it is written that No packages found!!

When installing a project by hand like this, you are not using the  
Debian system, so there’s no reason it will be found by dpkg.

> I decided to build again GNU after installing UHD so I ran “cmake../” and  
> “make” commands .. But the output of "cmake ../ " shows that gr-uhd is a  
> disabled component!! So I won’t find UHD blocks in GNU again. What can I do  
> ? (THIS IS MY SECOND QUESTION)  
> Here is the output of cmake .. Hope that anyone can help me 🙂 Thanks.

That output tells you that it didn’t find the UHD library, which could  
be for many reasons.

I would recommend trying PyBOMBS to install GNU Radio instead:

[http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGRFromSource](http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGRFromSource)

Tom
