Make ERROR gr-iio

Hi, 

I am following this link to install gr-iio to use pluto sdr. 

https://wiki.analog.com/resources/tools-software/linux-software/gnuradio

Getting following error:

zafar@zafar-VirtualBox:~/gr-iio$ sudo make
[ 2%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o
/home/zafar/gr-iio/lib/device_source_impl.cc: In static member function ‘static gr::iio::device_source::sptr gr::iio::device_source::make(const string&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, unsigned int, unsigned int)’:
/home/zafar/gr-iio/lib/device_source_impl.cc:45:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::iio::device_source_impl]()’ from ‘std::shared_ptr<gr::iio::device_source_impl>’ to ‘gr::iio::device_source::sptr {aka boost::shared_ptr<gr::iio::device_source>}’
return gnuradio::get_initial_sptr
~~~~~~~~~~~~~~~~~~~~~~~~~~
(new device_source_impl(device_source_impl::get_context(uri), true,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device, channels, device_phy,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
params, buffer_size, decimation));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/zafar/gr-iio/lib/device_source_impl.cc: In static member function ‘static gr::iio::device_source::sptr gr::iio::device_source::make_from(iio_context*, const string&, const std::vector<std::__cxx11::basic_string<char> >&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, unsigned int, unsigned int)’:
/home/zafar/gr-iio/lib/device_source_impl.cc:58:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::iio::device_source_impl]()’ from ‘std::shared_ptr<gr::iio::device_source_impl>’ to ‘gr::iio::device_source::sptr {aka boost::shared_ptr<gr::iio::device_source>}’
return gnuradio::get_initial_sptr
~~~~~~~~~~~~~~~~~~~~~~~~~~
(new device_source_impl(ctx, false, device, channels, device_phy,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
params, buffer_size, decimation));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/CMakeFiles/gnuradio-iio.dir/build.make:73: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Will appreciate any help

Thanks



Added some relevant tags
[edited by: zafar at 7:22 PM (GMT 0) on 24 May 2020]
  • 0
    •  Analog Employees 
    on May 24, 2020 11:11 PM 6 months ago

    Seem to me like you are mixing the wrong GNU Radio version with the wrong branch.

    What gnuradio version do you have installed? What gr-iio branch are you using?

    -Travis

  • Thanks for the response

    GNU Radio version:

    zafar@zafar-VirtualBox:~/gr-iio$ gnuradio-config-info -v
    3.9.0.0-git

    Git branch:

    I cloned from this
    https://github.com/analogdevicesinc/libiio.git

    
    

    available here:

    https://wiki.analog.com/resources/tools-software/linux-software/gnuradio 

    Git branch:

    zafar@zafar-VirtualBox:~/gr-iio$ git branch
    * master

  • 0
    •  Analog Employees 
    on May 26, 2020 10:30 PM 6 months ago in reply to zafar

    If you are using master, it only supports 3.7. See GNU Radio 3.8 instructions in the wiki page you linked.

    -Travis

  • Thanks

    I replaced 3.9 with 3.7. Again got following error:

    zafar@zafar-VirtualBox:~/libad9361-iio/gr-iio$ sudo make
    [ 2%] Building CXX object lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o
    /home/zafar/libad9361-iio/gr-iio/lib/device_source_impl.cc: In static member function ‘static gr::iio::device_source::sptr gr::iio::device_source::make(const string&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, unsigned int, unsigned int)’:
    /home/zafar/libad9361-iio/gr-iio/lib/device_source_impl.cc:45:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::iio::device_source_impl]()’ from ‘std::shared_ptr<gr::iio::device_source_impl>’ to ‘gr::iio::device_source::sptr {aka boost::shared_ptr<gr::iio::device_source>}’
    return gnuradio::get_initial_sptr
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    (new device_source_impl(device_source_impl::get_context(uri), true,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    device, channels, device_phy,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    params, buffer_size, decimation));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/zafar/libad9361-iio/gr-iio/lib/device_source_impl.cc: In static member function ‘static gr::iio::device_source::sptr gr::iio::device_source::make_from(iio_context*, const string&, const std::vector<std::__cxx11::basic_string<char> >&, const string&, const std::vector<std::__cxx11::basic_string<char> >&, unsigned int, unsigned int)’:
    /home/zafar/libad9361-iio/gr-iio/lib/device_source_impl.cc:58:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::iio::device_source_impl]()’ from ‘std::shared_ptr<gr::iio::device_source_impl>’ to ‘gr::iio::device_source::sptr {aka boost::shared_ptr<gr::iio::device_source>}’
    return gnuradio::get_initial_sptr
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    (new device_source_impl(ctx, false, device, channels, device_phy,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    params, buffer_size, decimation));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    lib/CMakeFiles/gnuradio-iio.dir/build.make:73: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o' failed
    make[2]: *** [lib/CMakeFiles/gnuradio-iio.dir/device_source_impl.cc.o] Error 1
    CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-iio.dir/all' failed
    make[1]: *** [lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2

  • 0
    •  Analog Employees 
    on May 27, 2020 9:30 PM 6 months ago in reply to zafar

    What Linux distribution and version are you using?

    Can you provide the output of: `gnuradio-config-info -v`

    And the output of a clean cmake configuration: `cmake ..`

    And the output of make again.

    -Travis