gpt4 book ai didi

gnuradio - CMake 错误未提供 FindGnuradio.cmake

转载 作者:行者123 更新时间:2023-12-03 19:55:43 26 4
gpt4 key购买 nike

运行 cmake 时出现以下错误并且不确定如何修复它。似乎它确切地告诉我该做什么,但对 Linux 不是很熟悉。

 CMake Error at CMakeLists.txt:153 (find_package):
By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Gnuradio",
but CMake did not find one.

Could not find a package configuration file provided by "Gnuradio"
(requested version 3.7.3) with any of the following names:

GnuradioConfig.cmake
gnuradio-config.cmake

Add the installation prefix of "Gnuradio" to CMAKE_PREFIX_PATH or set
"Gnuradio_DIR" to a directory contaning one of the above files. If
"Gnuradio" provides a separate development package or SDK, be sure it has
been installed.

编辑:所以我找到了一个名为 FindGnuradioRuntime.cmake 的东西,但我仍然不确定如何处理它。该错误消息让我认为它正在寻找名为“FindGnuradio.cmake”的东西,而实际上它被称为“FindGnuradioRuntime.cmake”

在全新 Ubuntu 安装上运行的命令:
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../ (here is where I ran into a the problem above)

最佳答案

  • 安装/构建 GNU Radio。
  • 删除 CMakeCache.txt
  • 当您调用 cmake ..你可以传递参数。添加GnuradioConfig.cmake的父目录路径或 FindGnuRadio.cmake如在
    cmake -DCMAKE_PREFIX_PATH=/gnu/radio/path ..
  • 关于gnuradio - CMake 错误未提供 FindGnuradio.cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33587062/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com