1.1. 构建说明

1.1.1. 依赖

全局依赖

Python

构建文档

grc: The GNU Radio Companion

gr-wavelet:小波变换

gsl (>= 1.10) http://gnuwin32.sourceforge.net/packages/gsl.htm

gr-qtgui: QT图形接口

qt4 (>= 4.4.0) http://qt.nokia.com/downloads/ qwt (>= 5.2.0) http://sourceforge.net/projects/qwt/ pyqt (>= 4.10.0) http://www.riverbankcomputing.co.uk/software/pyqt/download

gr-wxgui: WX图形接口

wxpython (>= 2.8) http://www.wxpython.org/ python-lxml (>= 1.3.6) http://lxml.de/

gr-audio: 语音子系统

audio-alsa (>= 0.9) http://www.alsa-project.org audio-jack (>= 0.8) http://jackaudio.org/ portaudio (>= 19) http://www.portaudio.com/ audio-oss (>= 1.0) http://www.opensound.com/oss.html audio-osx audio-windows

额外推荐的依赖

uhd: The Ettus USRP Hardware Driver Interface

gr-video-sdl: PAL and NTSC display

gr-comedi: Comedi hardware interface

gr-log: Logging Tools (Optional)

1.1.2. 构建

GNURadio使用的是Cmake的构建系统,标准的构建过程是:

$ mkdir $(builddir)
$ cd $(builddir)
$ cmake [OPTIONS] $(srcdir)
$ make
$ make test
$ sudo make install

$(builddir)通常是$(srcdir)/build,是代码构建后的目录。

CMake的选项

CMake的选项用来指定那些不会被自动化找到的,需要依赖的库和include,(-DCMAKE_PREFIX_PATH)。或者,设置安装目录(-DCMAKE_INSTALL_PREFIX=(dir))。