在Qt Creator与MinGW中配置OpenCV 2.2
2014-01-27 15:35
357 查看
to build OpenCV 2.2 with Qt Creator 2.0.1 and MinGW:
1. Install Qt SDK with the C++ compiler option (MinGW). You can download ithere.
2. Add “C:<Qt_directory>/mingw/bin” to the system PATH.
3. Download and
install CMake (2.8).
4. Download and
install OpenCV2.2.
5. Run CMake GUI.
6. Set the source code: “C:\<OpenCV_directory>”
7. Set where to build binaries to: “C:\<build_directory>”. Example: “C:\OpenCV2.2MinGW”
8. Press Configure
9. Let CMake create the new folder.
10. Specify the generator: MinGW Makefiles.
11. Select “Specify Native Compilers” and click Next.
12. For C set: “C:\<Qt_directory>\mingw\bin\gcc.exe”
13. For C++ set: “C:\<Qt_directory>\mingw\bin\g++.exe”
14. Click Finish
15. In the configuration screen type in “DEBUG” (or “RELEASE” if you want to build a release version) for CMAKE_BUILD_TYPE. Check BUILD_EXAMPLES if you want. Check WITH_QT.
16. Click configure again.
17. The configure screen will make you specify the qmake path. It is in the Qt directory: “C:\<Qt_directory>\qt\bin\qmake.exe”
18. Click configure again. Click generate. Close CMake.
19. Go to the command prompt and go to the folder where you built your binaries (command: cd C:\<build_directory>) and type “mingw32-make” and hit enter (this might take some time).
20. Then type “mingw32-make install” and hit enter again.
相关文章推荐
- qt creator2.4.0 + qt4.7.4 + mingw + opencv2.2(win7-32位)配置
- QT Creator和MinGW中配置OpenCV2.3.1
- QT Creator和MinGW中配置OpenCV2.3.1
- Qt Creator(mingw)下编译和配置OpenCV
- vs2008+ opencv2.2配置说明
- Windows下QT Creator配置OpenCV(VC版)
- Linux环境下Qt creator添加OpenCV的配置
- 在vs2008中配置OpenCV2.2
- Linux下 Ubuntu 11.04 + opencv2.2配置步骤
- Windows下OpenCV 3.1.0 在 Qt Creator中的配置
- 在vs2008中配置OpenCV2.2
- Qt使用mingw配置可调试的opencv环境
- VS2010下配置 OpenCV2.2
- 【转】Codeblocks MinGW 配置openCV
- 在Xcode中配置opencv2.2
- 如何在qt Creator下配置opencv2.4版本
- QT creator+OpenCV2.4.2+MinGW 在windows下开发环境配置
- Windows7下配置MinGW+CodeBlocks+OpenCV2.3.1
- VS2010下配置OpenCV2.2
- qtCreator中配置opencv和mingw