在运行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)发布于 2020-02-13 02:24:33
让我隐藏起来的回答是一个实际的答案:
刚发现在GNURadio的网站上提供的安装脚本不仅安装了GNURadio,而且还安装了RTL需求,所以我删除了VM并重新启动,并取得了成功。它需要几个小时,但它是完整和自动化的,所以绝对是安装GNURadio的最佳方法。脚本在这里,http://www.sbrac.org/files/build-gnuradio
发布于 2016-04-05 21:30:25
CMakeCache.txtcmake ..时,可以传递参数。将路径添加到GnuradioConfig.cmake或FindGnuRadio.cmake的父目录,如
cmake -DCMAKE_PREFIX_PATH=/gnu/radio/path ..发布于 2021-09-27 22:57:05
正如以前的答案所指出的,你没有描述你在哪里遇到了这个问题。我将假设它发生在创建一个OOT模块时。
在OOT模块页上,请参阅“备注”部分。他们注意到您需要安装gr-dev。该软件包将安装GnuradioConfig.cmake。您可以在标准的yum中找到它,并使用sudo yum install gnuradio-devel安装它。
https://stackoverflow.com/questions/33587062
复制相似问题