我访问过这些博客
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编译了我的Opencv 2.4.11(在Cmake --- Visual Studio 12 2013 Win64中), 当我按照指示在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:无法打开包含文件:' opencv2 / opencv.hpp':没有这样的文件或目录
答案 0 :(得分:4)
您也可以使用Visual Studio编译它。 opencv includepaths已经有opencv2
部分。所以正确的includepath只会是:
C:\\opencv2.4.11\\opencv\\build\\include