Qt 5.4 OpenCV 2.4.11 Win 32 Configuration
Download CMake 2.8.2
Download OpenCV 2.4.11
Download Qt 5.4
Highly improtant note: The installation directory should not contain any space or non-English character, otherwise weird error would happen when building.
Open CMake 2.8.2, set the source and build directory:
Click "Configure", choose "MinGW Makefiles" and "Specify native compliers"
Set the C and C++ compiler from the Qt SDK
Don't forget to add the following to the system path:
C:\Qt\5.4\mingw491_32\bin
C:\Qt\Tools\mingw491_32\bin
Then click "Configure" and "Generate", then open cmd and go the build directory, and run "mingw32-make"
Highly important: You need to select "With_Qt" before click "Generate"!
When it is done, then run "mingw32-make install" and hit enter again
Use Qt Creator creates a new project, add following in the .pro file:
# Add OpenCV INCLUDEPATH += C:\opencv\mingw\install\include INCLUDEPATH += C:\opencv\mingw\install\include\opencv INCLUDEPATH += C:\opencv\mingw\install\include\opencv2 LIBS += -LC:\\opencv\\mingw\\bin \ libopencv_core2411 \ libopencv_highgui2411 \ libopencv_imgproc2411 \ libopencv_features2d2411 \ libopencv_calib3d2411 \
相关文章
- OpenCV-C++选择、提取感兴趣区域(ROI区域)【附用鼠标选取ROI区域的代码】
- 要看懂OpenCV的代码,所需要的C和C++的基础知识
- OpenCV的示例程序在哪里?
- MATLAB、C++、OpenCV、Python、Python-Numpy近似值(取整)求取函数总结【round()、ceil()、floor()、fix()】
- QT中操作Txt文件(Qt中QString与QByteArray互相转化方法)
- (QT/MFC中)c++使用Opencv遍历图像像素的两种方式(以调整图像亮度与对比度为例)
- c#调用c++(Opencv)dll的实例
- MFC+opencv 显示mat图像
- 【QT】Qt Creator生成动态库(DLL)并调用
- 【QT】Qt 中 Json 的操作
- 【QT】Qt多版本交叉编译所遇到的问题以及如何解决(重在思路过程)
- opencv实现canopy算法
- 第四章 Opencv图像色彩空间与通道
- OpenCV实现人体姿态估计(人体关键点检测)OpenPose
- Qt 有多少人折腾-qt for s60终于安装成功
- [已解决]报错: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it ...
- 查看和调试Qt源码(动态编译的QT也可进入源码)good