Installing gr-ettus

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
is installed.

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

When I had installed UHD, I followed the steps in [1], and made sure
the new was in my LD_LIBRARY_PATH and I added the new path to
/etc/; however, when I ran ldconfig I got the following error:
ldconfig: /usr/lib/ is not an ELF file - it
the wrong magic bytes at the start.
I had ignored that error, partly because I didn’t understand it, and
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
look at the new version of UHD. Note: I am using the E310 Dizzy build


[1] USRP Hardware Driver and USRP Manual: Building and Installing UHD from source
[2] Home · EttusResearch/uhd Wiki · GitHub


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.


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
the RFNoC blocks in GRC.
The dizzy image already had a previous install of UHD and GNU RADIO.
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
[2] Home · EttusResearch/uhd Wiki · GitHub

On Fri, Mar 13, 2015 at 2:12 PM, Martin B. [email protected]

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.


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


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.


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.