Note: In the following command, if your computer's CPU has multiple cores, you can use the argument -j# to speed compilation Į.g., make -j3 will use 3 threads in the build. Note: In the following command, we will use -DCMAKE_INSTALL_PREFIX=/usr/local to install UHD into the same prefix as GNU Radio.Ĭmake -DCMAKE_INSTALL_PREFIX=/usr/local. Note: Unlike most GNU Radio build processes, UHD builds under the host directory. Note: In the following command, change v4.6.0.0 to some other branch or tag if you want to build a different version. So if you want gr-uhd enabled, you FIRST must clone and install UHD.įor this example, we will start in the home directory to parallel the steps for installing GNU Radio from source. UHD sits at the same level as GNU Radio as an independent driver, which gr-uhd references. If you want to use GNU Radio with a USRP, install the UHD package from source using the following instructions. You can browse the code online at the link below. UHD is open-source, and is hosted on GitHub. If the installation of the dependencies completes without any errors, then you can proceed to build and install UHD and GNU Radio.īuilding and installing UHD from source code Sudo apt install libiio-dev libad9361-dev libspdlog-dev python3-packaging python3-jsonschema GNU Radio version 3.10.x and the 'main' branch in addition to above require: Libsoapysdr-dev soapysdr-tools python3-pygccxml python3-pyqtgraph Sudo apt install pybind11-dev python3-matplotlib libsndfile1-dev \ GNU Radio version 3.9.x in addition to above requires: Libcodec2-dev libgsm1-dev libusb-1.0-0 libusb-1.0-0-dev libudev-dev Python3-zmq python3-scipy python3-gi python3-gi-cairo gir1.2-gtk-3.0 \ Liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins \ Libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 \ Python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev \ Sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy \ GNU Radio version 3.8.x with Python 3 support: Once the system has been updated, then install the required dependencies below.įocal Fossa (20.04) through Lunar Lobster (23.04) Before running them, you should ensure that the "Main" and "Universe" repositories are enabled in "Software Sources". The following commands will install all the required dependencies. They are not addressed in this document.īefore building UHD and GNU Radio, you need to make sure that all the dependencies are installed. The E310 and E312 devices are embedded devices which are fundamentally different from the other non-embedded devices. This document applies only to the USRP X300, X310, B200, B210, B200mini, N200, and N210 devices. In this document, the Ubuntu 22.04 and Ubuntu 20.04 distributions specifically are discussed. UHD is fully supported on Linux using the GCC compiler, and should work on most major Linux distributions. This Application Note provides a comprehensive guide for building and installing the open-source toolchain for the USRP (UHD and GNU Radio) from source code on a Linux platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |