A follow up question to this, I am having problems building the OOT I am trying to use. When I look at the file that is giving me the error, on the line
"return gnuradio::get_initial_sptr"
I get the error
"no suitable user-defined conversion from "std::shared_ptr<gr::doa::capon_ccf_impl>" to "gr::doa::capon_ccf::sptr" exists"
I hardly know any c++ so I don't know how to fix this, and I can also tell that this error message is pretty specific to what I am trying to build. I am just wondering if this might have to do with the fact that the newer version of gnuradio interacts differently and so it is having this error. If someone is willing to try to recreate it I am trying to make/build this github repository:
https://github.com/samwhiting/gnuradio-doa
I am running on ubuntu 20.04, installed my gnuradio through "sudo apt install gnuradio" and it is up to date. When trying to build the repository, I first used the "cmake" command, which had no issues, then when I tried to "make" it, it gave me this error:
/home/caden/gnuradio-doa/gr-doa/lib/capon_ccf_impl.cc: In static member function ‘static gr::doa::capon_ccf::sptr gr::doa::capon_ccf::make(int)’:
/home/caden/gnuradio-doa/gr-doa/lib/capon_ccf_impl.cc:37:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) [with T = gr::doa::capon_ccf_impl]()’ from ‘std::shared_ptr<gr::doa::capon_ccf_impl>’ to ‘gr::doa::capon_ccf::sptr’ {aka ‘boost::shared_ptr<gr::doa::capon_ccf>’}
36 | return gnuradio::get_initial_sptr
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | (new capon_ccf_impl(vector_size));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::shared_ptr<gr::doa::capon_ccf_impl>
make[2]: *** [lib/CMakeFiles/gnuradio-doa.dir/build.make:63: lib/CMakeFiles/gnuradio-doa.dir/capon_ccf_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:304: lib/CMakeFiles/gnuradio-doa.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
If anyone is able to recreate this error and then find a solution that would be much appreciated.
Thanks,
Caden