UHD and GNURadio installation from sources with PyBombs » History » Version 3
ROQUE, Damien, 11/30/2014 08:36 PM
1 | 1 | ROQUE, Damien | h1. UHD and GNURadio installation |
---|---|---|---|
2 | 1 | ROQUE, Damien | |
3 | 3 | ROQUE, Damien | 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. |
4 | 1 | ROQUE, Damien | |
5 | 3 | ROQUE, Damien | 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. |
6 | 2 | ROQUE, Damien | |
7 | 3 | ROQUE, Damien | h2. Downloading and configuring PyBombs |
8 | 3 | ROQUE, Damien | |
9 | 3 | ROQUE, Damien | 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): |
10 | 1 | ROQUE, Damien | <pre> |
11 | 2 | ROQUE, Damien | git clone https://github.com/pybombs/pybombs.git |
12 | 2 | ROQUE, Damien | </pre> |
13 | 2 | ROQUE, Damien | |
14 | 3 | ROQUE, Damien | Run first the configuration of PyBombs as unprivileged user. |
15 | 2 | ROQUE, Damien | <pre> |
16 | 2 | ROQUE, Damien | cd pybombs && ./pybombs config |
17 | 2 | ROQUE, Damien | </pre> |
18 | 2 | ROQUE, Damien | |
19 | 3 | ROQUE, Damien | 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). |
20 | 2 | ROQUE, Damien | <pre> |
21 | 2 | ROQUE, Damien | Username for GIT access |
22 | 2 | ROQUE, Damien | gituser [damien]: |
23 | 2 | ROQUE, Damien | Install Prefix |
24 | 2 | ROQUE, Damien | prefix [/home/damien/target]:/usr/local |
25 | 2 | ROQUE, Damien | Order in which to attempt installations when available, options are: src, rpm, deb |
26 | 2 | ROQUE, Damien | satisfy_order [deb,src]: |
27 | 2 | ROQUE, Damien | Comma separated list of package names to assume are already installed |
28 | 2 | ROQUE, Damien | forcepkgs []: |
29 | 2 | ROQUE, Damien | Comma separated list of package names to always build from source |
30 | 2 | ROQUE, Damien | forcebuild [gnuradio,uhd,gr-air-modes,gr-osmosdr,gr-iqbal,gr-fcdproplus,uhd,rtl-sdr,osmo-sdr,hackrf,gqrx,bladerf,airspy]: |
31 | 2 | ROQUE, Damien | Time the monitor thread waits (in seconds) before retrying downloads |
32 | 2 | ROQUE, Damien | timeout [30]: |
33 | 2 | ROQUE, Damien | CMAKE_BUILD_TYPE args to pass to cmake projects, options are: Debug, Release, RelWithDebInfo, MinSizeRel |
34 | 2 | ROQUE, Damien | cmakebuildtype [RelWithDebInfo]: |
35 | 2 | ROQUE, Damien | Build doxygen while compiling packages? options are: ON, OFF |
36 | 2 | ROQUE, Damien | builddocs [OFF]: |
37 | 2 | ROQUE, Damien | C Compiler Executable [gcc, clang, icc, etc] |
38 | 2 | ROQUE, Damien | cc [gcc]: |
39 | 2 | ROQUE, Damien | C++ Compiler Executable [g++, clang++, icpc, etc] |
40 | 2 | ROQUE, Damien | cxx [g++]: |
41 | 2 | ROQUE, Damien | Concurrent make threads [1,2,4,8...] |
42 | 2 | ROQUE, Damien | makewidth [4]: |
43 | 2 | ROQUE, Damien | done |
44 | 2 | ROQUE, Damien | Settled on prefix: /usr/local |
45 | 1 | ROQUE, Damien | |
46 | 2 | ROQUE, Damien | [Errno 13] Permission denied: '/usr/local/lib64' |
47 | 2 | ROQUE, Damien | Error! Configured install prefix requires root privileges. Please re-run as sudo |
48 | 2 | ROQUE, Damien | </pre> |
49 | 2 | ROQUE, Damien | |
50 | 3 | ROQUE, Damien | Rerun the configuration with @sudo@ and the intruction should end gracefully. |
51 | 2 | ROQUE, Damien | <pre> |
52 | 2 | ROQUE, Damien | sudo ./pybombs config |
53 | 2 | ROQUE, Damien | </pre> |
54 | 2 | ROQUE, Damien | |
55 | 3 | ROQUE, Damien | Optionally, it is possible to define a maximum number a concurrent workers (it will be used by @make@). |
56 | 2 | ROQUE, Damien | <pre> |
57 | 1 | ROQUE, Damien | sudo ./pybombs config makewidth 2 |
58 | 1 | ROQUE, Damien | </pre> |
59 | 2 | ROQUE, Damien | |
60 | 2 | ROQUE, Damien | h2. Installing UHD and GNURadio from the sources |
61 | 1 | ROQUE, Damien | |
62 | 3 | ROQUE, Damien | Run the installation of UHD and GNURadio with the following instruction (it might take one to several hours). |
63 | 2 | ROQUE, Damien | <pre> |
64 | 3 | ROQUE, Damien | sudo ./pybombs install uhd gnuradio |
65 | 2 | ROQUE, Damien | </pre> |