title: Android OpenCV - "error: cannot find -lopencv_java"
body: <p>I'm trying to develope a native code with OpenCV using IntelliJ IDEA 13.1.4. When I try to ndk-build the code provided in mixedprocessing sample, I have this error:</p>
  
  <pre><code>[armeabi-v7a] Compile++ thumb: com_sample_jniLib &lt;= com_sample_jniLib.cpp
  [armeabi-v7a] SharedLibrary  : libcom_sample_jniLib.so
  D:/Workspace/android-ndk-r10/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lopencv_java
  make.exe: *** [obj/local/armeabi-v7a/libcom_voxar_tracker_TrackerLib.so] Error 1
  D:\Workspace\android-ndk-r10\sources\cxx-stl\stlport\stlport
  </code></pre>
  
  <p>Basically, he can't find -lopencv_java.</p>
  
  <p>Here is my Android.mk:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  include jni/opencv/OpenCV.mk
  
  LOCAL_SRC_FILES := com_voxar_tracker_TrackerLib.cpp
  LOCAL_MODULE := com_voxar_tracker_TrackerLib
  LOCAL_LDLIBS +=  -llog -ldl
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>And my Application.mk:</p>
  
  <pre><code>APP_STL := stlport_static
  APP_CPPFLAGS := -frtti -fexceptions
  APP_ABI := all
  </code></pre>
  
  <p>As I told before, I'm using <strong>IntelliJ IDEA 13.1.4</strong>, <strong>OpenCV 2.4.9</strong> and <strong>Android NDK r10 32-bit</strong> on <strong>Windows 8.1</strong>. Does anybody have any idea of what that could be?</p>