简体   繁体   中英

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.

I have successfully compiled the sample OpenCV projects.

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

Refer this link:

http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM