ivipsourcecode / DS-SLAM

GNU General Public License v3.0
686 stars 141 forks source link

Dependency conflict while making TUM example #27

Open kmfrick opened 4 years ago

kmfrick commented 4 years ago

The DS_SLAM_BUILD.sh file errors out while building the TUM example

CMake Warning at /opt/ros/kinetic/share/ros/core/rosbuild/public.cmake:509 (add_executable):
  Cannot generate a safe linker search path for target TUM because there is a
  cycle in the constraint graph:

    dir 0 is [/catkin_ws/devel/.private/tf/lib]
    dir 1 is [/catkin_ws/devel/.private/tf2_ros/lib]
    dir 2 is [/catkin_ws/devel/.private/tf2_py/lib]
    dir 3 is [/catkin_ws/devel/.private/tf2/lib]
    dir 4 is [/catkin_ws/devel/.private/tf2_msgs/lib]
    dir 5 is [/opt/ros/kinetic/lib]
    dir 6 is [/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/../../../Examples/ROS/ORB_SLAM2_PointMap_SegNetM/caffe-segnet-cudnn5/lib]
    dir 7 is [/opt/ros/kinetic/lib/x86_64-linux-gnu]
    dir 8 is [/catkin_ws/devel/lib]
    dir 9 is [/usr/lib/x86_64-linux-gnu/hdf5/serial/lib]
      dir 14 must precede it due to link library [libhdf5.so]
    dir 10 is [/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/../../../Thirdparty/DBoW2/lib]
    dir 11 is [/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/../../../Thirdparty/g2o/lib]
    dir 12 is [/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/../../../build]
    dir 13 is [/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/../../../Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/build]
    dir 14 is [/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib]
      dir 9 must precede it due to link library [libhdf5.so]
    dir 15 is [/usr/lib/openmpi/lib]

It compiles anyway, but won't this cause problems down the line?

zoeyuchao commented 4 years ago

If it can compile successfully, you can omit that. Maybe I should rewrite the CMakeLists, or welcome to pull requests~~