cmake - 尝试安装 gr-osmosdr 时出现 CMake 错误
问题描述
我已经尝试安装 gr-osmosdr 很长一段时间了,但我从来没有结束安装过程。我已按照https://github.com/osmocom/gr-osmosdr上的步骤操作, 其中显示了如何通过 cmake 安装 gr-osmosdr。在克隆和构建“build”目录之后,是时候让 cmake 完成它的工作了。正是在这一步,事情开始失败。我收到以下错误:
CMake Warning (dev) at /home/victor/.local/lib/python2.7/site-packages/cmake/data/share/cmake-3.18/Modules/GNUInstallDirs.cmake:225 (message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
Call Stack (most recent call first):
CMakeLists.txt:24 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
CMake Error at CMakeLists.txt:44 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.8".
The following configuration files were considered but not accepted:
/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake, version: 3.7.9.1
-- Configuring incomplete, errors occurred!
See also "/home/victor/gr-osmosdr/build/CMakeFiles/CMakeOutput.log".
此时我无法继续安装过程。我正在运行Ubuntu 16.04.7 LTS和GNU Radio 3.7.9。 谢谢
解决方案
错误消息非常具有描述性:您正在尝试使用古老的 GNU Radio 3.7.9.1构建与现代 GNU Radio 3.8 兼容的 gr- osmosdr。不会工作。您可以尝试构建一个过时的 gr-osmosdr 版本,但实际上,您应该升级到 Ubuntu 20.04。
在那里,你可以
sudo apt install gnuradio gr-osmosdr
并且不必自己构建任何东西(它会起作用!)。
推荐阅读
- jquery - Jquery Tabs - 多个选项卡 - 连接在一起
- docker - 使用 docker compose 在 vue 中切换环境文件
- google-cloud-platform - 如何通过 yes 标志回填 Google Composer?
- cognos - Windows 意外重新启动时无法执行 Cognos 的首次安装
- android - 当我想查看 Android 上的所有电子邮件客户端时,我只看到 3 个选项
- javascript - 在运行时允许、安装和管理用户定义的 node_modules
- .htaccess - 如果主页请求,.htaccess 发送标题
- php - errors=invalidkey 用于 WordPress 自定义密码恢复页面
- javascript - 获取时间并转换为 24 小时字符串时间的日期对象,例如)“3:18”,无需第二个 javascript
- javascript - JS:过滤对象列表以仅包含在第二个数组中找到的字符串