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

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日

悬赏问题

  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来