我目前正在尝试构建 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/