Ask Your Question

Philip Zaro's profile - activity

2014-04-17 12:10:49 -0600 received badge  Editor (source)
2014-04-17 12:10:05 -0600 asked a question OpenCV Error: OpenGL API call cv::ogl::Arrays::bind

I compiled OpenCV 2.4.8 with both cuda and opengl support using VS 2012 in Windows 8.1. Tested cuda with provided gpu optical flow sample and it worked well. OpenGL test failed using the provided gpu-example-opengl sample. The error msg is as following:

D:\Dev\SDKs\opencv-2.4.8-src\build_cuda+ogl\bin\Debug>gpu-example-opengl.exe road.png

OpenCV Error: OpenGL API call (An unacceptable value is specified for an enumera ted argument) in cv::ogl::Arrays::bind, file D:\Dev\SDKs\opencv-2.4.8-src\source s\modules\core\src\opengl_interop.cpp, line 1353

Update: after installing GLUT on my new laptop, running gpu-example-opengl.exe in release mode worked correctly. The error still existed in debug mode with the same error message, even after I recompiled OpenCV.

Any idea how to solve it? Thanks!