1. Download opencv 2.4.4.exe. If you only download the source code, there is no build folder.
2. Add path \ build \ x86 \ V10 \ bin to the Environment Variable
3. Configure vs2010. in Solution Explorer> VCC ction:
Include directories: path \ build \ include \ opencv path \ build \ include \ opencv2
Library directories: path \ build \ x86 \ VC10 \ Lib
Note that the original $ (vcinstalldir) include, $ (vcinstalldir) atlmfc \ include and $ (vcinstalldir) Lib, $ (vcinstalldir) atlmfc \ Lib, $ (windowssdkdir) Lib, $ (frameworksdkdir) \ Lib should be retained. Otherwise, an error is reported, such as msvprtd. Lib.
In Solution Explorer> linker> General> additional library directories, path \ build \ x86 \ bc10 \ Lib
Linker-> debug-> input: Add dependency Library (last bit with D) in release-> input (last bit without D) the directory is in path \ build \ x86 \ VC10 \ Lib.
4. Complete.