Ubuntu18.04安装GNURadio3.8

1.系统版本为Ubuntu18.04,下载GNURadio3.8的版本,下载地址为:https://www.gnuradio.org/releases/gnuradio/。下载完成后解压。

2.官网安装教程链接:https://wiki.gnuradio.org/index.php/UbuntuInstall#Building_GNU_Radio_on_Ubuntu_Linux。安装前需要安装依赖库,对于18.04的版本依赖库如下:

Ubuntu18.04安装GNURadio3.8_第1张图片

sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy \
python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libcomedi-dev \
libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 \
liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins 

3.安装pip命令

sudo apt-get install python3-pip

4.先安装UHD的依赖库以及UHD,安装教程连接:http://files.ettus.com/manual/page_build_guide.html

sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils cmake build-essential
git clone git://github.com/EttusResearch/uhd.git

在下载好的文件夹中打开terminal,依次输入

cd host
mkdir build
cd build
cmake ../
make
make test
sudo make install
sudo ldconfig
export LD_LIBRARY_PATH=/usr/local/lib

5.配置和编译GNURadio

git clone --recursive https://github.com/gnuradio/gnuradio.git
cd gnuradio
mkdir build
cd build
cmake ../
make
make test
sudo make install

其中git clone是默认下载3.7版本的gnuradio,这里我们下好了3.8,就不需要执行第一句的git了。

cmake的可选参数:

cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio ../

表示安装到opt目录下,安装完成后需要在.bashrc文件中添加环境变量的路径:

gedit .bashrc

在文档中加入:

# GNU Radio installation
export PATH=$PATH:/opt/gnuradio/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gnuradio/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnuradio/lib/pkgconfig
export PYTHONPATH=$PYTHONPATH:/opt/gnuradio/lib/python2.7/dist-packages

 

 

 

 

 

 

 

你可能感兴趣的:(Ubuntu)