From a9b6af06485c4ee621a295b5f61b8d07541f140d Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 27 Oct 2020 09:56:15 +0000 Subject: [PATCH] Fix compilation with UHD 3.15. Add dependency info to readme. --- devices/usrp/deviceusrpparam.cpp | 2 +- plugins/samplesource/usrpinput/readme.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devices/usrp/deviceusrpparam.cpp b/devices/usrp/deviceusrpparam.cpp index c54ec22a9..2acea29a5 100644 --- a/devices/usrp/deviceusrpparam.cpp +++ b/devices/usrp/deviceusrpparam.cpp @@ -67,7 +67,7 @@ bool DeviceUSRPParams::open(const char *deviceStr, bool channelNumOnly) m_srRangeTx = uhd::meta_range_t(std::min(txLow.start(), txHigh.start()), std::max(txLow.stop(), txHigh.stop())); // Need to restore automatic clock rate - uhd::property_tree::sptr properties = m_dev->get_tree(); + uhd::property_tree::sptr properties = m_dev->get_device()->get_tree(); if (properties->exists("/mboards/0/auto_tick_rate")) { properties->access("/mboards/0/auto_tick_rate").set(true); diff --git a/plugins/samplesource/usrpinput/readme.md b/plugins/samplesource/usrpinput/readme.md index 4521041fe..be639aa92 100644 --- a/plugins/samplesource/usrpinput/readme.md +++ b/plugins/samplesource/usrpinput/readme.md @@ -132,3 +132,10 @@ This label turns green when data is being received from the device. - **T**: turns red if stream experiences timeouts The stream warning indicators are reset when the acqusition is started. + +

Dependendices

+ +On Ubuntu 20, the libuhd-dev package should be installed. The FPGA images then need to be downloaded with: + +sudo /usr/lib/uhd/utils/uhd_images_downloader.py +