Reputation: 1317
I have certain knowledge in Android and I would like to learn OpenCV,for this I have followed several tutorials and ended up doing the following steps.
1. Download an eclipse for C/C++ developers
2. Added the Android plugin
3. Set the path for NDK
4. Downloaded OpenCV Library and samples
5. Imported the library and samples in the eclipse
6. installed OpenCV manager in my device
But, to my dismay,a cross appears in the library folder and all other sample folders shows a foot-mark or build error, which step am I missing out. Please help. Thx in advance.
Upvotes: 0
Views: 788
Reputation: 564
Right click on project -> properties->android
. Add android library to your android project
Add opencv library into your project. Right click on project -> properties->android
add library
To convert project into c/c++ project
Right click on project -> New -> other -> c/c++ -> convert to c/c++ project
If you have converted your project into c/c++ project
ensure as follows
Right click on
project -> properties->c/c++ General -> Paths and Symbols -> includes -> GNU c and GNU c++ add the path E:/android-ndk-r8d/platforms/android-14/arch-arm/usr/include
Similar to this
Also add the path C:\OpenCV-2.4.5-android-sdk\sdk\native\jni\include
as above
Upvotes: 2