Skip to content

What is this error and how to solve it? "error: could not convert" #21

@Winjangza

Description

@Winjangza

I can do a "camke" but I can't "make"? how to solve it? I use gnuradio 3.10.7.0 with jetson orin on ubuntu 20
orin@ubuntu:~/gr-doa/build$ make
[ 4%] Building CXX object lib/CMakeFiles/gnuradio-doa.dir/autocorrelate_impl.cc.o
/home/orin/gr-doa/lib/autocorrelate_impl.cc: In static member function ‘static gr::doa::autocorrelate::sptr gr::doa::autocorrelate::make(int, int, int, int)’:
/home/orin/gr-doa/lib/autocorrelate_impl.cc:41:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) with T = gr::doa::autocorrelate_impl’ from ‘std::shared_ptrgr::doa::autocorrelate_impl’ to ‘gr::doa::autocorrelate::sptr’ {aka ‘boost::shared_ptrgr::doa::autocorrelate’}
40 | return gnuradio::get_initial_sptr
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
41 | (new autocorrelate_impl(inputs, snapshot_size, overlap_size, avg_method));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::shared_ptrgr::doa::autocorrelate_impl
make[2]: *** [lib/CMakeFiles/gnuradio-doa.dir/build.make:76: lib/CMakeFiles/gnuradio-doa.dir/autocorrelate_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:257: lib/CMakeFiles/gnuradio-doa.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions