title: Building OpenCV4Android from trunk
body: <p>I am now developing a application and plans to use native OpenCV library by jni approach. Reference this tutorial as my environment.</p>
  
  <p><a href="http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html" rel="nofollow">http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html</a></p>
  
  <p>To use the nonfree module of the OpenCV such as SurfFeatureDetector,
  I have to build opencv myself and use the tutorial from OpenCV website:</p>
  
  <p><a href="http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk" rel="nofollow">http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk</a></p>
  
  <p>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:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Is there any way to solve this problem or make me able to use native OpenCV library with nonfree module in Android application?</p>