Coder Social home page Coder Social logo

Comments (2)

guruofquality avatar guruofquality commented on June 1, 2024

I think some typedefs changed in newer UHD APIs. Does this patch help?

diff --git a/UHDSoapyDevice.cpp b/UHDSoapyDevice.cpp
index 74a4927..22f5b3c 100644
--- a/UHDSoapyDevice.cpp
+++ b/UHDSoapyDevice.cpp
@@ -863,7 +863,7 @@ uhd::tx_streamer::sptr UHDSoapyDevice::get_tx_stream(const uhd::stream_args_t &a
 
 bool UHDSoapyDevice::recv_async_msg(uhd::async_metadata_t &md, double timeout)
 {
-    uhd::tx_streamer::sptr stream = _tx_streamers[0].lock();
+    auto stream = _tx_streamers[0].lock();
     if (not stream) return false;
     return stream->recv_async_msg(md, timeout);
 }

from soapyuhd.

ghostop14 avatar ghostop14 commented on June 1, 2024

If I add the boost/foreach.hpp include, and the auto in a couple spots, I still get a few errors like this:

UHDSoapyDevice.cpp:859:71: error: no match for ‘operator=’ (operand types are ‘std::map<long unsigned int, boost::weak_ptruhd::tx_streamer >::mapped_type {aka boost::weak_ptruhd::tx_streamer}’ and ‘uhd::tx_streamer::sptr {aka std::shared_ptruhd::tx_streamer}’)
BOOST_FOREACH(const size_t ch, args.channels) _tx_streamers[ch] = stream;

If you can fire up an Ubuntu 18 VM you should see it pretty quick.

from soapyuhd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.