title: How to use OpenCV2.2 with Dev C++ 4.9.9.2?
body: <p>I wish to use opencv on my project work. Therefore, I downladed  OpenCV2.2 <a href="http://sourceforge.net/projects/opencvlibrary/" rel="nofollow">http://sourceforge.net/projects/opencvlibrary/</a> and installed it. Then I made following configuration in Dev C++ 4.9.9.2 since i am using Dev C++ compiler for my works;</p>
  
  <ol>
  <li>OpenCV library is installed in the C:\ OpenCV2.2  directory</li>
  <li>Open Dev C++ and Tools ->Compiler Options and then add a new compiler named OpenCV</li>
  <li>Then, click Add these commands to the linker command line and include following linker: -lopencv_core220d -lopencv_highgui220d -lopencv_video220d -lopencv_ml220d -lopencv_legacy220d -lopencv_imgproc220d</li>
  <li>Add C:\ OpenCV2.2\include\opencv and C:\ OpenCV2.2\include\opencv2 on to C includes and C++ Includes on directories.</li>
  <li>Also add static libaries paths to C:\ OpenCV2.2\lib and bin directory path to the C:\ OpenCV2.2\bin</li>
  <li>then, i tried to compilng C programs on the sample directory but  I got lot of error messages</li>
  </ol>
  
  <p>Then, I downloaded Cmake (Windows (Win32 Installer) cmake-2.8.4-win32-x86.exe- binary distributions) from “http://www.cmake.org/cmake/resources/software.html and instaled it. According to the OpenCV installation guide (http://opencv.willowgarage.com/wiki/InstallGuide), I tried to configure opencv using Cmake. I did this using Cmake GUI and also tried using command line however both attempts were not success anf got lot of error messages (ex.Error in configuration process , project files may be invalid). </p>
  
  <p>Please give me correct steps to do this.</p>