OpenCV Error: OpenGL API call (Can't load OpenGL extension ) in un known function, file ..\..\..\opencv1\modules\core\src\gl_core_3_1.cpp, line 141
#include < opencv\cv.h >
#include < opencv\highgui.h >
using namespace cv;
int main( int argc, char* argv ) { IplImage img = cvLoadImage("tango.jpg" ); cvNamedWindow( "Example1", CV_WINDOW_OPENGL ); cvShowImage( "Example1", img ); cvWaitKey(5000); cvReleaseImage( &img ); cvDestroyWindow( "Example1" ); }
I m trying to run the namedWindow with OPENGL suppport . I first build the opencv 2.4.6 version with qtbackends using cmake. Then i tried to run the above program i am getting the OpenCV Error: OpenGL API call (Can't load OpenGL extension ) in un known function, file ......\opencv1\modules\core\src\gl_core_3_1.cpp, line 141 error.. Please tell me whats going wrong in my code.
i did execute this command "cerr << getBuildInformation() <<endl" and I got the following output GUI: QT: NO Win32 UI: YES OpenGL support: YES (glu32 opengl32)
So now what to do?