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

Problem "sndfile::sndfile" but the target was not found #6

Open
fede-bello opened this issue Jun 15, 2023 · 0 comments
Open

Problem "sndfile::sndfile" but the target was not found #6

fede-bello opened this issue Jun 15, 2023 · 0 comments

Comments

@fede-bello
Copy link

fede-bello commented Jun 15, 2023

Just in case anyone is having this problem when trying to install any module (gnuradio-foo in my case):

CMake Error at lib/CMakeLists.txt:40 (add_library):
  Target "gnuradio-foo" links to target "sndfile::sndfile" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

Or this one:

 /usr/bin/ld: cannot find -lsndfile::sndfile
collect2: error: ld returned 1 exit status
make[2]: *** [lib/CMakeFiles/gnuradio-foo.dir/build.make:237: lib/libgnuradio-foo.so.cc8bfc6e] Error 1
make[1]: *** [CMakeFiles/Makefile2:228: lib/CMakeFiles/gnuradio-foo.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

To fix it, it's enough to install the libsndfile-dev package:

sudo apt update
sudo apt install libsndfile-dev
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