由于底层已构建包,colcon 构建失败

由于底层已构建包,colcon 构建失败

我打算构建名为 ros2-seminar-examples.git 的包

我 git clone https://git/ros2-seminar.git

并尝试 colcon build --symlink-install --packages-select ros2-seminar-examples

但它说

1.845s] 警告:colcon.colcon_core.package_selection:忽略--packages-select 中未知的包“ros2-seminar-examples” 摘要:0 个包完成 [1.52s]

所以我 colcon build --symlink-install (全部构建)

但是我收到了这样的长消息

> [2.121s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
    'examples_rclpy_minimal_client' is in: /opt/ros/humble
    'examples_rclcpp_minimal_subscriber' is in: /opt/ros/humble
    'examples_rclpy_executors' is in: /opt/ros/humble
    'examples_rclcpp_minimal_composition' is in: /opt/ros/humble
    'examples_rclcpp_multithreaded_executor' is in: /opt/ros/humble
    'action_tutorials_interfaces' is in: /opt/ros/humble
    'examples_rclcpp_minimal_client' is in: /opt/ros/humble
    'examples_rclpy_minimal_subscriber' is in: /opt/ros/humble
    'examples_rclcpp_minimal_action_server' is in: /opt/ros/humble
    'examples_rclpy_minimal_action_client' is in: /opt/ros/humble
    'examples_rclcpp_minimal_service' is in: /opt/ros/humble
    'examples_rclpy_minimal_publisher' is in: /opt/ros/humble
    'examples_rclpy_minimal_action_server' is in: /opt/ros/humble
    'examples_rclcpp_minimal_action_client' is in: /opt/ros/humble
    'examples_rclcpp_minimal_timer' is in: /opt/ros/humble
    'examples_rclpy_minimal_service' is in: /opt/ros/humble
    'turtlesim' is in: /opt/ros/humble
    'examples_rclcpp_minimal_publisher' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
    --allow-overriding action_tutorials_interfaces examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_service examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclpy_executors examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber turtlesim

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> msg_srv_action_interface_example
Starting >>> polygon_base 
Starting >>> action_tutorials_interfaces
Starting >>> cpp_pubsub               
--- stderr: msg_srv_action_interface_example
CMake Error: The source directory "/home/seung/ros2_ws/src/msg_srv_action_interface_example" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
gmake: *** [Makefile:1179: cmake_check_build_system] Error 1
---
Failed   <<< msg_srv_action_interface_example [1.04s, exited with code 2]
Aborted  <<< action_tutorials_interfaces [0.86s]
Aborted  <<< polygon_base [0.95s]
Aborted  <<< cpp_pubsub [13.4s]                                

Summary: 0 packages finished [16.3s]
  1 package failed: msg_srv_action_interface_example
  3 packages aborted: action_tutorials_interfaces cpp_pubsub polygon_base
  1 package had stderr output: msg_srv_action_interface_example
  40 packages not processed

我看到 'msg_srv_action_interface_example' 文件夹位于 src 文件中,并且 git 克隆文件中也有相同的文件夹,我删除了 src 中的 'msg_srv_action_interface_example' 文件夹。现在我得到 1 个包失败,因为无法找到目录

相关内容