namedWindow OpenGL exception in Windows 10
I try to output from webcam to OpenGL window. I built OpenCV with WITH_OPENGL flag. In cvconfig.h and in CMakeVars.txt HAVE_OPENGL presents. But every time I have exception. In debug I see error in system.cpp here:
#ifndef HAVE_OPENGL
if (flags & CV_WINDOW_OPENGL) CV_ERROR( CV_OpenGlNotSupported, "Library was built without OpenGL support" );
#else
This is my code:
cv::namedWindow("raw", CV_WINDOW_OPENGL | CV_WINDOW_AUTOSIZE);
can it be ,you're using the old (prebuild) opencv_world.lib (which has no opengl support), not your self-built libs ?
try a :
cout << cv::getBuildInformation() << endl
to find out, what you are actually usingThanks for your answer. I built OpenCV from source (git master) so I hope it doesn't contains old libraries
no, but maybe, by accident, you linked the old prebuilt ones, not your own
I checked a few times. And I built it with different parameters (with QT, with MediaSDK, etc)
I added output of getBuildInformation but it is moderated
Does this help?
Thanks for your answer but I cannot do that because the exception happens on