chubby6 2023-03-23 22:44 采纳率: 20%
浏览 61
已结题

关于#ros系统中编译#的问题,如何解绝决?

想用一用之前看的论文里ros系统机械臂仿真模型,下载下来一直编译不通过,求大伙给看看到底问题出在哪了?
用的软件是vscode,系统是ubuntu18.04,编译用的是catkin_make
报错的主要代码(图中也可看出来):

img

img

In file included from /home/liuyihao/nbv3_ws/src/rvp_evaluation/src/evaluate_external_clusters_node.cpp:2:0:
/home/liuyihao/nbv3_ws/src/rvp_evaluation/include/rvp_evaluation/evaluator_external_clusters.h:18:36: error: ‘make_shared’ is not a member of ‘pcl’
   pcl::PointIndicesPtr inds = pcl::make_shared<pcl::PointIndices>();
                                    ^~~~~~~~~~~
/home/liuyihao/nbv3_ws/src/rvp_evaluation/include/rvp_evaluation/evaluator_external_clusters.h:18:36: note: suggested alternatives:
In file included from /usr/include/c++/7/memory:81:0,
                 from /usr/include/boost/config/no_tr1/memory.hpp:21,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /opt/ros/melodic/include/ros/forwards.h:37,
                 from /opt/ros/melodic/include/ros/common.h:37,
                 from /opt/ros/melodic/include/ros/ros.h:43,
                 from /home/liuyihao/nbv3_ws/src/rvp_evaluation/src/evaluate_external_clusters_node.cpp:1:
/usr/include/c++/7/bits/shared_ptr.h:703:5: note:   ‘std::make_shared’
     make_shared(_Args&&... __args)
     ^~~~~~~~~~~
In file included from /usr/include/boost/smart_ptr/make_shared.hpp:17:0,
                 from /usr/include/boost/make_shared.hpp:14,
                 from /opt/ros/melodic/include/ros/forwards.h:38,
                 from /opt/ros/melodic/include/ros/common.h:37,
                 from /opt/ros/melodic/include/ros/ros.h:43,
                 from /home/liuyihao/nbv3_ws/src/rvp_evaluation/src/evaluate_external_clusters_node.cpp:1:
/usr/include/boost/smart_ptr/make_shared_array.hpp:41:1: note:   ‘boost::make_shared’
 make_shared(std::size_t size,
 ^~~~~~~~~~~
In file included from /usr/include/c++/7/memory:81:0,
                 from /usr/include/boost/config/no_tr1/memory.hpp:21,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /opt/ros/melodic/include/ros/forwards.h:37,
                 from /opt/ros/melodic/include/ros/common.h:37,
                 from /opt/ros/melodic/include/ros/ros.h:43,
                 from /home/liuyihao/nbv3_ws/src/rvp_evaluation/src/evaluate_external_clusters_node.cpp:1:
/usr/include/c++/7/bits/shared_ptr.h:703:5: note:   ‘std::make_shared’
     make_shared(_Args&&... __args)
     ^~~~~~~~~~~

/usr/bin/ld: /usr/local/lib/libOpen3D_3rdparty_vtk_vtkFiltersModeling-9.1.a(vtkLoopSubdivisionFilter.cxx.o): undefined reference to symbol '_ZTI33vtkApproximatingSubdivisionFilter'
/usr/lib/x86_64-linux-gnu/libvtkFiltersGeneral-6.3.so.6.3.0: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
rvp_evaluation/CMakeFiles/evaluate_planner.dir/build.make:1321: recipe for target '/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_planner' failed
make[2]: *** [/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_planner] Error 1
CMakeFiles/Makefile2:6456: recipe for target 'rvp_evaluation/CMakeFiles/evaluate_planner.dir/all' failed
make[1]: *** [rvp_evaluation/CMakeFiles/evaluate_planner.dir/all] Error 2
/usr/bin/ld: /usr/local/lib/libOpen3D_3rdparty_vtk_vtkFiltersModeling-9.1.a(vtkLoopSubdivisionFilter.cxx.o): undefined reference to symbol '_ZTI33vtkApproximatingSubdivisionFilter'
/usr/lib/x86_64-linux-gnu/libvtkFiltersGeneral-6.3.so.6.3.0: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
rvp_evaluation/CMakeFiles/evaluate_rosbag_no_gt.dir/build.make:1321: recipe for target '/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_rosbag_no_gt' failed
make[2]: *** [/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_rosbag_no_gt] Error 1
CMakeFiles/Makefile2:6588: recipe for target 'rvp_evaluation/CMakeFiles/evaluate_rosbag_no_gt.dir/all' failed
make[1]: *** [rvp_evaluation/CMakeFiles/evaluate_rosbag_no_gt.dir/all] Error 2
/usr/bin/ld: /usr/local/lib/libOpen3D_3rdparty_vtk_vtkFiltersModeling-9.1.a(vtkLoopSubdivisionFilter.cxx.o): undefined reference to symbol '_ZTI33vtkApproximatingSubdivisionFilter'
/usr/lib/x86_64-linux-gnu/libvtkFiltersGeneral-6.3.so.6.3.0: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
rvp_evaluation/CMakeFiles/evaluate_saved_tree.dir/build.make:1321: recipe for target '/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_saved_tree' failed
make[2]: *** [/home/liuyihao/nbv3_ws/devel/lib/rvp_evaluation/evaluate_saved_tree] Error 1
CMakeFiles/Makefile2:6720: recipe for target 'rvp_evaluation/CMakeFiles/evaluate_saved_tree.dir/all' failed
make[1]: *** [rvp_evaluation/CMakeFiles/evaluate_saved_tree.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2



  • 写回答

5条回答 默认 最新

  • M17迪Pq:0007 2023-03-23 23:29
    关注
    获得1.80元问题酬金

    error:‘make_shared' is not a member of 'pcl'是关键

    评论

报告相同问题?

问题事件

  • 系统已结题 3月31日
  • 修改了问题 3月23日
  • 创建了问题 3月23日

悬赏问题

  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画