Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26326

CLONE - using glew.h with Qt-4.8 in MSVC has broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.8.0
    • GUI: OpenGL
    • None
    • windows 7 x64
      MSVC 2010
      glew 1.6.0

    Description

      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

      #ifdef _GLEW_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
      #endif

      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

      Attachments

        For Gerrit Dashboard: QTBUG-26326
        # Subject Branch Project Status CR V

        Activity

          People

            sgaist Samuel Gaist
            ritchie Richard Patek
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes