[英]How to compile C/C++ code in eclipse Android (NDK)
I have successfully installed the Android CDT, NDK and openCV library for android on my machine, now i want to compile this code in my project. 我已经在机器上成功安装了Android的Android CDT,NDK和openCV库,现在我想在我的项目中编译此代码。
I have successfully compiled the sample OpenCV projects. 我已经成功编译了示例OpenCV项目。
but when I copy and pasted the code in link provided above its throwing error like 但是当我复制并粘贴上面抛出错误的链接中提供的代码时
Invalid arguments 'Candidates are:void push_back(const cv::Point_<float> &)'
Invalid arguments 'Candidates are:cv::Point_<float> computeIntersect(cv::Vec<int,int4>, cv::Vec<int,int4>)'
Invalid arguments 'Candidates are:void circle(cv::Mat &, cv::Point_<int>, int, const cv::Scalar_<double> &, int, int, int)'
How to resolve this issue? 如何解决这个问题?
In your program not compiled correctly check your jni package Android.mk file 在您的程序未正确编译的情况下,检查您的jni包Android.mk文件
Refer this link: 参考此链接:
http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.