muccc / gr-iridium

Iridium burst detector and demodulator.
372 stars 81 forks source link

problem using cmake during installation #121

Closed michael040101 closed 2 years ago

michael040101 commented 2 years ago

Hi, Im trying to install the program on ubunto 20.04 with gnuradio 3.9, and this is what happens during the cmake stage,

_michael@ubuntu:~/Desktop/gr-iridium/build$ cmake .. -- Build type not specified: defaulting to release. -- Using GMP. -- User set python executable /usr/bin/python3 -- Checking for module 'sndfile' -- No package 'sndfile' found -- Could NOT find SNDFILE (missing: SNDFILE_LIBRARIES SNDFILE_INCLUDE_DIRS) -- Extracting version information from git describe... -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Using install prefix: /usr/local -- Building for version: 2022-02-02_maint-3.9-3-g9db591d4 / 1.0.0git -- No C++ unit tests... skipping -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- PYTHON and GRC components are enabled -- CMAKE_INSTALL_PREFIX: /usr/local -- GR_PYTHON_DIR: lib/python3.8/dist-packages -- GR_PYTHON_DIR: lib/python3.8/dist-packages -- Python checking for pygccxml - found -- Configuring done CMake Error at /usr/lib/cmake/pybind11/pybind11Tools.cmake:131 (add_library): Target "iridium_python" 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? Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrPybind.cmake:241 (pybind11_add_module) python/bindings/CMakeLists.txt:42 (GR_PYBIND_MAKE_OOT)

CMake Error at /usr/lib/cmake/pybind11/pybind11Tools.cmake:131 (add_library): Target "iridium_python" 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? Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrPybind.cmake:241 (pybind11_add_module) python/bindings/CMakeLists.txt:42 (GR_PYBIND_MAKE_OOT)

CMake Error at lib/CMakeLists.txt:32 (add_library): Target "gnuradio-iridium" 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?

CMake Error at lib/CMakeLists.txt:32 (add_library): Target "gnuradio-iridium" 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?

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly._

Do you have any idea how can i solve this issue?

thanks in advance!

schneider42 commented 2 years ago

You are missing the libsndfile1-dev package. You can install it like this: sudo apt install libsndfile1-dev