Ubuntu 18.04 uhd+gnuradio installation guide

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.14-0 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 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 libqwtplot3d-qt5-dev pyqt4-dev-tools python-qwt5-qt4 cmake git wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq3-dev libzmq5 python-requests python-sphinx libcomedi-dev python-zmq libqwt-dev libqwt6abi1 python-six libgps-dev libgps23 gpsd gpsd-clients python-gps python-setuptools
sudo apt-get -y install libgmp-dev
sudo apt-get -y install libmptr-dev
sudo apt-get -y install python3-scipy
以及:
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

UHD installation
Go to the github official website, search and select the corresponding version branch from uhd to download (if you need 3.14, directly select 3.14), generally download the installation package directly or use git clone to download:

git clone https://github.com/EttusResearch/uhd

Installation:
Change the name of the download folder to uhd, and enter uhd/host to execute the following command:
 

cd uhd
cd host
mkdir build
cd build 
cmake ../
sudo apt-get install python-setuptools python3-setuptools
make
wget https://github.com/EttusResearch/uhd/archive/v3.15.0.0.tar.gz
wget https://github.com/EttusResearch/uhd/releases/download/v3.15.0.0/uhd-images_3.15.0.0.zip

 Install uhd driver:

cd v3.15.0.0/uhd-3.15.0.0/host
mkdir build
cd build
cmake ../
make –j4
sudo make install
sudo ldconfig 

Note that the virtual machine needs to enter the "Edit Virtual Machine Settings" page when setting up the virtual machine, and set "USB Compatibility: USB3.0 "  at the USB controller (USB2.0 was selected before), as shown in the figure below.

UHD installed above 4.0, gnuradio maint-3.8 adaptation, the installation process is as follows

git clone --recursive https://github.com/gnuradio/gnuradio

cd gunradio

// 这里注意安装gnuradio3.8+,3.9和3.7由于版本冲突问题,会导致很多组件会安装失败
git checkout maint-3.8

// 更新子模块  这一步很重要,可以自动填补 volk
git submodule update --init --recursive

mkdir build
cd build
cmake ../
make -j8
make test
sudo make install
sudo ldconfig

然后记得配置环境:
gedit $HOME/.bashrc
# 加最下边
export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3.6/dist-packages:$PYTHONPATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

保存退出
执行:
gnuradio-companion

There is a problem, the build fails when it reaches 82%, then I delete the gnuradio folder with make clean, and start again,

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt-get update
sudo apt-get install gnuradio

it's installed 

See more official website,

https://wiki.gnuradio.org/index.php/UbuntuInstall#Building_GNU_Radio_on_Ubuntu_Linux

Guess you like

Origin blog.csdn.net/WASEFADG/article/details/130309238