Gnuradio howto compilation in ubuntu

NOTE: I would recommend using the build-gnuradio script, instead of this guide these days.

wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio

NOTE: However, the old guide is kept here just in case you want to try it yourself. This guide is useful is you want to compile your own gnuradio modules. (eg gr-howto-write-a-block). For plain gnuradio, it is probably better to install it via the ubuntu repository. (ie apt-get install gnuradio).
  • Packages required for building/compiling:
    sudo apt-get install autoconf automake libtool libcppunit-dev python-dev libboost-all-dev
    Packages required for building gnuradio-core:
    sudo apt-get install swig fftw3-dev libgruel-dev guile-1.8-dev libgsl0-dev sdcc libusb-dev
    Packages required for building GUI in gnuradio:
    sudo apt-get install libwxgtk2.8-dev python-wxgtk2.8 python-cheetah
    Set of non default programs for gettting gnuradio to compile (after the usual installation in ubuntu)
  • sudo apt-get install geany
    A nice editor for python and C++
  • sudo apt-get install git-core gitk git-gui
    Source code repository information
  • cd /path/to/gr-howto-write-a-block
    ./bootstrap
    ./configure --prefix=/usr
    make
    (Compile existing code)
  • make install (install code)

More advanced Gnuradio tasks

  • Install gnuradio from git (latest release) cd ~/Documents; git clone http://gnuradio.org/git/gnuradio.git
  • Configuring gnuradio (git version) cd gnuradio; ./bootstrap; ./configure --enable-gnuradio-core --enable-usrp --enable-gr-usrp --enable-gruel --enable-grc --prefix=/usr
  • Making gnuradio (git version)
    make
  • Configuring gr-howto-write-a-block
    cd gr-howto-write-a-block; ./bootstrap; ./configure --prefix=/usr
  • Making gr-howto-write-a-block
    make