USRP Software Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

UHD Drivers installation failure

Hi All,

 

I am somewhat new to posting so please forgive and correct any mistakes I make in this post (and if I lack any necessary information please tell me) 

 

I am following Ch.6 of this guide here https://pysdr.org/content/usrp.html, and am attempting to install the UHD drivers with these following steps 

 

sudo apt-get install git cmake libboost-all-dev libusb-1.0-0-dev python3-docutils python3-mako python3-numpy python3-requests python3-ruamel.yaml python3-setuptools build-essential
cd ~
git clone https://github.com/EttusResearch/uhd.git
cd uhd/host
mkdir build
cd build
cmake -DENABLE_TESTS=OFF -DENABLE_C_API=OFF -DENABLE_MANUAL=OFF ..
make -j8
sudo make install
sudo ldconfig

 

However, when I run the test code to ensure that I installed it correctly, 

 

python3
import uhd
usrp = uhd.usrp.MultiUSRP()
samples = usrp.recv_num_samps(10000, 100e6, 1e6, [0], 50)
print(samples[0:10])

 

I get the following output.

 

 

 

crimsonbaba_0-1656307245007.png

 

 

 

I am unsure as to why I get this output. I had looked up this error and found this https://www.mail-archive.com/usrp-users@lists.ettus.com/msg11331.html where the person had the exact same error, and the recommendation was to alter the PYTHONPATH variable, but was unsure how to do so. 

 

I'm running a virtual machine with Ubuntu 22.04 LTS 5GB of Ram and 3 CPUs.

crimsonbaba_1-1656307679230.png

 

 

I also attempted pybombs installation "pybombs install uhd" and still got the same error output. 

0 Kudos
Message 1 of 2
(2,153 Views)

Hi,

 

Please try ubuntu 20.04:

 

On Ubuntu 20.04 systems, run:

   sudo apt-get -y install autoconf automake build-essential ccache cmake cpufrequtils doxygen ethtool fort77 g++ gir1.2-gtk-3.0 git gobject-introspection gpsd gpsd-clients inetutils-tools libasound2-dev libboost-all-dev libcomedi-dev libcppunit-dev libfftw3-bin libfftw3-dev libfftw3-doc libfontconfig1-dev libgmp-dev libgps-dev libgsl-dev liblog4cpp5-dev libncurses5 libncurses5-dev libpulse-dev libqt5opengl5-dev libqwt-qt5-dev libsdl1.2-dev libtool libudev-dev libusb-1.0-0 libusb-1.0-0-dev libusb-dev libxi-dev libxrender-dev libzmq3-dev libzmq5 ncurses-bin python3-cheetah python3-click python3-click-plugins python3-click-threading python3-dev python3-docutils python3-gi python3-gi-cairo python3-gps python3-lxml python3-mako python3-numpy python3-numpy-dbg python3-opengl python3-pyqt5 python3-requests python3-scipy python3-setuptools python3-six python3-sphinx python3-yaml python3-zmq python3-ruamel.yaml swig wget
 cd $HOME
   mkdir workarea
   cd workarea

Next, clone the repository and change into the cloned directory.

   git clone https://github.com/EttusResearch/uhd
   cd uhd
git checkout v4.2.0.0

Next, create a build folder within the repository.

   cd host
   mkdir build
   cd build

Next, invoke CMake.

   cmake ..

Once the cmake command succeeds without errors, build UHD.

   make

Next, you can optionally run some basic tests to verify that the build process completed properly.

   make test

Next, install UHD, using the default install prefix, which will install UHD under the /usr/local/lib folder. You need to run this as root due to the permissions on that folder.

   sudo make install

Next, update the system's shared library cache.

   sudo ldconfig
  export LD_LIBRARY_PATH=/usr/local/lib
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

thanks.

0 Kudos
Message 2 of 2
(2,117 Views)