OPENCV installation and System environment variables
Installing OPENCV is a simple thing, but the configuration is cumbersome. And the most important step in the configuration process is the configuration of the system environment variables. I am using CodeBlick13.12 with OpenCV1.0 (opencv download link http://opencv.org/downloads.html, if you want to use a later version of OpenCV, may need to use CMake to OpenCV source code to compile, to get MinGW version of the source code).
Configure environment variables (Win8.1):
Be sure to add the bin directory of the installation directory to the system variables, because the program will call the DLL assembly at the time of runtime, if the system variable does not contain this path, the program will go to C:/WINDOW/SYSWOW64 (32 for the system c:/window/ SYSTEM32) directory, so you will be prompted:
also pay attention to the addition of environment variables when using CMake, or you will pop up a similar dialog box. This allows you to understand that environment variables are some of the paths to certain folders, so that the program can find the correct files at run time to ensure that the program runs correctly.
OPENCV installation and System environment variables