Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Winjangza opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@Winjangza
Copy link

Winjangza commented Nov 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant