I downloaded the latest versions of OpenCV 2.2 for Windows and compiled on Windows XP using MinGW 4.4.1 using CMake 2.8.
Everything went smoothly, and compilation (mingw32-make) and installation (mingw32-make install) were successfully completed.
However, when I compile some code containing the namedWindow () and imshow () functions from highgui, it compiles, but the program crashes. The following one line of code fails:
namedWindow ("img", CV_WINDOW_AUTOSIZE);
Sample programs that ship with OpenCV, displaying images, also fail.
Has anyone experienced the same problem and have a solution?
I also compiled and use OpenCV 2.2 on Linux (Ubuntu) without any problems.
Many thanks.
source
share