这个好像是oai的依赖
sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin libfftw3-dev libfftw3-doc libcppunit-1.13-0v5 libcppunit-dev libcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git-core libqt4-dev python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq-dev libzmq1 python-requests python-sphinx libcomedi-dev python-zmq python-setuptools
安装uhd依赖
sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils cmake build-essential
下载需要的uhd版本,用了oai推荐的3.10,下载地址如下
http://files.ettus.com/binaries/uhd/uhd_003.010.001.001-release/
解压
tar uhd-3.10.1.1.tar.gz
进入目录
cd UHD_3.10.1.1_release/
执行以下命令
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
然后可能会报没有镜像的错误,让执行下面路径下的py文件,
进入下面目录
cd /usr/local/lib/uhd/utils/
执行
sudo ./uhd_images_downloader.py
然后查找设备
sudo uhd_find_devices
查看设备信息
sudo uhd_usrp_probe
(此条摘抄自参考博客2)
配置OAI默认路径。由于OAI默认的UHD安装路径是 /usr/include/,而我们安装的uhd路径可能不是这个。因此将安装好的UHD库移动到 /usr/include/ 即可。我这里是 从 /home/oai/uhd/UHD_3.10.1.1_release 到/usr/inlcude/
sudo mv /home/oai/uhd/UHD_3.10.1.1_release /use/include
参考博客
https://blog.csdn.net/atnanyang/article/details/52648093
https://blog.csdn.net/zh915648053/article/details/87867824