Qt4.8 にプロジェクトがあり、Qt5.1 でビルドしようとしています。たくさん頂いています
#error gl.h included before glew.h
と
#error glext.h included before glew.h
エラー。OpenGL を使用した Qt5 の大きな変更のようです。すべてのインクルードは
#include "GL/glew.h"
#include "GL/gl.h"
#include "GL/glu.h"
glew.h は常に最初です。