Closed pascal-gujer closed 4 years ago
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);
}
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_ptr
If you can fire up an Ubuntu 18 VM you should see it pretty quick.
Hey guys
when compiling the most recent SoapyUHD project, I get stuck on the following error:
`_git/SoapyUHD/UHDSoapyDevice.cpp: In member function ‘virtual bool UHDSoapyDevice::recv_async_msg(uhd::async_metadata_t&, double)’: _git/SoapyUHD/UHDSoapyDevice.cpp:866:58: error: conversion from ‘boost::shared_ptr’ to non-scalar type ‘uhd::tx_streamer::sptr {aka std::shared_ptr}’ requested
uhd::tx_streamer::sptr stream = _tx_streamers[0].lock();