小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
一键安装cartographer报错,编译失败
-
一键安装cartographer报错,编译失败
RUN Choose Task:[请输入括号内的数字]
---众多工具,等君来用---
[1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
[2]:一键安装:github桌面版(小鱼常用的github客户端)
[3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
[4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
[5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
[6]:一键安装:nodejs
[7]:一键安装:VsCode开发工具
[8]:一键安装:Docker
[9]:一键安装:Cartographer(内测版v0.1)
[10]:一键安装:微信(可以在Linux上使用的微信)
[11]:一键安装:ROS+Docker(支持所有版本ROS/ROS2)
[12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:9
请输入[]内的数字以选择:9
--2023-04-30 16:16:15-- http://fishros.com/install/install1s/tools/tool_install_cartographer.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3063 (3.0K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_cartographer.py’/tmp/fishinstall/tools/tool_install_cartographer.p 100%[===============================================================================================================>] 2.99K --.-KB/s in 0s
2023-04-30 16:16:16 (158 MB/s) - ‘/tmp/fishinstall/tools/tool_install_cartographer.py’ saved [3063/3063]
--2023-04-30 16:16:16-- http://fishros.com/install/install1s/tools/tool_config_rosdep.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 857 [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_rosdep.py’/tmp/fishinstall/tools/tool_config_rosdep.py 100%[===============================================================================================================>] 857 --.-KB/s in 0s
2023-04-30 16:16:16 (56.1 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosdep.py’ saved [857/857]
欢迎使用一键安装Cartographer,本工具由作者众筹提供
欢迎使用一键编译安装Cartographer,该工具将会以当前目录作为工作区,创建src文件夹并进行cartographer的编译安装
使用一键安装前,若未安装ROS或出现错误,可以使用一键安装ROS
检测到您的系统版ROS版本为:noetic
Run CMD Task:[sudo apt update]
[-]Result:success --upgradable' to see them.e [4,685 B]Run CMD Task:[sudo apt install ninja-build stow git -y]
[-]Result:success e and 6 not upgraded.nger required:Run CMD Task:[mkdir -p cartographer_ws/src]
[-]Result:successRun CMD Task:[git clone https://gitee.com/yuzi99url/cartographer_ros.git]
[-]Result:successRun CMD Task:[git clone https://gitee.com/yuzi99url/cartographer.git]
[-]Result:success欢迎使用模板工程,本工具由作者小鱼提供
Run CMD Task:[sudo apt install python3-pip -y]
[-]Result:success e and 6 not upgraded.nger required:Run CMD Task:[sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple rosdepc]
[-]Result:success in /usr/local/lib/python3.8/dist-packages (from rosdep->rosdepc) (67.7.2)Run CMD Task:[sudo rosdepc init]
[-]Result:success hros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)Run CMD Task:[sudo rosdepc fix-permissions]
[-]Result:success hros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)已为您安装好rosdepc,请使用:
rosdepc update
进行测试更新,最后欢迎关注微信公众号《鱼香ROS》
Run CMD Task:[rosdepc update --include-eol-distros]
[-]Result:success hros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)Run CMD Task:[rosdepc install --from-paths src --ignore-src --rosdistro=noetic -y]
[-]Result:code:1 -----------------------------------Run CMD Task:[sudo apt-get remove ros-noetic-abseil-cpp -y]
[-]Result:code:100Run CMD Task:[bash src/cartographer/scripts/install_abseil.sh]
[-]Result:success kgconfig/absl_utility.pcs.access.pccl.pclper.pc_util.pc.h.h.o.oles.cc.oon.cc.ost_util.cc.ooRun CMD Task:[sudo mv /usr/bin/protoc /usr/bin/protoc.bk]
[-]Result:successRun CMD Task:[sudo ln -s /usr/local/bin/protoc /usr/bin/protoc]
[-]Result:successRun CMD Task:[bash src/cartographer/scripts/install_proto3.sh]
[-]Result:success buf/protobuf-config.cmakeen.cmakeehl.h_msvc.hc.htomic.hoogle/protobuf/compiler/js/js_generator.cc.otor.cc.os.cc.o.o.o.o.ooRun CMD Task:[catkin_make_isolated --install --use-ninja]
[-]Result:code:127Run CMD Task:[sudo chmod -R 777 cartographer_ws]
[-]Result:success欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
手动尝试编译后发现原因如下:
CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.rotation_delta_cost_functor_3d_test"
links to target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.rotation_delta_cost_functor_3d_test"
links to target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.rotation_delta_cost_functor_3d_test"
links to target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.interpolated_grid_test"
links to target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.interpolated_grid_test"
links to target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.interpolated_grid_test"
links to target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.interpolated_grid_test"
links to target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.io.probability_grid_points_processor_test" links to
target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.io.probability_grid_points_processor_test" links to
target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.io.probability_grid_points_processor_test" links to
target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.io.probability_grid_points_processor_test" links to
target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.real_time_correlative_scan_matcher_3d_test"
links to target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.real_time_correlative_scan_matcher_3d_test"
links to target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.real_time_correlative_scan_matcher_3d_test"
links to target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.real_time_correlative_scan_matcher_3d_test"
links to target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.internal.trajectory_collator_test" links to
target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.internal.trajectory_collator_test" links to
target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.internal.trajectory_collator_test" links to
target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.internal.trajectory_collator_test" links to
target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.precomputation_grid_3d_test"
links to target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.precomputation_grid_3d_test"
links to target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.precomputation_grid_3d_test"
links to target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target
"cartographer.mapping.internal.3d.scan_matching.precomputation_grid_3d_test"
links to target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.compressed_point_cloud_test" links to target
"CUDA::cublas" but the target was not found. Perhaps a find_package() call
is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.compressed_point_cloud_test" links to target
"CUDA::cudart" but the target was not found. Perhaps a find_package() call
is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.compressed_point_cloud_test" links to target
"CUDA::cusolver" but the target was not found. Perhaps a find_package()
call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.sensor.compressed_point_cloud_test" links to target
"CUDA::cusparse" but the target was not found. Perhaps a find_package()
call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:50 (add_executable):
Target "cartographer_print_configuration" links to target "CUDA::cublas"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:208 (google_binary)CMake Error at cmake/functions.cmake:50 (add_executable):
Target "cartographer_print_configuration" links to target "CUDA::cudart"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:208 (google_binary)CMake Error at cmake/functions.cmake:50 (add_executable):
Target "cartographer_print_configuration" links to target "CUDA::cusolver"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:208 (google_binary)CMake Error at cmake/functions.cmake:50 (add_executable):
Target "cartographer_print_configuration" links to target "CUDA::cusparse"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:208 (google_binary)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.mapping.internal.connected_components_test" links to
target "CUDA::cublas" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.mapping.internal.connected_components_test" links to
target "CUDA::cudart" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.mapping.internal.connected_components_test" links to
target "CUDA::cusolver" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at cmake/functions.cmake:36 (add_executable):
Target "cartographer.mapping.internal.connected_components_test" links to
target "CUDA::cusparse" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
CMakeLists.txt:324 (google_test)CMake Error at CMakeLists.txt:187 (add_library):
Target "cartographer" links to target "CUDA::cublas" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?CMake Error at CMakeLists.txt:187 (add_library):
Target "cartographer" links to target "CUDA::cudart" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?CMake Error at CMakeLists.txt:187 (add_library):
Target "cartographer" links to target "CUDA::cusolver" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?CMake Error at CMakeLists.txt:187 (add_library):
Target "cartographer" links to target "CUDA::cusparse" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?感觉像是没有找到CUDA或者是google_test,google_binary,安装后同样报错
求限于小鱼大大帮忙看下解决