6 Replies Latest reply on Jan 16, 2018 11:35 AM by Intel Corporation

    Problems with realsense_samples_ros with Realsense Robotic Development Kit (R200 with UP Board)

    mirrijakys


      Hi,

       

      I recently got a second Realsense Robotic Development Kit and I am having problems compiling the realsense_samples_ros (which I have managed to do previously on an identical board!)

       

      I have followed succesfully all the instalation instructions at Intel RealSense Robotic Development Kit | Developer Journey . The board is using Ubuntu 16.04.03.

       

      Then I have followed the instructions in GitHub - IntelRealSense/realsense_samples_ros: Sample code illustrating how to develop ROS applications using the Intel®… but when running catkin_make the process does not finish at a 100%, with the following output:

       

      [ 98%] Built target realsense_ros_person

      CMakeFiles/realsense_ros_person_sample.dir/src/sample/TrackingRenderer/Viewer.cpp.o: In function `Viewer::Viewer(bool)':

      Viewer.cpp:(.text+0x97): undefined reference to `cv::namedWindow(cv::String const&, int)'

      Viewer.cpp:(.text+0xc9): undefined reference to `cv::setMouseCallback(cv::String const&, void (*)(int, int, int, int, void*), void*)'

      Viewer.cpp:(.text+0xda): undefined reference to `cv::startWindowThread()'

      Viewer.cpp:(.text+0x106): undefined reference to `cv::namedWindow(cv::String const&, int)'

      Viewer.cpp:(.text+0x117): undefined reference to `cv::startWindowThread()'

      CMakeFiles/realsense_ros_person_sample.dir/src/sample/TrackingRenderer/Viewer.cpp.o: In function `Viewer::ShowImage(cv::Mat)':

      Viewer.cpp:(.text+0x1dd): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'

      Viewer.cpp:(.text+0x1ff): undefined reference to `cv::waitKey(int)'

      CMakeFiles/realsense_ros_person_sample.dir/src/sample/TrackingRenderer/Viewer.cpp.o: In function `Viewer::ShowDepth(cv::Mat)':

      Viewer.cpp:(.text+0x29f): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'

      collect2: error: ld returned 1 exit status

      realsense_samples_ros/realsense_ros_person/CMakeFiles/realsense_ros_person_sample.dir/build.make:209: recipe for target '/home/salup/catkin_ws/devel/lib/realsense_ros_person/realsense_ros_person_sample' failed

      make[2]: *** [/home/salup/catkin_ws/devel/lib/realsense_ros_person/realsense_ros_person_sample] Error 1

      CMakeFiles/Makefile2:399: recipe for target 'realsense_samples_ros/realsense_ros_person/CMakeFiles/realsense_ros_person_sample.dir/all' failed

      make[1]: *** [realsense_samples_ros/realsense_ros_person/CMakeFiles/realsense_ros_person_sample.dir/all] Error 2

      Makefile:138: recipe for target 'all' failed

      make: *** [all] Error 2

      Invoking "make -j4 -l4" failed

       

      It seems to be some linking problem with opencv, but I cannot find the cause of the error. Has anyone experience something similar before, or does anyone know how to solve it?

       

       

      Thanks in advance,

      Marcos