Installation UHD + GNU Radio ubuntu18.04

Reference links:

Installation uhd with the gnuradio ubuntu16.04: https://blog.csdn.net/qq_37748396/article/details/80339366

 The official installation link: https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux

 

 

1. Update the list of packages to update the system software

1 sudo apt-get update
2 
3 sudo apt-get upgrade

2. Install the dependencies ( only for UBU NTU 18.04 dependencies, other needs will be different versions )

1 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

 

Referring respective mounting dependencies given official:

https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux

3. Download UHD source file and compile and install (you select deemed appropriate file directory)

  1. git clone: ​​//github.com/ettusresearch/uhd.git
    (If prompted git software is not installed, the following statement is prompted to enter the installation) If the download be seen hereinafter slow step in a rapid way to download.
  2. Download the source files have different release versions, locate the latest by operating release version or the version you need:

    CD UHD

    Then the input terminal

    git checkout release

    Continuously press tab key will print out the optional release version, and then enter

    git checkout v3.14.0.0 (switching to the appropriate version, Pick 3.14.0 )
  3. cd host
  4. mkdir build 
  5. cd build 
  6. cmake ../ 
  7. make 
  8. make test
  9. sudo make install 
  10. sudo ldconfig 

4. Download UHD image file and program the image file.

 

sudo uhd_images_downloader

 

 

 

If thee as steps, compilation, the installation not being given. At this time UHD driver has been installed, by entering
 

uhd_find_devices

 

 

See USRP information equipment (computers and ensure that the device is in the same network. Note usrp n210 must use a gigabit network cable and pc communications segment, to ensure that pc machine has Gigabit Ethernet, and Gigabit Ethernet network cable line. At that time I go here detours. the setting View http://www.ettus.com.cn/peixun/28/ )
uhd_image_loader --args = "= the USRP2 of the type, addr = 192.168.10.2
(the default ip address) , the RESET"

5. Download GNU Radio source file compilation and installation (similar to the step , because the source files are downloaded , the installation ah, select the appropriate folder)

  1. git clone: ​​//github.com/gnuradio/gnuradio.git 

    (See download successful network speed, but also luck) If the download is too slow can see below the steps of a fast way to download.

  2. cd gnuradio/ 
  3. Switch to the release version, you can find the latest in the following ways release version: git Checkout v3 continuously press the tab key, it will print out the optional release version, find the highest version number, such as v3.7.9.1 .
    Switch to the highest version: git Checkout v3.7.9.1

  4. mkdir build 
  5. cd build 
  6. cmake ../ 
  7. make

    ( Some fail to compile, it does not affect use)

  8. make test 
  9. sudo make install 
  10.  

    sudo ldconfig 

     

     


If all goes well, this would have been ok up.



Step one quick download:

Direct download of their own need UHD and GNU Radio Version:

download link:

UHD:http://files.ettus.com/binaries/uhd_stable/

GNU Radio:https://www.gnuradio.org/releases/gnuradio/

Such as downloading gnuradio-3.8.0.0 version, all you need to put on the site gnuradio-3.8.0.0 package downloaded, and then extracted into the same directory as: extracted under gnuradio-3.8.0.0 directory.

And then performing the above installation steps.

 

 

 

View installed UHD version number:

 uhd_usrp_probe --version

 

View installed gnuradio version number:

gnuradio-config-info -v 

Enter a terminal gnuradio-companion will be able to open the software, gnu own example there are many, can enter the installation directory found.

 

Guess you like

Origin www.cnblogs.com/jsdy/p/11420189.html