|
发表于 2021-12-3 18:48:01
4396 浏览 2 回复
编译出错 ./compile_ego.sh
执行脚本 ./compile_ego.sh
编译出现如下问题:
/home/amov/Prometheus/Modules/ego_planner/ego-planner-swarm/src/planner/plan_manage/src/planner_manager.cpp:281: undefined reference to `ego_planner::PlanningVisualization::displayMultiInitPathList(std::vector<std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, std::allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >, std::allocator<std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, std::allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > > > >, double)'
CMakeFiles/ego_planner_node.dir/src/planner_manager.cpp.o: In function `std::_Sp_counted_ptr<AStar*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
/usr/include/c++/7/bits/shared_ptr_base.h:376: undefined reference to `AStar::~AStar()'
/home/amov/Prometheus/devel/lib/libbspline_opt.so: undefined reference to `fast_planner::ObjPredictor::evaluateConstVel(int, double)'
/home/amov/Prometheus/devel/lib/libbspline_opt.so: undefined reference to `AStar::AstarSearch(double, Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1>)'
/home/amov/Prometheus/devel/lib/libbspline_opt.so: undefined reference to `AStar::getPath()'
collect2: error: ld returned 1 exit status
ego-planner-swarm/src/planner/plan_manage/CMakeFiles/ego_planner_node.dir/build.make:466: recipe for target '/home/amov/Prometheus/devel/lib/ego_planner/ego_planner_node' failed
make[2]: *** [/home/amov/Prometheus/devel/lib/ego_planner/ego_planner_node] Error 1
CMakeFiles/Makefile2:6462: recipe for target 'ego-planner-swarm/src/planner/plan_manage/CMakeFiles/ego_planner_node.dir/all' failed
make[1]: *** [ego-planner-swarm/src/planner/plan_manage/CMakeFiles/ego_planner_node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j6 -l6" failed
Base path: /home/amov/Prometheus
这个错误出现的原因 和解决的方法?
youxia23已获得悬赏 3 阿木币最佳答案
还是没解决。。。
|
扫一扫浏览分享
|
|
|
|
|
|
|
发表于 2021-12-3 19:58:35
so 里面没找到定义,如果排除没加载上的话 。那么你就更新一下这个库。 可以试试 sudp apt upgrade |
|
|
|
|
|
|
|
楼主|
发表于 2021-12-4 16:09:49
|
|
|
|
|
|
|