I am on latest Raspian release with latest Qt5 pkgs and related OpenGL + MESA pkgs installed from the standard Raspian repo.
I am attempting to build a C++ program (not mine) that relies on Qt5 and OpenGL.
The compiler is complaining as follows:
error: ‘glGetTexImage’ was not declared in this scope
glGetTexImage(GL_TEXTURE_2D, 0, GL_RED, GL_UNSIGNED_BYTE, (unsigned char *)memoryObject[0].constPointer());
Yet, immediately above that there are two other OpenGL calls that "resolve" fine:
glBindTexture(GL_TEXTURE_2D, frameBufferObjectA->texture());
glPixelStorei(GL_PACK_ALIGNMENT, 1);
Digging around, I see that glGetTexImage() is mentioned in the Qt5 provided header files which are (apparently) exposed via:
#include <QOpenGLFunctions>
I also have:
#include <QOpenGLBuffer>
#include <QOpenGLTexture>
#include <QOpenGLShaderProgram>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLFramebufferObject>
In my experience, the compiler complaint usually points to a missing #include, but so far I am not finding it.
Any pointers?
What should I look at next?
Is this related to OpenGL "desktop" vs SE2?