Recent site activity

Tutorials‎ > ‎

Installing OpenCV in windows

Note: I have added snapshots lately.

This is the step by step instructions of installing opencv and configuring it with Visual studio 2008.

1) Downloaded OpenCV-2.0.0a-win32.exe opencv sourceforge site.

2) This step made a directroy C:\OpenCV2.0.

3) I installed cmake and created a project vs2008 as described in 
This step should make a directory C:\Opencv2.0\vs2008

4) opened OpenCV.sln (C:\OpenCV2.0\vs2008\OpenCV.sln) in visual studio and build the project in both debug and release mode. It went well. It created two folders lib and bin inside the C:\OpenCV2.0 folder.

To build the project click on the green arrow button in the highlighted part of the image. Notice the Debug option in the drop down. After it successfully build in debug mode change the dropdown option to Release and then build it. What this step would do is to create two directories C:\OpenCV2.0\vs2008\bin\Debug and C:\OpenCV2.0\vs2008\bin\Release. Add these two directories to system path.



5) Added  C:\OpenCV2.0\vs2008\bin\Debug;C:\OpenCV2.0\vs2008\bin\Release to the system path

6) Inside visual studio i set the include and library files according to this website

[Only difference is :Tools–>Options–>Projects–>VC++ Directories–>Library files 
the value should be:  C:\OpenCV2.0\vs2008\lib\Release
C:\OpenCV2.0\vs2008\lib\Debug  as suggested in a later email]

7) The above 6 steps are for common VC++ environment. Apart from this you have to change the settings for individual project properties. After you create a new project change its Project Properties as below. 

Project->Properties->Linker->Input->Additional Dependencies

Make sure it has these libraries mentioned cv200.lib cvaux200.lib cxcore200.lib highgui200.lib separated by space.



Hope it helps

If you have doubts contact me at sancho.nitw@gmail.com