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

    Nav2源码安装colcon build出现很多问题

    已定时 已固定 已锁定 已移动
    Nav2
    nav2源码安装有错误提示 ros2-humble
    2
    3
    736
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 10191161081
      歪比巴卜
      最后由 编辑

      至于问题有点多,我放图可能不太好。我是在我自己conda的 ros2环境下操作的。就一直出现问题,一会是缺numpy,一会是缺empy 然后cmake的又缺了。然后现在又有这些问题,编译不成功。。。,以下是一段输出。我想问一下这难道跟我的conda环境有关吗?计算机小白,只知道pip对于不同环境会有自己的包

      CMake Warning at src/CMakeLists.txt:1 (add_library):
        Cannot generate a safe runtime search path for target nav2_util_core
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      
      
      CMake Warning at src/CMakeLists.txt:26 (add_executable):
        Cannot generate a safe runtime search path for target lifecycle_bringup
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_node_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:3 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_service_client
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:9 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_string_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:13 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_lifecycle_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:17 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_actions because
        files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:21 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_lifecycle_node
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:25 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target
        test_lifecycle_cli_node because files in some directories may conflict with
        libraries in implicit directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:29 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_geometry_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:33 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_odometry_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:37 (ament_add_gtest)
      
      
      CMake Warning at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
        Cannot generate a safe runtime search path for target test_robot_utils
        because files in some directories may conflict with libraries in implicit
        directories:
      
          runtime library [libpython3.10.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
            /home/ros2/miniconda3/envs/ros2/lib
      
        Some of these libraries may not be found correctly.
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
        /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
        test/CMakeLists.txt:41 (ament_add_gtest)
      
      
      ---
      Finished <<< nav2_util [50.4s]
      Starting >>> nav_2d_utils
      Starting >>> nav2_behavior_tree
      Starting >>> nav2_lifecycle_manager
      Starting >>> nav2_map_server                                                                                         
      --- stderr: nav2_map_server                                                                                                                                           
      CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
        GRAPHICSMAGICKCPP_LIBRARIES (missing: GRAPHICSMAGICKCPP_INCLUDE_DIRS)
      Call Stack (most recent call first):
        /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
        cmake_modules/FindGRAPHICSMAGICKCPP.cmake:31 (find_package_handle_standard_args)
        CMakeLists.txt:17 (find_package)
      
      
      1 条回复 最后回复 回复 引用 0
      • 10191161081
        歪比巴卜
        最后由 编辑

        --- stderr: nav2_amcl                                                                                                                                                   
        /usr/bin/ld: 找不到 /lib64/libc.so.6: 没有那个文件或目录
        /usr/bin/ld: 找不到 /usr/lib64/libc_nonshared.a: 没有那个文件或目录
        /usr/bin/ld: 找不到 /lib64/librt.so.1: 没有那个文件或目录
        collect2: error: ld returned 1 exit status
        gmake[2]: *** [src/map/CMakeFiles/map_lib.dir/build.make:145:src/map/libmap_lib.so] 错误 1
        gmake[1]: *** [CMakeFiles/Makefile2:293:src/map/CMakeFiles/map_lib.dir/all] 错误 2
        gmake: *** [Makefile:146:all] 错误 2
        ---
        Failed   <<< nav2_amcl [0.40s, exited with code 2]
        
        

        现在是报这个问题了,鱼哥哥,帮我看看

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

          @1019116108 https://fishros.org.cn/forum/topic/554/jupyter新建python3文件终端报错-导入rclpy报错/20

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

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