6-robot / wpr_simulation

GNU General Public License v3.0
530 stars 73 forks source link

catkin_makes failed,在函数‘drawFacesRGB(cv::Mat)’中: wpb_home_face_detect_3d.cpp:(.text+0x49f):对‘cv::rectangle(cv::Mat&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)’未定义的引用 #17

Open Huashuijingying opened 1 year ago

Huashuijingying commented 1 year ago

Scanning dependencies of target wpb_home_grab_middle [ 65%] Building CXX object wpb_home/wpb_home_tutorials/CMakeFiles/wpb_home_grab_middle.dir/src/wpb_home_grab_middle.cpp.o [ 66%] Linking CXX executable /home/yog/catkin_ws/devel/lib/wpb_home_behaviors/wpb_home_face_detect_3d CMakeFiles/wpb_home_face_detect_3d.dir/src/wpb_home_face_detect_3d.cpp.o:在函数‘drawFacesRGB(cv::Mat)’中: wpb_home_face_detect3d.cpp:(.text+0x49f):对‘cv::rectangle(cv::Mat&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)’未定义的引用 CMakeFiles/wpb_home_face_detect_3d.dir/src/wpb_home_face_detect_3d.cpp.o:在函数‘callbackRGB(boost::shared_ptr<sensormsgs::Image<std::allocator > const> const&)’中: wpb_home_face_detect_3d.cpp:(.text+0x9e9):对‘cv::_OutputArray::_OutputArray(cv::Mat&)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0xa30):对‘cv::_OutputArray::_OutputArray(cv::Mat&)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0xa46):对‘cv::_InputArray::_InputArray(cv::Mat const&)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0xa7c):对‘cv::_OutputArray::_OutputArray(cv::Mat&)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0xa92):对‘cv::_InputArray::_InputArray(cv::Mat const&)’未定义的引用 wpb_home_face_detect3d.cpp:(.text+0xb24):对‘cv::CascadeClassifier::detectMultiScale(cv::Mat const&, std::vector<cv::Rect, std::allocator<cv::Rect > >&, double, int, int, cv::Size, cv::Size_)’未定义的引用 CMakeFiles/wpb_home_face_detect_3d.dir/src/wpb_home_face_detect_3d.cpp.o:在函数‘main’中: wpb_home_face_detect_3d.cpp:(.text+0x1aa5):对‘cv::namedWindow(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0x1f31):对‘cv::CascadeClassifier::load(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用 wpb_home_face_detect_3d.cpp:(.text+0x260d):对‘cv::destroyWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用 collect2: error: ld returned 1 exit status wpb_home/wpb_home_behaviors/CMakeFiles/wpb_home_face_detect_3d.dir/build.make:354: recipe for target '/home/yog/catkin_ws/devel/lib/wpb_home_behaviors/wpb_home_face_detect_3d' failed make[2]: [/home/yog/catkin_ws/devel/lib/wpb_home_behaviors/wpb_home_face_detect_3d] Error 1 CMakeFiles/Makefile2:8453: recipe for target 'wpb_home/wpb_home_behaviors/CMakeFiles/wpb_home_face_detect_3d.dir/all' failed make[1]: [wpb_home/wpb_home_behaviors/CMakeFiles/wpb_home_face_detect_3d.dir/all] Error 2 make[1]: 正在等待未完成的任务.... [ 67%] Linking CXX executable /home/yog/catkin_ws/devel/lib/wpb_home_tutorials/wpb_home_grab_middle [ 67%] Built target wpb_home_grab_middle [ 67%] Built target wpb_home_grab_server [ 67%] Linking CXX executable /home/yog/catkin_ws/devel/lib/wpb_home_behaviors/wpb_home_objects_3d [ 67%] Built target wpb_home_objects_3d Makefile:140: recipe for target 'all' failed make: [all] Error 2 Invoking "make -j4 -l4" failed