ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS Indigo OpenCV3: undefined reference

asked 2015-07-29 09:32:59 -0500

tuuzdu gravatar image

Hi! When I try compilling project rpg_monocular_pose_estimator and I get:

Building CXX object rpg_monocular_pose_estimator/monocular_pose_estimator/CMakeFiles/monocular_pose_estimator.dir/src/monocular_pose_estimator.o
Linking CXX executable /home/tuuzdu/catkin_ws/devel/lib/monocular_pose_estimator/monocular_pose_estimator
/home/tuuzdu/catkin_ws/devel/lib/libmonocular_pose_estimator_lib.so: undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
/home/tuuzdu/catkin_ws/devel/lib/libmonocular_pose_estimator_lib.so: undefined reference to `cv::findContours(cv::_InputOutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)'
/home/tuuzdu/catkin_ws/devel/lib/libmonocular_pose_estimator_lib.so: undefined reference to `cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)'
collect2: error: ld returned 1 exit status

libmonocular_pose_estimator_lib.so compillig normal. I have ROS Indigo and ros-indigo-opencv3.nd ros-indigo-opencv3.

edit retag flag offensive close merge delete

Comments

Do a catkin_make VERBOSE=1 and paste in the linker line. Also get output that shows what header file directories were used (delete monocular_pose_estimator.o, or rebuild from scratch). Also see http://answers.ros.org/question/21404...

lucasw gravatar image lucasw  ( 2015-07-30 11:10:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-31 02:41:49 -0500

tuuzdu gravatar image

Thank you for advise. I solved problem with different versions of opencv. Because prebuild cv_bridge use opencv 2.4.8, I rebuilt it from source with opencv 3.0.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-29 09:32:59 -0500

Seen: 835 times

Last updated: Jul 29 '15