第一步:安装Ubuntu16.04系统
第二步:更新源(清华源)
第三步:安装UHD+GNU所需的依赖包
sudo apt-get-y install git swig cmake doxygen build-essential libboost-all-devlibtool libusb-1.0-0libusb-1.0-0-devlibudev-devlibncurses5-devlibfftw3-bin libfftw3-devlibfftw3-doc libcppunit-1.13-0v5 libcppunit-devlibcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-devlibqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-devpython-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-devlibfftw3-doc ncurses-bin libncurses5 libncurses5-devlibncurses5-dbg libfontconfig1-devlibxrender-devlibpulse-devswig g++ automake autoconf libtool python-devlibfftw3-devlibcppunit-devlibboost-all-devlibusb-devlibusb-1.0-0-devfort77 libsdl1.2-devpython-wxgtk3.0git-core libqt4-devpython-numpy ccache python-opengl libgsl-devpython-cheetah python-mako python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-devlibqwt5-qt4-devlibqwtplot3d-qt4-devpyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-devgtk2-engines-pixbuf r-base-devpython-tk liborc-0.4-0liborc-0.4-devlibasound2-devpython-gtk2 libzmq-devlibzmq1 python-requests python-sphinx libcomedi-devpython-zmq
第四步:安装UHD-release_003_009_001
将下载好的UHD文件拷贝到指定目录下
复制uhd-release_003_009_001.zip到usr/local/share下
cd到下载好的uhd-release_003_009_001.zip文件夹下
拷贝到/usr/local/share/
cp uhd-release_003_009_001.zip /usr/local/share/
解压
unzip uhd-release_003_009_001.zip
解压后,cd到uhd-release_003_009_001文件夹下,执行如下步骤
cd host
mkdir
build
cd
build
cmake ../
完成以后,执行
make
测试编译结果,一般测试都会全部通过
make test
sudo make install
sudo ldconfig
回到主目录
cd
第五步:安装UHD images
将uhd-images_003.009.001-release.zip文件拷入到指定文件下
创建uhd文件夹
cd /usr/local/share
mkdir uhd
将下载好的uhd-images_003.009.001-release.zip文件拷贝到uhd文件夹下
cd 到zip文件作为位置
cp uhd-images_003.008.003-release.zip /usr/local/share/
解压
unzip uhd-images_003.009.001-release.zip
一路cd进去,找到images文件夹所在位置
cd uhd-images_003.008.003-release
cd share
cd uhd
拷贝
cp -r images /usr/local/share/uhd
至此UHD安装完成,测试输入
uhd_find_devices
第六步:配置usrp以太网
第七步:安装GUN Radio