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

    自定义接口编译报错

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    编译出错 ros2 添加接口
    3
    4
    391
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 32797253273
      printf("⁧⁧ ;("⁧‭
      最后由 编辑

      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.

      小鱼小 1 条回复 最后回复 回复 引用 0
      • 小鱼小
        小鱼 技术大佬 @3279725327
        最后由 编辑

        @3279725327 在 自定义接口编译报错 中说:

        example_ros2_interfaces

        检查代码中是否有 find_package(example_ros2_interfaces)

        新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

        32797253273 1 条回复 最后回复 回复 引用 0
        • 32797253273
          printf("⁧⁧ ;("⁧‭ @小鱼
          最后由 编辑

          @小鱼 好的谢谢

          再 1 条回复 最后回复 回复 引用 0
          • 再
            再道 @3279725327
            最后由 编辑

            @3279725327 想问你你解决这个问题了吗,我检查过后依然无法编译

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