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