c++ - 错误 : execution of make failed

标签 c++ linux ubuntu cmake uhd

我目前正在尝试构建 https://github.com/EttusResearch/uhd , https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux .就像指令中所说的那样,我执行 cmake ../。但是命令失败并出现以下错误

-- Check for working CXX compiler: /usr/bin/c++ CMake Error: Generator: execution of make failed. Make command was: "/usr/share/bash-completion/completions/gmake" "cmTC_3ef51/fast" -- Check for working CXX compiler: /usr/bin/c++ -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/usr/bin/c++" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/.../uhd/host/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/share/bash-completion/completions/gmake" "cmTC_3ef51/fast"

Generator: execution of make failed. Make command was: "/usr/share/bash-completion/completions/gmake" "cmTC_3ef51/fast"

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:27 (PROJECT)

有人可以帮我吗?

最好的问候

最佳答案

/usr/share/bash-completion/completions/gmake 看起来是个错误的路径,make 应该在 ubuntu 上的/usr/bin/make 中

很可能你错过了 apt-get install make

关于c++ - 错误 : execution of make failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42489145/

相关文章:

c++ - 实时视频上的 Hough 线变换会导致断点?

python - 如何在 Ubuntu 中以 sudo 权限运行 PyQt 应用程序并保持正常用户风格

shell - Linux Mint上的Hadoop HBase脚本产生奇怪的错误

linux - 无法将 rnx2rtkp 从 rtklib2.4.3b29 交叉编译到树莓派 pi3

c++ - 在第二个 vector 中查找 vector 元素

c++ - 类型类方法的参数推导(由 const 限定符重载)在 gcc 中以尾随返回类型失败,但在 clang 中没有

c++ - 伯克利数据库 : exclusive lock for a whole database

python - 为独立 HTML 桌面应用程序安装 Webkit

c - 如何获得终端窗口宽度?

c++ - 为什么 LD_LIBRARY_PATH 无效?