Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: No OpenGL support

I installed OpenCV using the OpenCV_2_4_4.exe and the OpenCV-2.4.4-CUDA-vc10 and then placed these extracted files under C:\opencv. I also have CUDA4.2 installed on my system.

I then tried running the sample program under C:\opencv\samples\alpha_comp.cpp and it crashes at line 19 -namedWindow("Result", WINDOW_OPENGL); giving the following error-

OpenCV Error: No OpenGL support (Library was built without OpenGL support)

Since I did not build OpenCV and was using the pre-built libraries I am not sure how to handle this error. I tried defining HAVE_OPENGL in the alpha_comp.cpp file but that did not help.

Thanks for any help in advance.