Android NDK JNI, Method 'xxx' could not be resolved

发布于 2021-11-23 14:47:16 字数 1148 浏览 689 评论 1

用C++做了个Opencv的项目,想移植Android。在使用NDK开发时,遇到一些问题,C++源文件cpp中有一些函数参数无效,或无法找到。求大神帮忙,万分感激!

ERROR_1: Invalid arguments 'Candidates are:double contourArea(const cv::_InputArray &, bool)'

ERROR_2: Invalid arguments 'Candidates are:const std::vector<cv::Point_<int>,std::allocator<cv::Point_<int>>> & at(?)std::vector<cv::Point_<int>,std::allocator<cv::Point_<int>>> & at(?)'

ERROR_3: Method 'size' could not be resolved


ERROR: Invalid arguments 'Candidates are:CvSeq * cvCreateSeq(int, ?, ?, CvMemStorage *)'


ERROR:  Type 'CV_MAT_ELEM_PTR(*cMatrix, 0, 0)' could not be resolved





如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霞映澄塘 2021-11-28 21:14:41

自己解决了。只要去掉错误提示即可运行。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文