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日

悬赏问题

  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题