1.1. 构建说明¶
1.1.1. 依赖¶
全局依赖
- git http://git-scm.com/downloads
- cmake (>= 2.6.3) http://www.cmake.org/cmake/resources/software.html
- boost (>= 1.35) http://www.boost.org/users/download/
- cppunit (>= 1.9.14) http://freedesktop.org/wiki/Software/cppunit/
- fftw3f (>= 3.0.1) http://www.fftw.org/download.html
Python
- python (>= 2.5) http://www.python.org/download/
- swig (>= 1.3.31) http://www.swig.org/download.html
- numpy (>= 1.1.0) http://sourceforge.net/projects/numpy/files/NumPy/
构建文档
- doxygen (>= 1.5) http://www.stack.nl/~dimitri/doxygen/download.html
- latex* (>= 2.0) http://www.latex-project.org/
grc: The GNU Radio Companion
- Cheetah (>= 2.0) http://www.cheetahtemplate.org/
- pygtk (>= 2.10) http://www.pygtk.org/downloads.html
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
- uhd (>= 3.0.0) http://code.ettus.com/redmine/ettus/projects/uhd/wiki
gr-video-sdl: PAL and NTSC display
- SDL (>= 1.2.0) http://www.libsdl.org/download-1.2.php
gr-comedi: Comedi hardware interface
- comedilib (>= 0.8.1) http://www.comedi.org/
gr-log: Logging Tools (Optional)
- log4cpp (>= 1.0) http://log4cpp.sourceforge.net/
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))。