Just add all .a files from OpenCV Android to LIBS in the .pro file of the Necessitas project. Note that the order of libraries is very important.
If you want to use camera, please also copy libnative_camera_r2.2.2.so, libnative_camera_r2.3.3.so, etc to android/libs/armeabi-v7a/ of your project directory.
# Change the following directory to your QpenCV android installation ANDROID_OPENCV = /media/Software/android/OpenCV-2.4/ LIBS += \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_calib3d.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_flann.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_objdetect.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_contrib.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_video.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_ml.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_legacy.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_highgui.a \ $$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/liblibjpeg.a \ $$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/liblibpng.a \ $$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/liblibtiff.a \ $$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/liblibjasper.a \ #$$ANDROID_OPENCV/share/OpenCV/3rdparty/libs/armeabi-v7a/libzlib.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_ts.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_imgproc.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_core.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_androidcamera.a \ $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_features2d.a INCLUDEPATH += $$ANDROID_OPENCV/include/opencv/ INCLUDEPATH += $$ANDROID_OPENCV/include/ |