必须用Mingw编译Opencv才能在Windows下的QT中使用?
Must compile Opencv with Mingw in order to use in QT under Windows?
我访问过这些博客
https://zahidhasan.wordpress.com/2014/08/19/qt-5-3-1-64-bit-mingw-windows/
How to link opencv in QtCreator and use Qt library
http://www.cnblogs.com/grandyang/p/4328896.html
都是用Mingw通过Cmake编译Opencv。
如果我想在 QT 中使用 Opencv,是否只能使用 Mingw 进行编译?
我有这个问题是因为我已经用 Visual Studio 2013(在 Cmake---Visual Studio 12 2013 Win64 中)编译了我的 Opencv 2.4.11,
当我按照说明在 QT
中设置 INCLUDEPATH 和 LIBS 时
"C:\opencv2.4.11\opencv\build\include\opencv"
"C:\opencv2.4.11\opencv\build\include\opencv2"
-L"C:\opencv2.4.11\opencv\build\x64\vc12\lib" \
-lopencv_core2411 \
-lopencv_highgui2411 \
-lopencv_imgproc2411 \
-lopencv_features2d2411 \
-lopencv_calib3d2411 \
我收到此错误消息:
C1083:Cannot open include file:'opencv2/opencv.hpp': No such file or directory
你也可以用Visual Studio编译它。 opencv includepaths 已经有了 opencv2
部分。所以正确的包含路径只会是:
C:\opencv2.4.11\opencv\build\include
我访问过这些博客
https://zahidhasan.wordpress.com/2014/08/19/qt-5-3-1-64-bit-mingw-windows/
How to link opencv in QtCreator and use Qt library
http://www.cnblogs.com/grandyang/p/4328896.html
都是用Mingw通过Cmake编译Opencv。 如果我想在 QT 中使用 Opencv,是否只能使用 Mingw 进行编译?
我有这个问题是因为我已经用 Visual Studio 2013(在 Cmake---Visual Studio 12 2013 Win64 中)编译了我的 Opencv 2.4.11, 当我按照说明在 QT
中设置 INCLUDEPATH 和 LIBS 时"C:\opencv2.4.11\opencv\build\include\opencv"
"C:\opencv2.4.11\opencv\build\include\opencv2"
-L"C:\opencv2.4.11\opencv\build\x64\vc12\lib" \
-lopencv_core2411 \
-lopencv_highgui2411 \
-lopencv_imgproc2411 \
-lopencv_features2d2411 \
-lopencv_calib3d2411 \
我收到此错误消息:
C1083:Cannot open include file:'opencv2/opencv.hpp': No such file or directory
你也可以用Visual Studio编译它。 opencv includepaths 已经有了 opencv2
部分。所以正确的包含路径只会是:
C:\opencv2.4.11\opencv\build\include