title: OpenCV with Android NDK Undefined References
body: <p>I'm trying to use opencv on android (ndk only). I compiled the latest source of the git repository for armeabi.
  (Based on: <a href="http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk" rel="noreferrer">Building_OpenCV4Android_from_trunk</a>)</p>
  
  <p>But I'm getting this errors (with ndk-build):</p>
  
  <pre><code>error: undefined reference to 'cv::Mat::deallocate()'
  error: undefined reference to 'cv::fastFree(void*)'
  error: undefined reference to 'cv::_OutputArray::_OutputArray(cv::Mat&amp;)'
  error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&amp;)'
  error: undefined reference to 'cv::Mat::inv(int) const'
  </code></pre>
  
  <p>simple test code:</p>
  
  <pre><code>cv::Mat testMat = cv::Mat(cv::Matx44d
  (
      1.0, 0.0, 0.0, 0.0,
      0.0, 1.0, 0.0, 0.0,
      0.0, 0.0, 1.0, 0.0,
      0.0, 0.0, 0.0, 1.0
  ));
  cv::Mat testMatInv = testMat.inv();
  </code></pre>
  
  <p>My Android.mk:</p>
  
  <pre><code>LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/../../../../libs/opencv/include
  LOCAL_LDLIBS += -L../../../../libs/opencv/lib/android/armeabi
  LOCAL_LDLIBS += -llog -lGLESv2 –lz
  LOCAL_STATIC_LIBRARIES := libzip libpng libjpeg freetype
  LOCAL_STATIC_LIBRARIES += libopencv_calib3d libopencv_contrib libopencv_core libopencv_features2d libopencv_flann libopencv_highgui libopencv_imgproc libopencv_legacy libopencv_ml libopencv_nonfree libopencv_objdetect libopencv_photo libopencv_stitching libopencv_ts libopencv_video libopencv_videostab
  </code></pre>
  
  <p>Anyone has any clue? Thanks</p>