Qt4Android + OpenCV问题记录

不断更新中---------------------------------

1.undefined reference to `gzeof'./obj/local/armeabi-v7a/libopencv_core.a(persistence.cpp.o): In function `cvReleaseFileStorage'


libopencv_core,a里找不到其他库,尤其是libtbb,问题出在包含库的顺序上,解决方法是qmake把第三方库包含在前面,如下:

INCLUDEPATH += "F:\Programs\Android\OpenCV-2.4.6-android-sdk\sdk\native\jni\include"
 
 
LIBS += "F:/Programs/Android/OpenCV-2.4.6-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a/*.a"
LIBS += "F:/Programs/Android/OpenCV-2.4.6-android-sdk/sdk/native/libs/armeabi-v7a/*.a"
LIBS += "F:/Programs/Android/OpenCV-2.4.6-android-sdk/sdk/native/libs/armeabi-v7a/*.so"
 
 

2.dlopen("/data/app-lib/org.qtproject.example.FingerVeinUtility-1/libFingerVeinUtility.so") failed: dlopen failed: could not load library "libnative_camera_r2.2.0.so" needed by "libFingerVeinUtility.so"; caused by library "libnative_camera_r2.2.0.so" not found

libnative_camera_r2.2.0.so找不到,解决办法是qmake里加上参数:

OPENCV_CAMERA_MODULES += off

http://blog.csdn.net/watkinsong/article/details/11562595



你可能感兴趣的:(Qt4Android + OpenCV问题记录)