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

    colcon build失败

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    ros2 humble ros2编译报错 缺少依赖
    6
    31
    9.4k
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • L
      Leo_light @小伊
      最后由 编辑

      @小伊 在 colcon build失败 中说:

      在终端运行 python3 --version

      显示我的python版本为python3.11.5,我该怎么办

      1 条回复 最后回复 回复 引用 0
      • 小伊小
        机器人小伊
        最后由 编辑

        当你在使用 colcon build 命令时遇到失败,并且系统提示你检查 Python 版本,这通常意味着 colcon 或其依赖的某些部分与你的 Python 版本不兼容。虽然 colcon 旨在支持多个 Python 版本,但并非所有依赖库都能与最新的 Python 版本无缝兼容。

        以下是一些步骤来解决这个问题:

        1. 检查 colcon 的 Python 版本要求:

          • 访问 colcon 的官方文档或 GitHub 仓库,查看它支持的 Python 版本。
          • 如果 colcon 不支持 Python 3.11.5,你可能需要安装一个较低版本的 Python。
        2. 使用虚拟环境:

          • 使用 Python 的虚拟环境(如 venv 或 conda)来隔离和管理项目依赖。
          • 创建一个使用较低版本 Python 的虚拟环境,然后在该环境中安装 colcon 和其他依赖。
        3. 安装较低版本的 Python:

          • 如果你确定需要使用 colcon,并且它不支持 Python 3.11.5,你可以考虑安装一个较低版本的 Python,如 Python 3.8 或 3.9。
          • 安装后,确保在终端中使用新安装的 Python 版本。
        4. 修改 colcon 配置文件:

          • 检查是否有 colcon 的配置文件(如 setup.py 或 pyproject.toml),看看是否可以指定使用特定版本的 Python。
        5. 查看错误日志:

          • 仔细查看 colcon build 失败时的错误输出,可能会有更具体的信息指示哪个库或模块与 Python 版本不兼容。
        6. 更新或修改依赖:

          • 如果可能,尝试更新 colcon 或其依赖到最新版本,这些新版本可能已经修复了与 Python 3.11.5 的兼容性问题。
          • 或者,查找是否有替代的库或工具可以替代 colcon,这些工具可能与你的 Python 版本更兼容。
        7. 社区和文档:

          • 搜索 colcon 的社区论坛、GitHub 问题跟踪器或 Stack Overflow,看看是否有其他人遇到并解决了类似的问题。

        选择哪个解决方案取决于你的具体需求,比如项目的依赖、colcon 的版本支持以及你愿意投入多少时间来解决兼容性问题。如果可能的话,保持使用广泛支持的 Python 版本通常是一个好主意,因为这样可以减少遇到兼容性问题的机会。


        以上为生成回答,仅供参考~

        我是小伊,已接入ChatGpt,所有回复,仅供参考~

        1 条回复 最后回复 回复 引用 0
        • L
          Leo_light @小伊
          最后由 编辑

          @小伊 检查显示我的python版本为python3.11.5,这是导致报错的原因吗?如果是,我该怎么做

          1 条回复 最后回复 回复 引用 0
          • 小伊小
            机器人小伊
            最后由 编辑

            首先,Python 版本 3.11.5 本身通常不会导致错误,除非你的代码或依赖库与这个版本的 Python 不兼容。然而,要确定这是否是导致你遇到错误的原因,我们需要更多的信息,比如具体的错误信息或代码片段。

            不过,这里有一些一般性的步骤和建议,你可以尝试来解决可能因 Python 版本引起的问题:

            1. 查看错误信息:

              • 仔细阅读错误消息,看看是否有提到与 Python 版本相关的问题。
              • 错误信息通常会给出问题发生的位置(文件名和行号),这可以帮助你定位问题。
            2. 检查依赖库:

              • 确认你的项目中使用的所有库都支持 Python 3.11。有些库可能还没有更新以支持最新的 Python 版本。
              • 你可以查看这些库的文档或 GitHub 仓库的发布说明来了解支持的 Python 版本。
            3. 使用虚拟环境:

              • 使用 Python 虚拟环境(如 venv 或 conda)来隔离和管理项目依赖。
              • 这有助于确保项目使用的库版本与 Python 版本兼容。
            4. 更新或降级库:

              • 如果发现某个库与 Python 3.11 不兼容,你可以尝试更新该库到最新版本,或者如果最新版本仍然不兼容,考虑降级到一个较旧的版本。
            5. 查看社区和论坛:

              • 搜索是否有其他开发者遇到类似问题,并查看他们是如何解决的。
              • 可以在 Stack Overflow、GitHub Issues、Reddit 的 r/learnpython 等地方寻找帮助。
            6. 考虑降级 Python 版本:

              • 如果你的项目依赖的库不支持 Python 3.11,并且暂时无法找到替代方案,你可能需要考虑降级到一个较旧的 Python 版本(如 Python 3.8 或 3.9),这些版本通常有更多的库支持。
            7. 调试和测试:

              • 逐步调试你的代码,查看问题是否在某个特定的函数调用或代码块中发生。
              • 编写单元测试来验证代码的各个部分是否按预期工作。

            如果你能提供具体的错误信息或代码示例,我可以提供更具体的帮助。


            以上为生成回答,仅供参考~

            我是小伊,已接入ChatGpt,所有回复,仅供参考~

            L 1 条回复 最后回复 回复 引用 0
            • L
              Leo_light @小伊
              最后由 编辑

              @小伊 我在运行python3 src/drl_navigation_ros2/train.py时报错Traceback (most recent call last):
              File "/media/linux/OS_tmp/DL_workplace/DRL-Robot-Navigation-ROS2/src/drl_navigation_ros2/train.py", line 5, in <module>
              from ros_python import ROS_env
              File "/media/linux/OS_tmp/DL_workplace/DRL-Robot-Navigation-ROS2/src/drl_navigation_ros2/ros_python.py", line 2, in <module>
              import rclpy
              File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/init.py", line 49, in <module>
              from rclpy.signals import install_signal_handlers
              File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/signals.py", line 15, in <module>
              from rclpy.exceptions import InvalidHandle
              File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/exceptions.py", line 15, in <module>
              from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy
              File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/impl/implementation_singleton.py", line 32, in <module>
              rclpy_implementation = import_c_library('._rclpy_pybind11', package)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/opt/ros/humble/lib/python3.10/site-packages/rpyutils/import_c_library.py", line 39, in import_c_library
              return importlib.import_module(name, package=package)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/home/linux/anaconda3/lib/python3.11/importlib/init.py", line 126, in import_module
              return _bootstrap._gcd_import(name[level:], package, level)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ModuleNotFoundError: No module named 'rclpy._rclpy_pybind11'
              The C extension '/opt/ros/humble/lib/python3.10/site-packages/_rclpy_pybind11.cpython-311-x86_64-linux-gnu.so' isn't present on the system. Please refer to 'https://docs.ros.org/en/humble/Guides/Installation-Troubleshooting.html#import-failing-without-library-present-on-the-system' for possible solutions

              经过检查,我的python版本为python3.11.5,是这个导致了问题吗,该怎么解决

              1 条回复 最后回复 回复 引用 0
              • 小伊小
                机器人小伊
                最后由 编辑

                从你提供的错误信息来看,问题确实与Python版本有关。错误提示表明ROS 2的Python绑定(rclpy)尝试加载一个为Python 3.10编译的C扩展模块(_rclpy_pybind11.cpython-311-x86_64-linux-gnu.so),但实际上你的系统使用的是Python 3.11。这个不匹配导致Python无法找到正确的模块。

                ROS 2 Humble目前主要支持Python 3.8和Python 3.10。虽然有时可以通过一些方法使用其他版本的Python,但这通常不是官方推荐或支持的做法,并且可能会遇到各种兼容性问题。

                为了解决这个问题,你可以采取以下几个步骤:

                1. 切换Python版本:

                  • 安装Python 3.10(如果尚未安装)。你可以使用如pyenv或conda这样的工具来管理不同的Python版本。
                  • 确保你的ROS 2环境使用正确的Python版本。如果你使用conda,可以在创建或激活环境时指定Python版本。如果使用pyenv,可以在shell中设置Python版本。
                2. 重新安装ROS 2:

                  • 在切换Python版本后,你可能需要重新编译或安装ROS 2,以确保所有依赖项和绑定都正确地为新的Python版本编译。
                3. 验证环境:

                  • 在启动你的ROS 2节点或脚本之前,确保你的Python环境变量(如PYTHONPATH)正确设置,并且指向了正确的Python解释器和库。
                4. 使用虚拟环境:

                  • 为了避免系统级的Python环境冲突,建议使用Python虚拟环境(如venv或conda环境)。这可以确保你的ROS 2项目在一个干净、隔离的环境中运行。
                5. 查阅文档和社区:

                  • 如果在切换Python版本或重新安装ROS 2时遇到问题,查阅ROS 2的官方文档或社区论坛可能会提供帮助。

                通过以上步骤,你应该能够解决因Python版本不匹配导致的ROS 2问题。如果问题仍然存在,可能需要更详细地检查你的系统配置或寻求来自ROS社区的进一步帮助。


                以上为生成回答,仅供参考~

                我是小伊,已接入ChatGpt,所有回复,仅供参考~

                1 条回复 最后回复 回复 引用 0
                • S
                  shisansan
                  最后由 编辑

                  parallels@ubuntu-linux-2404:~/chapt4/chapt4_ws$ colcon build
                  Starting >>> chapt4_interfaces
                  --- stderr: chapt4_interfaces
                  CMake Error at /opt/ros/jazzy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:95 (message):
                  rosidl_generate_interfaces() the passed file 'srv/FaceDetector' doesn't
                  exist relative to the CMAKE_CURRENT_SOURCE_DIR
                  '/home/parallels/chapt4/chapt4_ws/src/chapt4_interfaces'
                  Call Stack (most recent call first):
                  CMakeLists.txt:13 (rosidl_generate_interfaces)


                  Failed <<< chapt4_interfaces [0.33s, exited with code 1]

                  Summary: 0 packages finished [0.50s]
                  1 package failed: chapt4_interfaces
                  1 package had stderr output: chapt4_interfaces

                  1 条回复 最后回复 回复 引用 0
                  • 2
                    2801847874
                    最后由 编辑

                    此回复已被删除!
                    1 条回复 最后回复 回复 引用 0
                    • 2
                      2801847874
                      最后由 编辑

                      @小伊 小伊我colcon build构建的优点问题,帮我看看
                      zsb@zsb-virtual-machine:~/chat4$ colcon build
                      Starting >>> chat4_interfaces
                      -- The C compiler identification is GNU 11.4.0
                      -- The CXX compiler identification is GNU 11.4.0
                      -- Detecting C compiler ABI info
                      -- Detecting C compiler ABI info - done
                      -- Check for working C compiler: /usr/bin/cc - skipped
                      -- Detecting C compile features
                      -- Detecting C compile features - done
                      -- Detecting CXX compiler ABI info
                      -- Detecting CXX compiler ABI info - done
                      -- Check for working CXX compiler: /usr/bin/c++ - skipped
                      -- Detecting CXX compile features
                      -- Detecting CXX compile features - done
                      -- Found ament_cmake: 1.3.12 (/opt/ros/humble/share/ament_cmake/cmake)
                      -- Found Python3: /usr/bin/python3 (found version "3.10.12") found components: Interpreter
                      -- Found sensor_msgs: 4.9.0 (/opt/ros/humble/share/sensor_msgs/cmake)
                      -- Found rosidl_generator_c: 3.1.7 (/opt/ros/humble/share/rosidl_generator_c/cmake)
                      -- Found rosidl_adapter: 3.1.7 (/opt/ros/humble/share/rosidl_adapter/cmake)
                      -- Found rosidl_generator_cpp: 3.1.7 (/opt/ros/humble/share/rosidl_generator_cpp/cmake)
                      -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
                      -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
                      -- Found rosidl_default_generators: 1.2.0 (/opt/ros/humble/share/rosidl_default_generators/cmake)
                      -- Found ament_cmake_ros: 0.10.0 (/opt/ros/humble/share/ament_cmake_ros/cmake)
                      -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
                      -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
                      -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.6")
                      -- Found python_cmake_module: 0.10.0 (/opt/ros/humble/share/python_cmake_module/cmake)
                      -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable version "3.10.12", minimum required is "3.5")
                      -- Using PYTHON_EXECUTABLE: /usr/bin/python3
                      -- Using PYTHON_INCLUDE_DIRS: /usr/include/python3.10
                      -- Using PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython3.10.so
                      -- Found PythonExtra: .so
                      -- Found ament_lint_auto: 0.12.14 (/opt/ros/humble/share/ament_lint_auto/cmake)
                      -- Added test 'lint_cmake' to check CMake code style
                      -- Added test 'xmllint' to check XML markup files
                      -- Configuring done
                      -- Generating done
                      -- Build files have been written to: /home/zsb/chat4/build/chat4_interfaces
                      [ 3%] Generating C code for ROS interfaces
                      [ 6%] Generating C++ code for ROS interfaces
                      [ 6%] Built target ament_cmake_python_copy_chat4_interfaces
                      running egg_info
                      creating chat4_interfaces.egg-info
                      writing chat4_interfaces.egg-info/PKG-INFO
                      writing dependency_links to chat4_interfaces.egg-info/dependency_links.txt
                      writing top-level names to chat4_interfaces.egg-info/top_level.txt
                      writing manifest file 'chat4_interfaces.egg-info/SOURCES.txt'
                      reading manifest file 'chat4_interfaces.egg-info/SOURCES.txt'
                      writing manifest file 'chat4_interfaces.egg-info/SOURCES.txt'
                      [ 6%] Built target ament_cmake_python_build_chat4_interfaces_egg
                      [ 6%] Built target chat4_interfaces__cpp
                      [ 9%] Generating C++ type support dispatch for ROS interfaces
                      [ 12%] Building C object CMakeFiles/chat4_interfaces__rosidl_generator_c.dir/rosidl_generator_c/chat4_interfaces/srv/detail/face_detector__functions.c.o
                      [ 16%] Generating C++ type support for eProsima Fast-RTPS
                      [ 19%] Generating C++ introspection for ROS interfaces
                      [ 22%] Linking C shared library libchat4_interfaces__rosidl_generator_c.so
                      [ 22%] Built target chat4_interfaces__rosidl_generator_c
                      [ 25%] Generating C type support for eProsima Fast-RTPS
                      [ 29%] Building CXX object CMakeFiles/chat4_interfaces__rosidl_typesupport_cpp.dir/rosidl_typesupport_cpp/chat4_interfaces/srv/face_detector__type_support.cpp.o
                      [ 32%] Generating C introspection for ROS interfaces
                      [ 35%] Generating C type support dispatch for ROS interfaces
                      [ 38%] Building CXX object CMakeFiles/chat4_interfaces__rosidl_typesupport_fastrtps_cpp.dir/rosidl_typesupport_fastrtps_cpp/chat4_interfaces/srv/detail/dds_fastrtps/face_detector__type_support.cpp.o
                      [ 41%] Building CXX object CMakeFiles/chat4_interfaces__rosidl_typesupport_introspection_cpp.dir/rosidl_typesupport_introspection_cpp/chat4_interfaces/srv/detail/face_detector__type_support.cpp.o
                      [ 45%] Building CXX object CMakeFiles/chat4_interfaces__rosidl_typesupport_c.dir/rosidl_typesupport_c/chat4_interfaces/srv/face_detector__type_support.cpp.o
                      [ 48%] Linking CXX shared library libchat4_interfaces__rosidl_typesupport_c.so
                      [ 51%] Building C object CMakeFiles/chat4_interfaces__rosidl_typesupport_introspection_c.dir/rosidl_typesupport_introspection_c/chat4_interfaces/srv/detail/face_detector__type_support.c.o
                      [ 54%] Building CXX object CMakeFiles/chat4_interfaces__rosidl_typesupport_fastrtps_c.dir/rosidl_typesupport_fastrtps_c/chat4_interfaces/srv/detail/face_detector__type_support_c.cpp.o
                      [ 58%] Linking C shared library libchat4_interfaces__rosidl_typesupport_introspection_c.so
                      [ 58%] Built target chat4_interfaces__rosidl_typesupport_c
                      [ 58%] Built target chat4_interfaces__rosidl_typesupport_introspection_c
                      [ 61%] Linking CXX shared library libchat4_interfaces__rosidl_typesupport_cpp.so
                      [ 61%] Built target chat4_interfaces__rosidl_typesupport_cpp
                      [ 64%] Linking CXX shared library libchat4_interfaces__rosidl_typesupport_fastrtps_c.so
                      [ 67%] Linking CXX shared library libchat4_interfaces__rosidl_typesupport_fastrtps_cpp.so
                      [ 70%] Linking CXX shared library libchat4_interfaces__rosidl_typesupport_introspection_cpp.so
                      [ 70%] Built target chat4_interfaces__rosidl_typesupport_fastrtps_cpp
                      [ 70%] Built target chat4_interfaces__rosidl_typesupport_introspection_cpp
                      [ 70%] Built target chat4_interfaces__rosidl_typesupport_fastrtps_c
                      [ 70%] Built target chat4_interfaces
                      [ 74%] Generating Python code for ROS interfaces
                      [ 74%] Built target chat4_interfaces__py
                      [ 77%] Building C object CMakeFiles/chat4_interfaces__rosidl_generator_py.dir/rosidl_generator_py/chat4_interfaces/srv/_face_detector_s.c.o
                      [ 80%] Linking C shared library rosidl_generator_py/chat4_interfaces/libchat4_interfaces__rosidl_generator_py.so
                      [ 80%] Built target chat4_interfaces__rosidl_generator_py
                      [ 83%] Building C object CMakeFiles/chat4_interfaces__rosidl_typesupport_introspection_c__pyext.dir/rosidl_generator_py/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_introspection_c.c.o
                      [ 87%] Building C object CMakeFiles/chat4_interfaces__rosidl_typesupport_c__pyext.dir/rosidl_generator_py/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_c.c.o
                      [ 90%] Building C object CMakeFiles/chat4_interfaces__rosidl_typesupport_fastrtps_c__pyext.dir/rosidl_generator_py/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_fastrtps_c.c.o
                      [ 93%] Linking C shared library rosidl_generator_py/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_introspection_c.cpython-310-x86_64-linux-gnu.so
                      [ 96%] Linking C shared library rosidl_generator_py/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_c.cpython-310-x86_64-linux-gnu.so
                      [100%] Linking C shared library rosidl_generator_py/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_fastrtps_c.cpython-310-x86_64-linux-gnu.so
                      [100%] Built target chat4_interfaces__rosidl_typesupport_introspection_c__pyext
                      [100%] Built target chat4_interfaces__rosidl_typesupport_c__pyext
                      [100%] Built target chat4_interfaces__rosidl_typesupport_fastrtps_c__pyext
                      -- Install configuration: ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/ament_index/resource_index/rosidl_interfaces/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/face_detector.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__type_support.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__functions.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__struct.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__functions.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg/rosidl_generator_c__visibility_control.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/library_path.sh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/library_path.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_generator_c.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_generator_c.so" to ""
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__rosidl_typesupport_fastrtps_c.h
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg/rosidl_typesupport_fastrtps_c__visibility_control.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_fastrtps_c.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_fastrtps_c.so" to ""
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/face_detector.hpp
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__builder.hpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__struct.hpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__traits.hpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__type_support.hpp
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg/rosidl_generator_cpp__visibility_control.hpp
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__rosidl_typesupport_fastrtps_cpp.hpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/dds_fastrtps
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg/rosidl_typesupport_fastrtps_cpp__visibility_control.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_fastrtps_cpp.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_fastrtps_cpp.so" to ""
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__type_support.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__rosidl_typesupport_introspection_c.h
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_introspection_c.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_introspection_c.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_c.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_c.so" to ""
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv
                      -- Up-to-date: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__type_support.cpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/include/chat4_interfaces/chat4_interfaces/srv/detail/face_detector__rosidl_typesupport_introspection_cpp.hpp
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_introspection_cpp.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_introspection_cpp.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_cpp.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_typesupport_cpp.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/pythonpath.sh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/pythonpath.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces-0.0.0-py3.10.egg-info
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces-0.0.0-py3.10.egg-info/PKG-INFO
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces-0.0.0-py3.10.egg-info/top_level.txt
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces-0.0.0-py3.10.egg-info/SOURCES.txt
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces-0.0.0-py3.10.egg-info/dependency_links.txt
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_fastrtps_c.cpython-310-x86_64-linux-gnu.so
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_c.cpython-310-x86_64-linux-gnu.so
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_fastrtps_c.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv/_face_detector_s.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv/init.py
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv/_face_detector.py
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/init.py
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_c.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_introspection_c.cpython-310-x86_64-linux-gnu.so
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/_chat4_interfaces_s.ep.rosidl_typesupport_introspection_c.c
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/libchat4_interfaces__rosidl_generator_py.so
                      Listing '/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces'...
                      Compiling '/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/init.py'...
                      Listing '/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv'...
                      Compiling '/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv/init.py'...
                      Compiling '/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/srv/_face_detector.py'...
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_fastrtps_c.cpython-310-x86_64-linux-gnu.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_fastrtps_c.cpython-310-x86_64-linux-gnu.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_introspection_c.cpython-310-x86_64-linux-gnu.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_introspection_c.cpython-310-x86_64-linux-gnu.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_c.cpython-310-x86_64-linux-gnu.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/local/lib/python3.10/dist-packages/chat4_interfaces/chat4_interfaces_s__rosidl_typesupport_c.cpython-310-x86_64-linux-gnu.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_generator_py.so
                      -- Set runtime path of "/home/zsb/chat4/install/chat4_interfaces/lib/libchat4_interfaces__rosidl_generator_py.so" to ""
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/srv/FaceDetector.idl
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/srv/FaceDetector.srv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/srv/FaceDetector_Request.msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/srv/FaceDetector_Response.msg
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/ament_index/resource_index/package_run_dependencies/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/ament_index/resource_index/parent_prefix_path/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/ament_prefix_path.sh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/ament_prefix_path.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/path.sh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/environment/path.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/local_setup.bash
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/local_setup.sh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/local_setup.zsh
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/local_setup.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/package.dsv
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/ament_index/resource_index/packages/chat4_interfaces
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_generator_cExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_generator_cExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_typesupport_fastrtps_cExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_typesupport_fastrtps_cExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_generator_cppExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_typesupport_fastrtps_cppExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_typesupport_fastrtps_cppExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_introspection_cExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_introspection_cExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_cExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_cExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_introspection_cppExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_introspection_cppExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_cppExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfaces__rosidl_typesupport_cppExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_generator_pyExport.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/export_chat4_interfaces__rosidl_generator_pyExport-noconfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/rosidl_cmake-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/ament_cmake_export_include_directories-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/ament_cmake_export_libraries-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/ament_cmake_export_targets-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/rosidl_cmake_export_typesupport_targets-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/rosidl_cmake_export_typesupport_libraries-extras.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfacesConfig.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/cmake/chat4_interfacesConfig-version.cmake
                      -- Installing: /home/zsb/chat4/install/chat4_interfaces/share/chat4_interfaces/package.xml
                      Finished <<< chat4_interfaces [4.19s]
                      zsb@zsb-virtual-machine:~/chat4$ source install/setup.bash
                      bash: install/setup.bash: 没有那个文件或目录

                      1 条回复 最后回复 回复 引用 0
                      • 2
                        2801847874
                        最后由 编辑

                        @小伊 我colcon build 构建的输出非常多,之后显示
                        zsb@zsb-virtual-machine:~/chat4$ source install/setup.bash
                        bash: install/setup.bash: 没有那个文件或目录

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