Qt opencv 程序异常结束,crashed

Qt 程序异常结束,并且crashed


开始用的静态库lib目录,后来改为动态链接库就可以了
原因:有可能是libs中没有需要的哭,所以报错

qt配置opencv的链接方式:

INCLUDEPATH += D:\opencv\build\include
 
   
CONFIG(debug, debug|release): {
LIBS += -LD:\opencv\build\x86\vc14\bin \
-lopencv_world320
-lopencv_world320d
} else:CONFIG(release, debug|release): {
LIBS += -LD:\opencv\build\x86\vc14\bin \
-lopencv_world320
-lopencv_world320d
}

你可能感兴趣的:(c++,opencv)