<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Gregor,<br>
</p>
<div class="moz-cite-prefix">On 21/01/2019 16.39, gregor christandl
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3e7c3e95-dbde-a6e8-711e-d0f27c9d9c42@yahoo.com">
<blockquote type="cite">gregor@gregor-laptop
~/temp/gr-osmosdr/build $ make
<br>
Scanning dependencies of target gnuradio-osmosdr
<br>
[ 2%] Building CXX object
lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
<br>
In file included from
/home/gregor/temp/gr-osmosdr/lib/bladerf/bladerf_source_c.h:26:0,
<br>
from
/home/gregor/temp/gr-osmosdr/lib/source_impl.cc:72:
<br>
/home/gregor/temp/gr-osmosdr/lib/bladerf/bladerf_common.h:291:50: error:
‘>>’ should be ‘> >’ within a nested template
argument list
<br>
static std::list<boost::weak_ptr<struct bladerf>>
_devs; /**< dev cache */
<br>
</blockquote>
<br>
I'm running Linux Mint 18.3 Sylvia and am trying to compile for
GNU Radio 3.7 (which I installed via pybombs), gcc version 5.4.0
20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11).
<br>
</blockquote>
<p>It seems it can't be compiled with certain gcc versions. You
could manually apply the following changes from
<a class="moz-txt-link-freetext" href="https://github.com/Nuand/bladeRF/issues/684#issuecomment-434389842">https://github.com/Nuand/bladeRF/issues/684#issuecomment-434389842</a></p>
<p>
<blockquote type="cite">
<p>Quick fix would be to edit bladerf_common.h:291 (and any
other lines it errors out on) to change:</p>
<p><code>static std::list<boost::weak_ptr<struct
bladerf>> _devs; /**< dev cache */</code></p>
<p>to:</p>
<p><code>static std::list<boost::weak_ptr<struct
bladerf> > _devs; /**< dev cache */</code></p>
<p>These three lines in bladerf_common.cc will likely also need
changing:</p>
<pre><code>bladerf_common.cc:54:std::list<boost::weak_ptr<struct bladerf>> bladerf_common::_devs;
bladerf_common.cc:1112: _devs.push_back(static_cast<boost::weak_ptr<struct bladerf>>(dev));
bladerf_common.cc:1120: std::list<boost::weak_ptr<struct bladerf>>::iterator it(_devs.begin());
</code></pre>
</blockquote>
Or you could try to update your compiler to a more recent version.<br>
</p>
</body>
</html>