title: OpenCV-Android highgui linking error
body: <p>I am using opencv on Android and have been successfully loading and processing jpg images from the phone's SD card. Now I want to manipulate frames from a video stored on the SD card. I have coded and tested the opencv code in C++, but am having a linking error when trying to put it into my android-opencv project. Specifically, when I add the line of code</p>
  
  <pre><code>CvCapture* capture = cvCreateFileCapture( "/sdcard/testVideo.MOV" );
  </code></pre>
  
  <p>And then try to rebuild the project I get the following output/error:</p>
  
  <pre><code>OPENCV_CONFIG = ../../build/android-opencv.mk
  PROJECT_PATH defaulting to this directory
  /Users/me/Documents/Android/android-ndk-r4-crystax/ndk-build OPENCV_CONFIG=../../build/android-opencv.mk PROJECT_PATH=. V=0 
  Compile++ thumb: Assay &lt;= /Users/me/Documents/Android/opencv/android/apps/MyApp/jni/Processor.cpp
  SharedLibrary  : libAssay.so
  /Users/me/Documents/Android/opencv/android/build/obj/local/armeabi-v7a/libhighgui.a(cap.o): In function `cvCreateVideoWriter':
  cap.cpp:(.text.cvCreateVideoWriter+0x16): undefined reference to `cvCreateVideoWriter_Images(char const*)'
  cap.cpp:(.text.cvCreateVideoWriter+0x20): undefined reference to `cvCreateVideoWriter_Images(char const*)'
  /Users/me/Documents/Android/opencv/android/build/obj/local/armeabi-v7a/libhighgui.a(cap.o): In function `cvCreateFileCapture':
  cap.cpp:(.text.cvCreateFileCapture+0x2): undefined reference to `cvCreateFileCapture_Images(char const*)'
  collect2: ld returned 1 exit status
  make[1]: *** [/Users/me/Documents/Android/opencv/android/apps/MyApp/obj/local/armeabi/libAssay.so] Error 1
  make: *** [libs/armeabi-v7a/libAssay.so] Error 2
  </code></pre>
  
  <p>It seems like it's having problems linking to the <code>cvCreateFileCapture</code>. I have read that the order in which the opencv libraries are specified matters, but am not sure what order I should use (or if this is my problem). My opencv libraries are specified in this order:</p>
  
  <pre><code>OPENCV_LIBS := $(OPENCV_LIB_DIRS) -lfeatures2d  -lcalib3d -limgproc -lobjdetect  \
       -lvideo  -lhighgui -lml -llegacy -lcore -lopencv_lapack -lflann \
      -lzlib -lpng -ljpeg -ljasper 
  </code></pre>
  
  <p>Anyone have any idea how to get <code>cvCreateFileCapture</code> working?</p>
  
  <p>Thanks!</p>