fengyufeng2021 2022-08-26 09:34 采纳率: 100%
浏览 137
已结题

catkin_make出错

问题遇到的现象和发生背景

VMware虚拟机ubuntu安装摄像头驱动
根据https://blog.csdn.net/qq_58060770/article/details/122373233
catkin_make出错无法继续

问题相关代码,请勿粘贴截图

catkin_make

运行结果及报错内容

fengyufeng@fengyufeng-virtual-machine:~/catkin_ws$ catkin_make
Base path: /home/fengyufeng/catkin_ws
Source space: /home/fengyufeng/catkin_ws/src
Build space: /home/fengyufeng/catkin_ws/build
Devel space: /home/fengyufeng/catkin_ws/devel
Install space: /home/fengyufeng/catkin_ws/install
Creating symlink "/home/fengyufeng/catkin_ws/src/CMakeLists.txt" pointing to "/usr/share/catkin/cmake/toplevel.cmake"

     Running command: "cmake /home/fengyufeng/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/fengyufeng/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/fengyufeng/catkin_ws/install -G Unix Makefiles" in "/home/fengyufeng/catkin_ws/build"

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is unknown
-- 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
CMake Error at CMakeLists.txt:6 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/home/fengyufeng/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/fengyufeng/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

我的解答思路和尝试过的方法

改为catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3仍报错

img

我想要达到的结果

如何解决catkin_make继续安装

  • 写回答

1条回答 默认 最新

  • 赵4老师 2022-08-26 10:33
    关注

    No CMAKE_CXX_COMPILER could be found.
    安装g++

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 9月4日
  • 已采纳回答 8月27日
  • 创建了问题 8月26日

悬赏问题

  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥15 第一个已完成,求第二个做法
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?