Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Problem Installing realsense_samples_ros #26

Open
mirirjakys opened this issue Dec 28, 2017 · 4 comments
Open

Problem Installing realsense_samples_ros #26

mirirjakys opened this issue Dec 28, 2017 · 4 comments

Comments

@mirirjakys
Copy link

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

@technophil98
Copy link

+1

@zhangzhouyuan
Copy link

I think it lose a package in realsense_ros_person/CMakeLists.txt, add to “find_package(OpenCV REQUIRED)“ ,it will be passed。

@dashneptune
Copy link

@zhangzhouyuan, your fix worked for me

@mirirjakys
Copy link
Author

Thanks, this also worked for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants