I did a “git pull” for both UHD (master) and gnuradio (next) today, and
a “make clean; make” in both places. The build is currently broken:
eech/gnuradio/gruel/src/include
-I/home/mleech/gnuradio/gruel/src/include -I/usr/include
-I/usr/local/include -I…/…/gr-uhd/lib
-MD -MF .deps/uhd_swig.Std
-module uhd_swig -o uhd_swig.cc uhd_swig.i; then
if test linux-gnu = mingw32; then
/bin/rm -f .deps/uhd_swig.Sd;
/bin/sed ‘s,\\,/,g’ < .deps/uhd_swig.Std \
.deps/uhd_swig.Sd;
/bin/rm -f .deps/uhd_swig.Std;
.deps/uhd_swig.Sd .deps/uhd_swig.Std;
fi;
else
/bin/rm -f .deps/uhd_swig.S*; exit 1;
fi;
/usr/local/include/uhd/types/ranges.hpp:59: Error: Syntax error in
input(3).
make[5]: *** [.deps/uhd_swig-generate-stamp] Error 1
make[5]: Leaving directory `/home/mleech/gnuradio/gr-uhd/swig’
I pushed the wrong thing… ok fixing, please wait…
On Tue, Nov 16, 2010 at 4:38 PM, Marcus D. Leech [email protected]
wrote:
I did a “git pull” for both UHD (master) and gnuradio (next) today, and a
“make clean; make” in both places. The build is currently broken:
…
/usr/local/include/uhd/types/ranges.hpp:59: Error: Syntax error in input(3).
make[5]: *** [.deps/uhd_swig-generate-stamp] Error 1
make[5]: Leaving directory `/home/mleech/gnuradio/gr-uhd/swig’
Different but possibly related breakage in my applications after
today’s pull. Looks like the API may have changed a bit.
UHDDevice.cpp:260: error: struct uhd::gain_range_t has no member named
max
UHDDevice.cpp:260: error: struct uhd::gain_range_t has no member named
min
Thomas
Thats why i was waiting to push. But I did it anyway so…
The ranges are now meta-ranges (ranges of ranges) that can hold
discontinuous ranges and discrete values. The members min, max, and step
were replaced with start(), stop(), and step(). That will give you the
overall range.
Also, since this is a range of ranges, you can iterate through it and
get each sub-range (also with start, stop, and step). A good example of
this is the XCVR2450 that has two discontinuous frequency ranges.
BTW, the fixes are pushed to next on gnuradio.
-Josh