紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
Nav2源码安装colcon build出现很多问题
-
至于问题有点多,我放图可能不太好。我是在我自己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)
-
--- 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]
现在是报这个问题了,鱼哥哥,帮我看看
-