Windows platform installs the latest OpenCV-2.4.9 to build C + + call OPENCV development environment with Eclipse, MinGW

Source: Internet
Author: User

Recently, the computer re-installed system, the first thing to reload OpenCV.

This is the latest version of the direct install, published in 2014-4-25 OpenCV2.4.9 version number, download link:

Http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.9/opencv-2.4.9.exe/download. In fact the installation process is almost identical to the 2.4.4 process. This is a mistake to record the process. 2.4.4 installation process See link

1, the new folder OpenCV2.4.9, and then the 348M size of the Opencv-2.4.9.exe open, the path selected to the new folder, you can see the decompression out there are 4 multi-g size, which immediately to catch up with the rhythm of Android source code AH. There are only two folder build and sources, which is more standard than 2.4.4.

2, after the use of CMake. Note The path is selected to sources this folder, this folder has cmakelists file. Then under the Build/x86 folder can see only VC10, Vc11, VC12 three version number, new Folder MinGW, to hold the compiled MinGW version of OpenCV:


Waiting to turn red:


Click Configure again, and then point to generate:


3, after the above generate will be in the MinGW folder makefile file. Go from cmd to D:\ProgramFile\OpenCV2.4.9\opencv\build\x86\mingw this folder (the folder has the generated makefile). Then enter the command Mingw32-make after the long wait. It took about one hours to compile:


One hours later ........ ..... ....................


4. that's even a good compilation. Remember to set the environment variable D:\ProgramFile\OpenCV2.4.9\opencv\build\x86\mingw\bin to Path!!

5, then the test code, see link http://blog.csdn.net/yanzi1225627/article/details/17663151

Configuration schematic For example the following : D:\ProgramFile\OpenCV2.4.9\opencv\build\include


The added libopencv_highgui249 are found in the following folders, for example. Remember not to bring the suffix:. Dll.a.

Frequently used are the following:

libopencv_calib3d249

libopencv_contrib249

libopencv_features2d249

libopencv_flann249

libopencv_gpu249

libopencv_imgproc249

libopencv_legacy249

libopencv_ml249

libopencv_core249

libopencv_highgui249


libopencv_nonfree249

libopencv_objdetect249

libopencv_ocl249

libopencv_photo249

libopencv_stitching249

libopencv_superres249

libopencv_video249

libopencv_videostab249

LIB path:D:\ProgramFile\OpenCV2.4.9\opencv\build\x86\mingw\lib



PS: Say one last word. Suppose like I do not like to use VC compiler, D:\ProgramFile\OpenCV2.4.9\opencv\build\x86 folder under the VC10, VC11, vc12 completely can delete, ya directly accounted for the space of 1.5G.


Windows platform installs the latest OpenCV-2.4.9 to build C + + call OPENCV development environment with Eclipse, MinGW

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.