title: NDK - include error
body: <p>I need your help because it drives me crazy. What cause my error?</p>
  
  <p>The error is</p>
  
  <pre><code>"jni/algorithm.cpp:4:33: fatal error: opencv2/core/core.hpp: No such file or directory  #include &lt;opencv2/core/core.hpp&gt;
                                   ^ compilation terminated. make: *** [obj/local/arm64-v8a/objs/algorithm/algorithm.o] Error 1"
  </code></pre>
  
  <p>My algorithm.cpp is:</p>
  
  <pre><code>#include &lt;jni.h&gt;
  #include &lt;string.h&gt;
  #include &lt;opencv2/core/core.hpp&gt;
  #include &lt;opencv2/imgproc/imgproc.hpp&gt;
  #include &lt;opencv2/features2d/features2d.hpp&gt;
  #include "opencv2/highgui/highgui.hpp"
  #include "opencv2/imgproc/imgproc_c.h"
  
  using namespace std;
  using namespace cv;
  
  extern "C"
  {
      JNIEXPORT jlong JNICALL Java_com_example_hematoma_MainActivity_fce(JNIEnv *env, jobject obj, jlong matimage)
            {
                Mat *jni_image  = (Mat*) matimage;
  
                return (jlong)jni_image;
  
            }
  }
  </code></pre>
  
  <p>My Android.mk is:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include /home/nemesis/adt-bundle-linux-x86_64-20140702/OpenCV-2.4.10-android-sdk/sdk/native/jni/OpenCV.mk
  
  include $(CLEAR_VARS)
  LOCAL_MODULE := algorithm
  LOCAL_SRC_FILES := algorithm.cpp
  
  LOCAL_C_INCLUDE := /home/nemesis/adt-bundle-linux-x86_64-20140702/OpenCV-2.4.10-android-sdk/sdk/native/jni/include/opencv2/core/core.hpp
  LOCAL_C_INCLUDE += /home/nemesis/adt-bundle-linux-x86_64-20140702/OpenCV-2.4.10-android-sdk/sdk/native/jni/include/
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>The error occurs when ndk try to build .so</p>
  
  <p>Thanks in advance.</p>