Priority: Not Evaluated
Affects Version/s: 4.8.0
Fix Version/s: None
Component/s: GUI: OpenGL
Environment:windows 7 x64
I got Qt-4.8 source code from git, it seems that using glew.h with Qt-4.8 in MSVC has broken.
If I include glew.h before <QtOpenGL>, there will be compiling errors, this is due to the following line in qglfunctions.h
#warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
#warning To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h
MSVC doesn't recognize preprocessor directive #warning
If I include glew.h after <QtOpenGL>, then glew.h will complain "fatal error C1189: #error : gl.h included before glew.h"
For now, I can't find a way to use glew.h with Qt