14
Installing OpenCV+Qt in Windows 7

Installing OpenCV+Qt in Windows 7instructor.sdu.edu.kz/~konst/cv2012/lectures/install opencv with qt.pdfInstalling OpenCV+Qt in Windows 7. You will need ... \Program Files\CodeBlocks\MinGW\bin

  • Upload
    others

  • View
    58

  • Download
    3

Embed Size (px)

Citation preview

Installing OpenCV+Qt in Windows 7

You will need

● OpenCV-2.4.2.exe● QtSdk-offline-win-x86-v1_2_1.exe● mingw-get-inst-20120426.exe

– codeblocks-10.05mingw-setup.exe will also do

● cmake-2.8.9-win32-x86.exe● SetupPathEditor.msi will be helpful

Step 1

● Install open OpenCV into C:\ folder by double-clicking OpenCV-2.4.2.exe

● It will create C:\opencv folder and unzip everything there

Step 2

● Install Qt 4.7.4 by double-clicking QtSdk-offline-win-x86-v1_2_1.exe

Step 3

● Install MinGW compiler by running mingw-get-inst-20120426.exe or installing Code::blocks IDE (codeblocks-10.05mingw-setup.exe) which contains MinGW compiler

Step 4

● Add paths for MinGW and Qt to PATH– C:\MinGW\bin

● or C:\Program Files\CodeBlocks\MinGW\bin if you want MinGW that is supplied with Code::blocks

– C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin

Step 5

● Install Cmake utility by running cmake-2.8.9-win32-x86.exe

Step 6

● Run cmake-gui.exe● Set folder as shown below and press

Configure

Step 6 continue

● Select MinGW Makefiles● Select Specify native compilers● Choose compilers like shown below and press

Finish.

Step 6 Continue

● Check WITH_QT, WITH_OPENGL, press Configure

Step 6 still

● QT_MAKE_EXECUTABLE– C:/QtSDK/Desktop/Qt/4.7.4/mingw/bin/qmake.exe

● BUILD_EXAMPLES● CMAKE_BUILD_TYPE

– Debug

● Configure● Generate● Close Cmake

Step 7

Step 7 continue

Step 8

● Set path to opencv– C:\opencv\pro\bin