USRP系列之GNURadio安装

GNURadio安装的方法:
1. 脚本安装(简单粗暴,但可能无效):
$ apt-get install gnuradio
2. 自行编译安装(较繁琐,但成功率高,推荐使用)
step:1 安装Ubuntu 12.04;

step:2 安装依赖:
sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig g automake autoconf
libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries libsdl1.2-dev python-wxgtk2.8 git-core guile-1.8-dev libqt4-dev python-numpy ccache python-opengl libgsl0-dev python-cheetah python-lxml doxygen qt4-dev-tools libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4
这个过程耗时很长。

step:3 下载源码:
GNURadio源码,在源码中选择你需要的版本,解压并保存在/home目录(推荐 gnuradio-3.4.2)

step:4 编译安装(此过程可能还需要安装依赖)
$ ./configure
$ make
$ make check
$ sudo make install

安装成功后会提示:


You my now run the make command to build these components. ********************************************************
The following components were skipped either because you asked not to build them or they didn’t pass configuration checks:
gcell
gr-gcell
gr-shd

These components will not be built.


对于gr-comedi则需要安装comedilib
$ sudo apt-get install libcomedi-dev
对于gr-uhd 则需要安装UHD
$ sudo git clone http://github.com/EttusResearch/UHD-Mirror.git
期间还可能需要安装audiolib
$ sudo apt-get install libaudio-dev

下一篇将会涉及USRP的配置和测试

你可能感兴趣的:(linux)