Professional Documents
Culture Documents
Install Gnuradio
Install Gnuradio
https://brmlab.cz/user/jenda/gnuradio
Install GNURadio ubuntu 14.04
## Ubuntu 14.04:
sudo apt-get install python-cheetah libboost-dev libboost-all-dev libfftw3-dev swig
# for GUI (optional)
mkdir build
cd build
cmake -DENABLE_DOXYGEN=OFF ..
# There is currently conflict with UHD and Boost in Debian Sid. Use
-DENABLE_GR_UHD=OFF
# if you don't need UHD and have problems with linking.
make
# if you have enought RAM (8GiB +) you can make it much faster
# make -j 4
sudo make install
cd ../..
https://wiki.gnuradio.org/index.php/UbuntuInstall
Dependencies GNURadio Trusty Tahr (14.04)
sudo apt-get -y install git-core cmake g++ python-dev swig \
pkg-config libfftw3-dev libboost1.55-all-dev libcppunit-dev libgsl0-dev \
libusb-dev libsdl1.2-dev python-wxgtk2.8 python-numpy \
python-cheetah python-lxml doxygen libxi-dev python-sip \
libqt4-opengl-dev libqwt-dev libfontconfig1-dev libxrender-dev \
python-sip python-sip-dev
Then set the following environmental variable to use PyQT:
export PYTHONPATH=/opt/qt/lib/python2.7/dist-package
cd gnuradio
mkdir build
cd build
cmake ../
make
Notes:
If you want to use GNU Radio with a USRP, see UHD instructions
By default GNU Radio will be installed under /usr/local - for installing in a
custom directory see this section
After successful build you should run the GNU Radio software self-check (does not
require USRP):
make test
If any test or tests do not work, GNU Radio might still function properly, but it
might be wise to look in the email archives for a fix or to write the email list.
If writing to the email list, please include the OS type, OS version, and CPU type
(e.g. via "uname -a"), anything special about the computer hardware, software
versions (gcc, g++, swig, sdcc, etc) and how installed (standard or non-standard
package, source). You can find some useful tips for asking questions under
Reporting Errors.
$ mkdir build
$ cd build
$ cmake ../
$ make && make test
$ sudo make install
This will perform all configuration checks and select for build, test, and
installation all components that pass.
The autotools build chain (using bootstrap, configure etc.) was replaced by CMake,
in case you were wondering.
Common configuration options
The previous commands might work out of the box, but perhaps you have to tell cmake
more information to make it work.
Here's the most common switches:
-DENABLE_GR_XXX=ON This enables (or disables for =OFF) the GNU Radio component
named XXX. You might not need all of them, and this way, you can compile quicker.
-DCMAKE_INSTALL_PREFIX=XXX Install your stuff to XXX.
-DQWT_INCLUDE_DIRS=/usr/include/qwt5 On some distros, cmake has trouble finding
QWT. This solves it.
-DCMAKE_BUILD_TYPE=Debug This causes gcc to add debug symbols to all binaries.
Useful for debugging (otherwise, it decreases efficiency!)
If you use a cmake GUI, such ccmake or cmake-gui, it will prompt you with all the
options (no need to learn them by heart).
2) If you got the code through git, restore the original git files from any added
files during an old build:
$ git clean -d -x -f
Then you can configure, make, etc. Careful: this really nukes any changes you made.
https://wiki.gnuradio.org/index.php/InstallingGRFromSource
Using the build-gnuradio script
If you're using PyBOMBS, don't use this.
The build-gnuradio is an install script for recent Fedora and Ubuntu systems
provided by Marcus Leech.
The build-gnuradio script has a number of options that we can use to install
different versions of GNU Radio. Just running build-gnuradio with no additional
options, it fetches/builds the latest released version from the 3.7 series.
Passing the flag -o will fetch and build the latest in the old 3.6 series.
For the impatient: open a terminal window, move to the directory you would like the
source files to be stored (e.g. 'cd src/'), remove old build-gnuradio file, and run
this command:
Thanks to Marcus Leech for putting this together and hosting it.