1 Reply Latest reply on Nov 27, 2017 11:03 AM by Intel Corporation

    Got error when using SLAM library?

    EdXian

      Hi all,

      I want to use SLAM library to get pose data and map from ZR300 .However I got following error when build the code:

       

      [ 97%] Built target tests_object

      [ 98%] Built target realsense_ros_object_sample1

      [100%] Built target realsense_ros_object_viewer

      [100%] Built target tests_slam

      [100%] Linking CXX executable /home/edxian/catkin_ws/devel/lib/slam_tutorial/pose

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzgets'

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzopen'

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzclose'

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzputs'

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzrewind'

      /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libSP_Core.so: undefined reference to `gzeof'

      collect2: error: ld returned 1 exit status

      make[2]: *** [/home/edxian/catkin_ws/devel/lib/slam_tutorial/pose] Error 1

      make[1]: *** [ROS-R200/slam_tutorial/CMakeFiles/pose.dir/all] Error 2

      make: *** [all] Error 2

      Invoking "make -j4 -l4" failed

       

      This is my CmakeLists:

      ROS-R200/CMakeLists.txt at master · EdXian/ROS-R200 · GitHub

      Any idea?

      Thanks

      OS : Ubuntu

      Tools : cmake

      Device : ZR300