目录
1、安装UHD和GnuRadio依赖
2、安装UHD
3、安装UHD镜像
4、安装GnuRadio
5、查看版本并运行GnuRadio
6、卸载gnuradio
ppa安装方式,节省编译时间,不需要翻墙
1、安装UHD和GnuRadio依赖
sudo apt-get install autoconf automake build-essential ccache cmake cpufrequtils doxygen ethtool g++ git inetutils-tools libboost-all-dev libncurses5 libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev libusb-dev python3-dev python3-mako python3-numpy python3-requests python3-scipy python3-setuptools python3-ruamel.yaml
sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins python3-zmq python3-scipy python3-gi python3-gi-cairo gir1.2-gtk-3.0 libcodec2-dev libgsm1-dev pybind11-dev python3-matplotlib libsndfile1-dev python3-pip libsoapysdr-dev soapysdr-tools libiio-dev libad9361-dev libspdlog-dev
2、安装UHD
sudo add-apt-repository ppa:ettusresearch/uhd sudo apt-get update sudo apt-get install libuhd-dev libuhd4.1.0 uhd-host
第三行可指定版本,如sudo apt-get install libuhd-dev libuhd3.x.x uhd-host
3、安装UHD镜像
#安装镜像 sudo uhd_images_downloader #配置环境 sudo vim /etc/profile export UHD_IMAGES_DIR=/usr/share/uhd/images #查看版本 sudo uhd_find_devices
4、安装GnuRadio
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.X sudo apt-get update sudo apt install gnuradio
3.X为安装版本,可选3.7、3.8、3.9
5、查看版本并运行GnuRadio
gnuradio-config-info --version gnuradio-companion
6、卸载gnuradio
#删除ppa包 sudo add-apt-repository -r ppa:gnuradio/gnuradio-releases-3.9 #卸载gunradio sudo apt-get remove gnuradio