UHD and GNURadio installation from sources with PyBombs » History » Version 3

Version 2 (ROQUE, Damien, 11/17/2014 07:21 PM) → Version 3/15 (ROQUE, Damien, 11/30/2014 08:36 PM)

h1. UHD and GNURadio installation

The UHD(Universal Hardware Driver) driver deploy a USRP(Universal Software Radio Peripheral) device. The development environment GNURadio is also recommended in order to provide several signal processing building blocks operating in a pseudo-real-time fashion.

This documentation explains how to install both "UHD":http://code.ettus.com/redmine/ettus/projects/uhd/wiki and "GNURadio":http://gnuradio.org from the sources with the help of the "PyBombs":http://gnuradio.org/redmine/projects/pybombs/wiki script.

h2. Downloading and configuring PyBombs pybombs

PyBombs is an unified installation system for GNURadio and its "out-of-tree" modules (including hardware drivers). We first download it through Git with an unprivileged user (but with @sudo@ permissions): <pre>
export http_proxy=http://host:port
export https_proxy=http://host:port
</pre>

<pre>
git clone https://github.com/pybombs/pybombs.git
</pre>

Run first the configuration of PyBombs as unprivileged user.
<pre>
cd pybombs && ./pybombs config
</pre>

The output should be something like this. Notice that since we chose @/usr/local@ as installation prefix, the configuration fails at the end of the process (it is normal).
<pre>
Username for GIT access
gituser [damien]:
Install Prefix
prefix [/home/damien/target]:/usr/local
Order in which to attempt installations when available, options are: src, rpm, deb
satisfy_order [deb,src]:
Comma separated list of package names to assume are already installed
forcepkgs []:
Comma separated list of package names to always build from source
forcebuild [gnuradio,uhd,gr-air-modes,gr-osmosdr,gr-iqbal,gr-fcdproplus,uhd,rtl-sdr,osmo-sdr,hackrf,gqrx,bladerf,airspy]:
Time the monitor thread waits (in seconds) before retrying downloads
timeout [30]:
CMAKE_BUILD_TYPE args to pass to cmake projects, options are: Debug, Release, RelWithDebInfo, MinSizeRel
cmakebuildtype [RelWithDebInfo]:
Build doxygen while compiling packages? options are: ON, OFF
builddocs [OFF]:
C Compiler Executable [gcc, clang, icc, etc]
cc [gcc]:
C++ Compiler Executable [g++, clang++, icpc, etc]
cxx [g++]:
Concurrent make threads [1,2,4,8...]
makewidth [4]:
done
Settled on prefix: /usr/local

[Errno 13] Permission denied: '/usr/local/lib64'
Error! Configured install prefix requires root privileges. Please re-run as sudo
</pre>

Rerun the configuration with @sudo@ and the intruction should end gracefully.
<pre>
sudo ./pybombs config
</pre>

Optionally, it is possible to define a maximum number a concurrent workers (it will be used by @make@).
<pre>
sudo ./pybombs config makewidth 2
</pre>

h2. Installing UHD and GNURadio from the sources

Run the installation of UHD and GNURadio with the following instruction (it might take one to several hours).
<pre>
sudo ./pybombs install uhd gnuradio
</pre>