Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 23, 2023 · 0 comments

Comments

@Huashuijingying
Copy link

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_detect_3d.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<sensor_msgs::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_detect_3d.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

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

No branches or pull requests

1 participant