You should try replacing gl.h glext.h in the include statements of the file that contains this error.
Replace the following: -
#include <OpenGLES/ES2/gl.h>
with this: -
#include <OpenGLES/ES2/glext.h>
your include statements should look like this: -
Previously: -
#include "CMVideoSampling.h" #include "CVTextureCache.h" #include "GLESHelper.h" #include <OpenGLES/ES2/gl.h> #include <AVFoundation/AVFoundation.h>
After replacement: -
#include "CMVideoSampling.h" #include "CVTextureCache.h" #include "GLESHelper.h" #include <OpenGLES/ES2/glext.h>//replace glext.h here #include <AVFoundation/AVFoundation.h>
Pawan joshi
source share