installing from source

First, install all required packages:

  • sudo aptitude install build-essential subversion automake libtool fort77 python-dev swig libfftw3-dev libcppunit-dev libboost1.38-dev libsdl1.2-dev python-wxgtk2.8 sdcc libusb-dev python-numpy guile-1.8 libgsl0-dev libqt3-mt-dev python-cheetah python-lxml libqwt5-qt4-dev libqwtplot3d-qt4-dev

Then checkout, configure, make & install the GnuRadio trunk:

  • svn co http://gnuradio.org/svn/gnuradio/trunk <FOLDER>
    (after the first time, replace “svn co” with “svn up”)
  • OR git clone http://gnuradio.org/git/gnuradio.git

choose components

I actually don’t need some of the stuff built by default, so the configure command I use is:

./configure --disable-gr-msdd6000 --disable-gr-audio-oss --disable-gr-cvsd-vocoder --disable-gr-gpio --disable-gr-radar-mono --disable-gr-radio-astronomy --disable-gr-pager --disable-gr-atsc

permissions

  • sudo addgroup usrp
  • sudo addgroup <YOUR_USERNAME> usrp
  • echo ‘ACTION==”add”, BUS==”usb”, SYSFS{idVendor}==”fffe”, SYSFS{idProduct}==”0002″, GROUP:=”usrp”, MODE:=”0660″‘ > tmpfile
  • sudo chown root.root tmpfile
  • sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules

broken libtool

  • Add a new line with /usr/local/lib to the file /etc/ld.so.conf
  • Run sudo ldconfig

OpenGL sinks

To enable OpenGL sinks,

  • install python-opengl
  • add the following to ~/.gnuradio/config.conf
[wxgui]
style=gl

binary .deb packages

  • Add deb http://gnuradio.org/ubuntu stable main contrib to your /etc/apt/sources.list
  • Remove any previous GnuRadio installation: sudo make uninstall (in the directory of the GSR source)
  • sudo aptitude update; sudo aptitude install gnuradio
  • sudo addgroup <USERNAME> usrp

References

  1. http://gnuradio.org/trac/wiki/UbuntuInstall
  2. http://gnuradio.org/trac/wiki/DebianPackages

2 Responses to “GnuRadio installation”

  1. silkenpy Says:

    If anyone need to use SWIG for Python, check my blog.
    http://silkenpy.wordpress.com/

    Thanks,

  2. azimout Says:

    It seems configuring the GNU Radio source code requires a Fortran compiler now. Strangely, the error message I was getting was “error: cannot find usable Python headers”. After installing fort77 (in Karmic), the error disappeared…
    Related discuss-gnuradio thread (though aimed at OS X):
    http://lists.gnu.org/archive/html/discuss-gnuradio/2009-08/msg00067.html

Leave a Reply

You must be logged in to post a comment.