# Problems building GNURadio on Ubuntu 12.04LTS

**URL:** <https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344>\
**Category:** GNU Radio\
**Created:** [October 1, 2012, 2:40am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344 "2012-10-01T02:40:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 1, 2012, 2:40am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344/1 "2012-10-01T02:40:49Z")

</div>

G’day,

I’ve downloaded today’s sources and tried to build GNURadio on Ubuntu  
12.04LTS when I hit the following problem:

[85%] Built target pygen\_gr\_trellis\_src\_examples\_python\_cef97  
[85%] Building CXX object  
gr-uhd/lib/CMakeFiles/gnuradio-uhd.dir/gr\_uhd\_usrp\_source.cc.o  
In file included  
from  
/home/berndt/gnuradio/gnuradio/gr-uhd/include/gr\_uhd\_usrp\_source.h:25:0,

from /home/berndt/gnuradio/gnuradio/gr-uhd/lib/gr\_uhd\_usrp\_source.cc:22:  
/home/berndt/gnuradio/gnuradio/gr-uhd/include/gr\_uhd\_api.h:25:26: fatal  
error: uhd/config.hpp: No such file or directory  
compilation terminated.

Searching the source tree, there indeed is no config.hpp. Is this file  
generated during the configuration process?

73, Berndt  
VK5ABN

---

<div class="post-metadata">

**Author:** ![Berndt\_Josef\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7feea3/32.png) [@Berndt\_Josef\_W](https://www.ruby-forum.com/u/Berndt_Josef_W)\
**Post date:** [October 1, 2012, 2:44am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344/2 "2012-10-01T02:44:54Z")

</div>

On 09/30/2012 05:39 PM, Berndt Josef W. wrote:

> from /home/berndt/gnuradio/gnuradio/gr-uhd/lib/gr\_uhd\_usrp\_source.cc:22:  
> /home/berndt/gnuradio/gnuradio/gr-uhd/include/gr\_uhd\_api.h:25:26: fatal  
> error: uhd/config.hpp: No such file or directory  
> compilation terminated.
> 
> Searching the source tree, there indeed is no config.hpp. Is this file  
> generated during the configuration process?

I wonder how gnuradio got configured with uhd support? Thats actually  
the one file the FindUHD.cmake looks for to confirm the header location:

FIND\_PATH(  
UHD\_INCLUDE\_DIRS  
NAMES uhd/config.hpp  
HINTS $ENV{UHD\_DIR}/include  
${PC\_UHD\_INCLUDEDIR}  
PATHS /usr/local/include  
/usr/include  
)

Thats just the first header it encounters. Theres probably some  
installation issue. Can you post the ls /include/uhd/\*

-josh

---

<div class="post-metadata">

**Author:** ![Berndt\_Josef\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7feea3/32.png) [@Berndt\_Josef\_W](https://www.ruby-forum.com/u/Berndt_Josef_W)\
**Post date:** [October 1, 2012, 3:07am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344/3 "2012-10-01T03:07:41Z")

</div>

On Sun, 2012-09-30 at 17:43 -0700, Josh B. wrote:

> > In file included
> 
> )
> 
> Thats just the first header it encounters. Theres probably some  
> installation issue. Can you post the ls /include/uhd/\*

I didn’t have uhd installed and hence /usr/{local,}/include/uhd don’t  
exist.

Having said this, I had an older version installed, 3.5.2 if my memory  
serves me correctly, which was de-installed prior to updating and  
building the current source tree.

73, Berndt  
VK5ABN

---

<div class="post-metadata">

**Author:** ![Berndt\_Josef\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7feea3/32.png) [@Berndt\_Josef\_W](https://www.ruby-forum.com/u/Berndt_Josef_W)\
**Post date:** [October 1, 2012, 3:38am UTC](https://www.ruby-forum.com/t/problems-building-gnuradio-on-ubuntu-12-04lts/223344/4 "2012-10-01T03:38:38Z")

</div>

On Mon, 2012-10-01 at 10:36 +0930, Berndt Josef W. wrote:

> > ```
> > ${PC_UHD_INCLUDEDIR}
> > 
> > ```
> 
> Having said this, I had an older version installed, 3.5.2 if my memory  
> serves me correctly, which was de-installed prior to updating and  
> building the current source tree.

I’ve installed UHD and gnuradio builds fine.

Many thanks for your help and pointing me into the right direction.

73, Berndt  
VK5ABN
