鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    colcon build失败 提示:CMake Error: The source directory "/opt/ros/humble/share/gtest_vendor" does not appear to contain CMakeLists.txt.

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    colcon build报错 gtestvendor
    1
    1
    9
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Q
      qic
      最后由 编辑

      root@cq-virtual-machine:/opt/ros/humble# colcon build
      Starting >>> ament_package
      Starting >>> ament_lint
      Starting >>> gtest_vendor
      Starting >>> gtest
      Starting >>> ament_pycodestyle
      Starting >>> ament_cppcheck
      Starting >>> osrf_pycommon
      Starting >>> google_benchmark_vendor
      [2.564s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_package' doesn't explicitly install a marker in the package index (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.564s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_package' doesn't explicitly install the 'package.xml' file (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.568s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_lint' doesn't explicitly install a marker in the package index (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.568s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_lint' doesn't explicitly install the 'package.xml' file (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.586s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_pycodestyle' doesn't explicitly install a marker in the package index (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.586s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_pycodestyle' doesn't explicitly install the 'package.xml' file (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.593s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_cppcheck' doesn't explicitly install a marker in the package index (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.595s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'ament_cppcheck' doesn't explicitly install the 'package.xml' file (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.599s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'osrf_pycommon' doesn't explicitly install a marker in the package index (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      [2.599s] WARNING:colcon.colcon_ros.task.ament_python.build:Package 'osrf_pycommon' doesn't explicitly install the 'package.xml' file (colcon-ros currently does it implicitly but that fallback will be removed in the future)
      --- stderr: gtest_vendor
      CMake Error: The source directory "/opt/ros/humble/share/gtest_vendor" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.

      Failed <<< gtest_vendor [0.12s, exited with code 1]
      Aborted <<< google_benchmark_vendor [0.10s]
      Aborted <<< ament_package [0.14s]
      Aborted <<< ament_cppcheck [0.11s]
      Aborted <<< ament_lint [0.13s]
      Aborted <<< ament_pycodestyle [0.12s]
      Aborted <<< osrf_pycommon [0.11s]
      Aborted <<< gtest [0.34s]

      Summary: 0 packages finished [2.78s]
      1 package failed: gtest_vendor
      7 packages aborted: ament_cppcheck ament_lint ament_package ament_pycodestyle google_benchmark_vendor gtest osrf_pycommon
      2 packages had stderr output: google_benchmark_vendor gtest_vendor
      290 packages not processed

      1 条回复 最后回复 回复 引用 0
      • 第一个帖子
        最后一个帖子
      皖ICP备16016415号-7
      Powered by NodeBB | 鱼香ROS