开发者

How to use OpenCV2.2 with Dev C++ 4.9.9.2?

I wish to use opencv on my project work. Therefore, I downladed OpenCV2.2 http://sourceforge.net/projects/opencvlibrary/ 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;

  1. OpenCV library is installed in the C:\ OpenCV2.2 directory
  2. Open Dev C++ and Tools ->Compiler Options and then add a new compiler named OpenCV
  3. 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
  4. Add C:\ OpenCV2.2\include\opencv and C:\ OpenCV2.2\include\opencv2 on to C includes and C++ Includes on directories.
  5. Also add static libaries paths to C:\ OpenCV2.2\lib and bin directory path to the C:\ OpenCV2.2\bin
  6. then, i tried to compilng C programs on the sampl开发者_JS百科e directory but I got lot of error messages

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).

Please give me correct steps to do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜