1-Download OpenCv: http://opencv.org/downloads.html
2-Copy OpenCV folder
to C:\\ that is contain:
-
C:\opencv\opencv\build\include\opencv
-
C:\opencv\opencv\build\include\opencv2
3-Copy AntweakBar.dll,
freeglut.dll to: C:\opencv\opencv\build\x86\vc12\bin
4-Copy all header files *.h included “AntTweakBar.h, freeglut.h, GL.h, glut.h, glui.h,… “ to:
C:\Program Files\Microsoft Visual Studio 14.0\VC\include
5-Copy all header files *.lib included “AntTweakBar.lib, glui.lib, glut.lib, glut32.lib,… “ to:
C:\Program Files\Microsoft Visual Studio 14.0\VC\lib
6-Add new path “C:\opencv\build\x86\vc12\bin”
to Environment Variables form MyComputer properties:
7-From the properties of
VisualStudio software, adding the link for OpenCv library,…
è Adding
the link of Opencv,
Opencv2 folder to General tab of
C/C++
è Adding
the link of lib folder to General tab of Linker
è Input name of all of file.lib:
opencv_calib3d2410.lib
opencv_calib3d2410d.lib
opencv_contrib2410.lib
opencv_contrib2410d.lib
opencv_core2410.lib
opencv_core2410d.lib
opencv_features2d2410.lib
opencv_features2d2410d.lib
opencv_flann2410.lib
opencv_flann2410d.lib
opencv_gpu2410.lib
opencv_gpu2410d.lib
opencv_highgui2410.lib
opencv_highgui2410d.lib
opencv_imgproc2410.lib
opencv_imgproc2410d.lib
opencv_legacy2410.lib
opencv_legacy2410d.lib
opencv_ml2410.lib
opencv_ml2410d.lib
opencv_nonfree2410.lib
opencv_nonfree2410d.lib
opencv_objdetect2410.lib
opencv_objdetect2410d.lib
opencv_ocl2410.lib
opencv_ocl2410d.lib
opencv_photo2410.lib
opencv_photo2410d.lib
opencv_stitching2410.lib
opencv_stitching2410d.lib
opencv_superres2410.lib
opencv_superres2410d.lib
opencv_ts2410.lib
opencv_ts2410d.lib
opencv_video2410.lib
opencv_video2410d.lib
opencv_videostab2410.lib
opencv_videostab2410d.lib
========================= Hope to enjoy! ==============================