Skip to content

Problem Installing realsense_samples_ros #26

@mirirjakys

Description

@mirirjakys

Hi,

I am the happy owner of two Intel Robotic Development Kits, using the R200 with the Up board and running Ubuntu 16.04.03.

In one of the UP boards, I have been able to successfully install the realsense_samples_ros packages following the instructions on the README, but in the other UP board, I struggle to make catkin_make compile, and I don't know why as it seems to be exactly the same platform, same OS and same packages.

This is the error that catkin_make outputs:

[ 92%] Linking CXX executable /home/salup/catkin_ws/devel/lib/realsense_ros_person/realsense_ros_person_sample
[ 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

Could anybody give me a hand with it?

Thanks in advance,
Marcos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions