I am now developing a application and plans to use native OpenCV library by jni approach. Reference this tutorial as my environment.
http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html
To use the nonfree module of the OpenCV such as SurfFeatureDetector, I have to build opencv myself and use the tutorial from OpenCV website:
http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk
When I follow the steps in tutorial (windows native part) and want to run script cmake_android.cmd to compile them, I get the error message like this:
In file included from E:\git\opencv\3rdparty\libtiff\tif_stream.cxx:30:
E:\git\opencv\3rdparty\libtiff\/tiffiop.h:54:21: error: search.h: No such file or directory
make[2]: *** [3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o] Error 1
make[1]: *** [3rdparty/libtiff/CMakeFiles/libtiff.dir/all] Error 2
make: *** [all] Error 2
Is there any way to solve this problem or make me able to use native OpenCV library with nonfree module in Android application?