rayvburn / ORB-SLAM2_ROS

A ROS wrapper for ORB-SLAM2
65 stars 18 forks source link

Catkin build Error #1

Open Shubhamvithalani opened 5 years ago

Shubhamvithalani commented 5 years ago

[ 81%] Built target orb_slam2_ros_generate_messages_eus [ 81%] Built target orb_slam2_ros_generate_messages [ 87%] Linking CXX executable devel/lib/orb_slam2_ros/Mono devel/lib/libPublisherUtils.so: undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' devel/lib/libPublisherUtils.so: undefined reference tocv::_InputArray::_InputArray(cv::MatExpr const&)' devel/lib/libPublisherUtils.so: undefined reference to cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' devel/lib/libPublisherUtils.so: undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)' devel/lib/libPublisherUtils.so: undefined reference to vtable for cv::_OutputArray' devel/lib/libPublisherUtils.so: undefined reference tocv::_InputArray::_InputArray(double const&)' collect2: error: ld returned 1 exit status CMakeFiles/Mono.dir/build.make:708: recipe for target 'devel/lib/orb_slam2_ros/Mono' failed make[2]: [devel/lib/orb_slam2_ros/Mono] Error 1 CMakeFiles/Makefile2:1558: recipe for target 'CMakeFiles/Mono.dir/all' failed make[1]: [CMakeFiles/Mono.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

rayvburn commented 5 years ago

I can't reproduce the error. What version of openCV do you have? Or maybe you already fixed this as some time has already passed?