installing from source
First, install all required packages:
- sudo aptitude install swig build-essential git-core automake libtool python-dev libfftw3-dev libcppunit-dev libboost-dev libusb-dev fort77 sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy guile-1.8 libqt4-dev python-numpy python-opengl libgsl0-dev python-cheetah python-lxml qt4-dev-tools libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools
Then checkout, configure, make & install the GnuRadio trunk
- git clone http://gnuradio.org/git/gnuradio.git
(after the first time, run git pull instead)
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
You need to create a group (“usrp”), add your user to it, and create a udev rule that permits users in the “usrp” group to access (r/w) the usrp device. The following series of commands does this:
sudo addgroup usrp
sudo addgroup `whoami` 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
Then make udev read the new rules (sudo udevadm control –reload-rules) or restart udev (sudo service udev restart).
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, 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
March 17, 2009 at 3:45 am
If anyone need to use SWIG for Python, check my blog.
http://silkenpy.wordpress.com/
Thanks,
August 22, 2009 at 12:41 pm
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