安装moveit时的依赖性问题

时间:2018-05-22 04:55:34

标签: ros moveit

我正在尝试按照http://moveit.ros.org/install/source/

中的说明从源代码构建Moveit
wstool init .
wstool merge https://raw.githubusercontent.com/ros-planning/moveit/indigo-devel/moveit.rosinstall
wstool update
rosdep install -y --from-paths . --ignore-src --rosdistro indigo
cd ..
catkin config --extend /opt/ros/indigo --cmake-args -DCMAKE_BUILD_TYPE=Release
catkin build

然而,我遇到了依赖性问题并设法解决了一些问题。我无法理解这个错误。

    Errors     << moveit_ros_warehouse:make
    : undefined reference to `std::string mongo::integerToHex<int>(int)'
    : undefined reference to`mongo::logger::LogstreamBuilder::LogstreamBuilder(mongo::logger::LogDomain<mongo::logger::MessageEventEphemeral>*, std::string const&, mongo::logger::LogSeverity)'
    : undefined reference to `mongo::logger::LogstreamBuilder::~LogstreamBuilder()'
    : undefined reference to `mongo::logger::globalLogManager()'
    : undefined reference to `mongo::logger::LogstreamBuilder::makeStream()'
    : undefined reference to `mongo::invariantFailed(char const*, char const*, unsigned int)'



   Collect2: error: ld returned 1 exit status
    make[2]: *** [/home/smirani/ws_moveit/devel/.private/moveit_ros_warehouse/lib/moveit_ros_warehouse/moveit_warehouse_broadcast] Error 1
    make[1]: *** [warehouse/CMakeFiles/moveit_warehouse_broadcast.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....

collect2: error: ld returned 1 exit status
    make[1]: *** [warehouse/CMakeFiles/moveit_warehouse_import_from_text.dir/all] Error 2
    make[2]: *** [/home/smirani/ws_moveit/devel/.private/moveit_ros_warehouse/lib/moveit_ros_warehouse/moveit_save_to_warehouse] Error 1
    make[1]: *** [warehouse/CMakeFiles/moveit_save_to_warehouse.dir/all] Error 2
    make: *** [all] Error 2

Failed     << moveit_ros_warehouse:make                        [ Exited with code 2 ]                                                                                                                                                 
Failed    <<< moveit_ros_warehouse                             [ 0.6 seconds ]

1 个答案:

答案 0 :(得分:0)

这是一个依赖性问题。 您的链接器正在寻找MongoDB Libs。通过运行sudo apt-get install mongodb mongodb-dev

来仔细检查您是否拥有这些功能