Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opengl support issue?

Hello,

I am on windows 7 32bits. I have installed opencv (the latest GIT sources) with opengl support. When I launch a simple test app that displays my webcam images in real-time, everything works fine, my console displays "opengl support available". However, when I create a simple opengl callback with the samples provided in the OpenCV documentation (see end of the email), the simples opengl function glLoadIdentity() returns an error "identifier is undefined".

I suspect that this is an include problem, but it was my understanding that it wasn't necessary to have OpenGL installed on the computer on windows to have OpenGL support with OpenCV. Am I wrong? Are there specific OpenCV include files (or OpenGL include files) that need to be included in addition to highgui to have OpenGL support work ?

Sorry if my question is irrelevant, but I have been looking for help for a while from different sources and could not find an answer. Thanks for any advice you can help with!

setOpenGlDrawCallback("video", onOpenGlDraw, void * userdata = 0); // in my main

void on_opengl(void* param){ // my simplistic callback glLoadIdentity(); }