Add in the system Path:
C:\opencv\build\x86\vc10\bin;
Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:
C:\opencv\build\include\opencv
C:\opencv\build\include\opencv2
C:\opencv\build\include
Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:
C:\opencv\build\x86\vc10\lib
Project->Project Property->Configuration Properties->Linker->Input:
opencv_calib3d2411.lib
opencv_contrib2411.lib
opencv_core2411.lib
opencv_features2d2411.lib
opencv_flann2411.lib
opencv_gpu2411.lib
opencv_highgui2411.lib
opencv_imgproc2411.lib
opencv_legacy2411.lib
opencv_ml2411.lib
opencv_nonfree2411.lib
opencv_objdetect2411.lib
opencv_ocl2411.lib
opencv_photo2411.lib
opencv_stitching2411.lib
opencv_superres2411.lib
opencv_ts2411.lib
opencv_video2411.lib
opencv_videostab2411.lib
opencv_calib3d2411d.lib
opencv_contrib2411d.lib
opencv_core2411d.lib
opencv_features2d2411d.lib
opencv_flann2411d.lib
opencv_gpu2411d.lib
opencv_highgui2411d.lib
opencv_imgproc2411d.lib
opencv_legacy2411d.lib
opencv_ml2411d.lib
opencv_nonfree2411d.lib
opencv_objdetect2411d.lib
opencv_ocl2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_superres2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_videostab2411d.lib
本文转自博客园Grandyang的博客,原文链接:OpenCV 2.4.11 VS2010 Configuration,如需转载请自行联系原博主。