Ask Your Question
0

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

asked 2014-02-09 07:46:15 -0600

tango gravatar image

#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.

edit retag flag offensive close merge delete

Comments

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?

tango gravatar imagetango ( 2014-02-12 08:27:24 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-13 12:55:35 -0600

tango gravatar image

I have properly built opencv with opengl support still having same problem...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-09 07:46:15 -0600

Seen: 312 times

Last updated: Feb 13 '14