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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            jianliang79 liang jian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes