小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
自定义接口编译报错
-
CMake Error at CMakeLists.txt:11 (find_package):
By not providing "Findexample_ros2_interfaces.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "example_ros2_interfaces", but CMake did not find one.Could not find a package configuration file provided by
"example_ros2_interfaces" with any of the following names:example_ros2_interfacesConfig.cmake example_ros2_interfaces-config.cmake
Add the installation prefix of "example_ros2_interfaces" to
CMAKE_PREFIX_PATH or set "example_ros2_interfaces_DIR" to a directory
containing one of the above files. If "example_ros2_interfaces" provides a
separate development package or SDK, be sure it has been installed.
Failed <<< example_interfaces_rclcpp [0.98s, exited with code 1]
Aborted <<< example_topic_rclpy [0.97s]Summary: 2 packages finished [1.22s]
1 package failed: example_interfaces_rclcpp
1 package aborted: example_topic_rclpy
1 package had stderr output: example_interfaces_rclcpp
yangruilin@yangruilin-virtual-machine:~/d21ros2/chapt3/chapt3_ws$ ^C
yangruilin@yangruilin-virtual-machine:~/d21ros2/chapt3/chapt3_ws$ colcon build
Starting >>> example_interfaces_rclcpp
Starting >>> example_service_rclcpp
Starting >>> example_topic_rclcpp
Starting >>> example_topic_rclpy
Finished <<< example_topic_rclcpp [0.80s]
Finished <<< example_service_rclcpp [0.83s]
--- stderr: example_interfaces_rclcpp
CMake Error at CMakeLists.txt:11 (find_package):
By not providing "Findexample_ros2_interfaces.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "example_ros2_interfaces", but CMake did not find one. -
-
@小鱼 好的谢谢
-
@3279725327 想问你你解决这个问题了吗,我检查过后依然无法编译