有人能告诉我如何配置Qt 5.1以使用openCV吗?
配置并构建了带有WITH_QT标志的openCV。 make,make install步骤成功。我现在有一个带有标题的安装文件夹,以及一个bin( .dll)和一个lib( .dll.a)文件夹。
我主要对
感兴趣LIBS += ???
一部分。我见过各种各样的* .pro文件,而不是工作文件。我的解决方案(bin文件夹添加到路径):
INCLUDEPATH += D:/Development/OpenCV/opencv-mingw-qt5/install/include
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_calib3d246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_contrib246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_core246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_features2d246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_flann246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_gpu246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_imgproc246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_highgui246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_legacy246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_ml246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_nonfree246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_objdetect246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_photo246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_stitching246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_superres246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_ts246.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_video246.dll.a
LIBS += D:/Development/OpenCV/opencv-mingw-qt5/install/lib/libopencv_videostab246.dll.a
何时启动调试/发布:
Starting D:\Qt\Projects\mVsion\build-mVsion-Default-Debug\debug\mVsion.exe...
The program has unexpectedly finished.
D:\Qt\Projects\mVsion\build-mVsion-Default-Debug\debug\mVsion.exe exited with code -1073741515
Starting D:\Qt\Projects\mVsion\build-mVsion-Default-Release\release\mVsion.exe...
SHIMVIEW: ShimInfo(Complete)
The program has unexpectedly finished.
D:\Qt\Projects\mVsion\build-mVsion-Default-Release\release\mVsion.exe exited with code -1073741515
有什么想法吗?