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

    catkin_make报错

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    ros1 一键安装 docker ros
    2
    9
    1.4k
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 谁知谁
      谁知
      最后由 小鱼 编辑

      catkin_make报错
      系统 虚拟机ubuntu 22.04
      ros安装方式 docker+melodic(vscode加插件开发)
      出现的问题 运行catkin_make时,报错

      错误指令:

       CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
      Could not find a package configuration file provided by "styd_msgs" with
      any of the following names:
      
      styd_msgsConfig.cmake
      styd_msgs-config.cmake
      Add the installation prefix of "styd_msgs" to CMAKE_PREFIX_PATH or set
      "styd_msgs_DIR" to a directory containing one of the above files. If
      "styd_msgs" provides a separate development package or SDK, be sure it has
      been installed.
      Call Stack (most recent call first):
      learning_topic/CMakeLists.txt:10 (find_package)
      
      -- Configuring incomplete, errors occurred!
      See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeOutput.log".
      See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeError.log".
      Makefile:530: recipe for target 'cmake_check_build_system' failed
      make: *** [cmake_check_build_system] Error 1
      Invoking "make cmake_check_build_system" failed
      
      谁知谁 2 条回复 最后回复 回复 引用 0
      • 谁知谁
        谁知 @谁知
        最后由 编辑

        @谁知 会不会是docker导致找不到文件,本小白已经找了一下午解决方案,实在是解决不了了

        1 条回复 最后回复 回复 引用 0
        • 谁知谁
          谁知 @谁知
          最后由 谁知 编辑

          @小鱼 再发一遍完整的代码过程,求助求助

          root@0286770e46d5:/home/tian/catkin_ws# catkin_make
          Base path: /home/tian/catkin_ws
          Source space: /home/tian/catkin_ws/src
          Build space: /home/tian/catkin_ws/build
          Devel space: /home/tian/catkin_ws/devel
          Install space: /home/tian/catkin_ws/install
          ####
          #### Running command: "make cmake_check_build_system" in "/home/tian/catkin_ws/build"
          ####
          -- Using CATKIN_DEVEL_PREFIX: /home/tian/catkin_ws/devel
          -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
          -- This workspace overlays: /opt/ros/melodic
          -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
          -- Using PYTHON_EXECUTABLE: /usr/bin/python2
          -- Using Debian Python package layout
          -- Using empy: /usr/bin/empy
          -- Using CATKIN_ENABLE_TESTING: ON
          -- Call enable_testing()
          -- Using CATKIN_TEST_RESULTS_DIR: /home/tian/catkin_ws/build/test_results
          -- Found gtest sources under '/usr/src/googletest': gtests will be built
          -- Found gmock sources under '/usr/src/googletest': gmock will be built
          -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
          -- Using Python nosetests: /usr/bin/nosetests-2.7
          -- catkin 0.7.29
          -- BUILD_SHARED_LIBS is on
          -- BUILD_SHARED_LIBS is on
          -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          -- ~~  traversing 1 packages in topological order:
          -- ~~  - learning_topic
          -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          -- +++ processing catkin package: 'learning_topic'
          -- ==> add_subdirectory(learning_topic)
          -- Could NOT find styd_msgs (missing: styd_msgs_DIR)
          -- Could not find the required component 'styd_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
          CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
            Could not find a package configuration file provided by "styd_msgs" with
            any of the following names:
          
              styd_msgsConfig.cmake
              styd_msgs-config.cmake
          
            Add the installation prefix of "styd_msgs" to CMAKE_PREFIX_PATH or set
            "styd_msgs_DIR" to a directory containing one of the above files.  If
            "styd_msgs" provides a separate development package or SDK, be sure it has
            been installed.
          Call Stack (most recent call first):
            learning_topic/CMakeLists.txt:10 (find_package)
          
          
          -- Configuring incomplete, errors occurred!
          See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeOutput.log".
          See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeError.log".
          Makefile:530: recipe for target 'cmake_check_build_system' failed
          make: *** [cmake_check_build_system] Error 1
          Invoking "make cmake_check_build_system" failed
          root@0286770e46d5:/home/tian/catkin_ws# 
           *  History restored 
          
          root@0286770e46d5:/home/tian/catkin_ws# 
          
          小鱼小 1 条回复 最后回复 回复 引用 0
          • 小鱼小
            小鱼 技术大佬 @谁知
            最后由 编辑

            @谁知 在 catkin_make报错 中说:

            styd_msgsConfig

            你的名字搞错了,std_msgs ,全程标准消息接口, styd_msgs自然找不到.

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

            谁知谁 1 条回复 最后回复 回复 引用 0
            • 谁知谁
              谁知 @小鱼
              最后由 编辑

              @小鱼 我没有写过有关styd的代码鸭,请问应该怎样改动

              小鱼小 2 条回复 最后回复 回复 引用 0
              • 小鱼小
                小鱼 技术大佬 @谁知
                最后由 编辑

                @谁知 你在创建功能包的时候,手抖多敲了一个y,你自己没注意到而已,删掉重新创建一个即可.

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

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

                  @谁知 你看看键盘,t右边那个字母是不是y,明显是你手抖了

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

                  谁知谁 2 条回复 最后回复 回复 引用 0
                  • 谁知谁
                    谁知 @小鱼
                    最后由 编辑

                    @小鱼 收到,我去实验下,谢谢

                    1 条回复 最后回复 回复 引用 0
                    • 谁知谁
                      谁知 @小鱼
                      最后由 编辑

                      @小鱼
                      程序可以运行了!👍 👍 👍
                      小鱼,你是我的神!👍 👍 👍

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