I\'m using OpenCV 2.2 with visual studio 2010 on a win 7 64 bit pc.
I\'m able to display pictures and play AVI files through OpenCV as given in the book \"Learning O
CMAKE GUI, MSVC++10E, Vista 32bit, OpenCV2.2
It looks like HAVE_VIDEOINPUT/WITH_VIDEOINPUT option doesn't work.
HAVE_VIDEOINPUT/WITH_VIDEOINPUT
However adding: /D HAVE_DSHOW /D HAVE_VIDEOINPUT to CMAKE_CXX_FLAGS, and CMAKE_C_FLAGS did the trick for me (there will be warns due to macro redefinitions).
/D HAVE_DSHOW /D HAVE_VIDEOINPUT
CMAKE_CXX_FLAGS
CMAKE_C_FLAGS