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


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值