Open Shubhamvithalani opened 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
cv::_OutputArray::_OutputArray(cv::Mat&)' 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 to
vtable for cv::_OutputArray' devel/lib/libPublisherUtils.so: undefined reference to
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?
[ 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 to
cv::_InputArray::_InputArray(cv::MatExpr const&)' devel/lib/libPublisherUtils.so: undefined reference tocv::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 to
cv::_InputArray::_InputArray(cv::Mat const&)' devel/lib/libPublisherUtils.so: undefined reference tovtable for cv::_OutputArray' devel/lib/libPublisherUtils.so: undefined reference to
cv::_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