I tried to play a video using OpenCV-2.4.7 in Visual Studio 2010, Win 7
Code is as follow-
#include<opencv\cv.h>
#include <opencv\highgui.h>
using namespace cv;
int main( int argc, char** argv ) {
cvNamedWindow( "Window", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture( "C:/Users/17/Desktop/Wildlife.avi" );
IplImage* frame;
while(1) {
frame = cvQueryFrame( capture );
if( !frame ) break;
cvShowImage( "Window", frame );
char c = cvWaitKey(33);
if( c == 27 ) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "Window" );
}
Debugs is fine but on running, a waring window opens saying "The program can't start because libiconv-2.dll is missing from your computer".
I tried to download libiconv-2.dll into system package then it showed the error "C:\Windows\System32\libiconv-2.dll', Binary was not built with debug information".
Is there any possible missing setting?? what should be done to run this code?