Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

native opencv for android

I tried to integrate opencv library in my android project, so I followed this link: Building native Opencv for Android with Eclipse gives "undefined reference to `cvCreateFileCapture'" but now I still have these errors:

jni/DetectionBasedTracker.cpp:5:23: error: opencv/cv.h: No such file or directory jni/DetectionBasedTracker.cpp:6:28: error: opencv/highgui.h: No such file or directory

should I change the application.mk?

like image 756
Dev DOS Avatar asked Jun 18 '26 07:06

Dev DOS


1 Answers

Do you reference OpenCV Library-2.4.4 in your project, in Project Properties > Android > Library ?

Have you included <path_to_OpenCV4Android_sdk>/sdk/native/jni/include in Project Properties > C/C++ General > Paths and Symbols > GNU C++?

like image 67
JonasVautherin Avatar answered Jun 20 '26 00:06

JonasVautherin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!