[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr-radar make problem
From: |
Stefan Wunsch |
Subject: |
Re: [Discuss-gnuradio] gr-radar make problem |
Date: |
Thu, 31 Mar 2016 17:07:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 |
Hey,
Most likely Marcus is right ;) I guessed the solution because I had
before some problems with boost::format and strerror stuff exactly in
this line.
How to check your boost version:
Most generic solution is 'ldconfig -p | grep libboost' and look at the
endings of the boost .so files. Or use your package manager ;)
How to check your uhd version:
Run any uhd executable from the command line, e.g., uhd_find_devices and
look at the first line of the output.
One of these should be too old. And I suppose that the newest boost
version from the ubuntu repos should be sufficient. The boost version
has to be less than 1-2 years old (and even the ubuntu repos aren't that
bad).
Greetings,
Stefan
On 03/31/2016 10:50 AM, Mostafa Alizadeh wrote:
> Thanks all,
>
> I actually have Ubuntu 14.04, so there is not libboost 1.60 in its
> repository. What should I do?
>
> Best,
> Mostafa
>
> ***********************************************************
> Tehran
> IRAN
> Tel: +98 (919) 158-7730
> Emails: address@hidden <mailto:address@hidden>,
> address@hidden <mailto:address@hidden>
> Homepage: Linkedin <https://ir.linkedin.com/in/mostafa-alizadeh-50a70169>
>
> ***********************************************************
>
> On Wed, Mar 30, 2016 at 10:16 PM, Stefan Wunsch
> <address@hidden <mailto:address@hidden>>
> wrote:
>
> Hi,
>
> Sebastian is right, it's most likely a dependency problem. I've tested
> the source from git and it compiles fine with following dependencies:
>
> - gnuradio 3.7.9.1
> - uhd 3.9.2
> - boost 1.60.0
>
> First check boost, old versions don't have the strerror function. If
> boost is the problem, I should really fix the cmake so that it checks
> the boost version.
>
> Greetings
> Stefan
>
> On 03/30/2016 09:57 AM, Mostafa Alizadeh wrote:
> > Hi all,
> >
> > I tried to build gr-radar <https://github.com/kit-cel/gr-radar> master
> > branch but I got the error:
> >
> >
> > /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc: In
> > member function ‘void gr::radar::usrp_echotimer_cc_impl::receive()’:
> >
> /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc:232:16:
> error:
> > ‘class uhd::rx_streamer’ has no member named ‘issue_stream_cmd’
> > d_rx_stream->issue_stream_cmd(stream_cmd);
> > ^
> >
> /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc:245:84:
> error:
> > ‘struct uhd::rx_metadata_t’ has no member named ‘strerror’
> > throw std::runtime_error(str(boost::format("Receiver error %s") %
> > d_metadata_rx.strerror()));
> >
> > ^
> >
> */home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc:245:94:
> > error: ‘str’ was not declared in this scope*
> > throw std::runtime_error(str(boost::format("Receiver error %s") %
> > d_metadata_rx.strerror()));
> >
> > ^
> >
> /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc:245:94:
> note:
> > suggested alternatives:
> > In file included from /usr/include/boost/format.hpp:53:0,
> > from /usr/local/include/gnuradio/logger.h:55,
> > from /usr/local/include/gnuradio/block.h:29,
> > from
> /usr/local/include/gnuradio/tagged_stream_block.h:27,
> > from
> >
> /home/mostafa/RADAR/gr-radar-master/include/radar/usrp_echotimer_cc.h:25,
> > from
> > /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.h:24,
> > from
> > /home/mostafa/RADAR/gr-radar-master/lib/usrp_echotimer_cc_impl.cc:26:
> > /usr/include/boost/format/free_funcs.hpp:22:38: note: ‘boost::str’
> > std::basic_string<Ch, Tr, Alloc> str(const basic_format<Ch, Tr,
> > Alloc>& f) {
> > ^
> > /usr/include/boost/format/free_funcs.hpp:22:38: note: *‘boost::str’*
> > make[2]: ***
> > [lib/CMakeFiles/gnuradio-radar.dir/usrp_echotimer_cc_impl.cc.o] Error 1
> > make[1]: *** [lib/CMakeFiles/gnuradio-radar.dir/all] Error 2
> > make: *** [all] Error 2
> >
> >
> > *This is due to "boost::str" which is not declared! *
> >
> > What could I do?
> >
> > Best,
> > Mostafa
> >
> >
> >
> > ***********************************************************
> > Tehran
> > IRAN
> > Tel: +98 (919) 158-7730
> > Emails: address@hidden <mailto:address@hidden>
> <mailto:address@hidden <mailto:address@hidden>>,
> > address@hidden <mailto:address@hidden>
> <mailto:address@hidden <mailto:address@hidden>>
> > Homepage: Linkedin
> <https://ir.linkedin.com/in/mostafa-alizadeh-50a70169>
> >
> > ***********************************************************
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden <mailto:address@hidden>
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
>