1. Install opencv on windows 8.1 (referring to tutorials in Youtube)
2. Build the following code (simple sample from book "Learning OpenCV")
#include "opencv\highgui.h"
int main(int argc, char** argv) {
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE);
cvShowImage("Example1", img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
}
3. Execute the generated .exe file, but the computer prompts error message "cannot execute the .exe file, for the computer has lost opencv_world310.dll file".
4. To solve this problem, we can only copy the "opencv_world310.dll" file to the same directory with the .exe file.