# Installing gr-ettus

**URL:** <https://www.ruby-forum.com/t/installing-gr-ettus/234564>\
**Category:** GNU Radio\
**Created:** [March 13, 2015, 6:57pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564 "2015-03-13T18:57:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 13, 2015, 6:57pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/1 "2015-03-13T18:57:04Z")

</div>

Hi,  
I’m trying to install gr-ettus on an E310.  
I previously installed a new version of UHD (to support RFNoC) in the  
directory /opt/uhd  
I would like to install gr-ettus into the existing version of gnuradio  
that  
is installed.

Inside the build directory of gr-ettus, when I type “cmake …/” I get  
the  
following message and error:  
– Found UHD: /usr/lib/libuhd.so  
CMake Error at CMakeLists.txt:108 (message):  
RFNoC not found.

When I had installed UHD, I followed the steps in [1], and made sure  
that  
the new libuhd.so was in my LD\_LIBRARY\_PATH and I added the new path to  
/etc/ld.so.conf; however, when I ran ldconfig I got the following error:  
ldconfig: /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it  
has  
the wrong magic bytes at the start.  
I had ignored that error, partly because I didn’t understand it, and  
partly  
because I had already updated the LD\_LIBRARY\_PATH variable. Was it a  
mistake to ignore it?

I welcome any advice on installing gnuradio out-of-tree modules (such as  
gr-ettus mentioned in [2]), and advice on managing different versions of  
UHD on the same system. I can’t seem to get the gr-ettus installation  
to  
look at the new version of UHD. Note: I am using the E310 Dizzy build  
[3].

Thanks!  
-ben

[1] [USRP Hardware Driver and USRP Manual: Building and Installing UHD from source](http://files.ettus.com/manual/page_build_guide.html)  
[2] [Home · EttusResearch/uhd Wiki · GitHub](https://github.com/EttusResearch/uhd/wiki/RFNoC:-Getting-Started)  
[3] [files.ettus.com:/e3xx\_images/beta/dizzy-test/](http://files.ettus.com/e3xx_images/beta/dizzy-test/)

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 7:13pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/2 "2015-03-13T19:13:53Z")

</div>

Ben,

you _must_ use the right branch of UHD (which I know you’ve been using).  
For cross-compiling, you need to make sure that _all_ the CMake vars  
starting with UHD\_ are correctly set.

Are you using our SDK? If yes, it’s probably pointing to the SDK’s  
default UHD.

M

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 8:10pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/3 "2015-03-13T20:10:13Z")

</div>

Martin,  
I am not using the SDK. The steps I have taken so far:  
Created a new SD card from the dizzy dev image found at [1].  
Followed the steps at [2] to clone the RFNoC git repository, switch to  
rfnoc-devel branch, build it, install it to /opt/uhd  
My next challenge was to install the gr-ettus OOT module to be able to  
use  
the RFNoC blocks in GRC.  
The dizzy image already had a previous install of UHD and GNU RADIO.  
For  
RFNoC I installed a new UHD with the RFNoC branch. I was hoping to add  
gr-ettus to the existing GNU RADIO install, to simplify things.  
I am doing all of this on the E310. Is this the right way to do it? I  
assumed that I didn’t need the SDK because I already had an SD image  
built.  
Thanks,  
-ben  
[1] [files.ettus.com:/e3xx\_images/beta/dizzy-test/](http://files.ettus.com/e3xx_images/beta/dizzy-test/)  
[2] [Home · EttusResearch/uhd Wiki · GitHub](https://github.com/EttusResearch/uhd/wiki/RFNoC:-Getting-Started)

On Fri, Mar 13, 2015 at 2:12 PM, Martin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 10:15pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/4 "2015-03-13T22:15:45Z")

</div>

I didn’t realize you were doing on this on the device. If you have all  
the PATHs set up correctly, you should be good, but it looks like you’re  
using the default UHD. Have a look at your CMake cache (in gr-ettus) and  
see where the UHD\_\* vars point to. They’re ‘advanced’ vars, in case you  
can’t see them immediately.

Cheers,  
M

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 10:18pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/5 "2015-03-13T22:18:17Z")

</div>

And you must have rfnoc-devel branch of UHD installed. This is not on  
the default image.

M

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 10:54pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/6 "2015-03-13T22:54:20Z")

</div>

On 03/13/2015 05:16 PM, Martin B. wrote:

> And you must have rfnoc-devel branch of UHD installed. This is not on  
> the default image.

Somewhere we have a toolchain file for cmake to build natively?  
Otherwise the default flags are for older arms and no neon.

Philip

---

<div class="post-metadata">

**Author:** ![Ben\_Lapointe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@Ben\_Lapointe](https://www.ruby-forum.com/u/Ben_Lapointe)\
**Post date:** [March 13, 2015, 11:06pm UTC](https://www.ruby-forum.com/t/installing-gr-ettus/234564/7 "2015-03-13T23:06:53Z")

</div>

I run gr-ettus on E300 all the time using the GNU Radio toolchain file.  
You have to set UHD\_INCLUDE\_DIRS and UHD\_LIBRARIES, though.

M
