运行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)
答案 0 :(得分:1)
CMakeCache.txt
当您致电cmake ..
时,您可以传递参数。将路径添加到GnuradioConfig.cmake
或FindGnuRadio.cmake
的父目录,如
cmake -DCMAKE_PREFIX_PATH=/gnu/radio/path ..
答案 1 :(得分:0)
让我有些隐藏的回答成为实际答案:
仅发现GNURadio网站上提供的安装脚本不仅安装了GNURadio,还安装了RTL SDR要求,因此我擦除了VM,并重新开始并成功。它需要几个小时,但是它是完整且自动化的,因此绝对是安装GNURadio的最佳方法。脚本在这里http://www.sbrac.org/files/build-gnuradio