Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Qt5.2.0 + VS2010 + OpenGL: qopengldebug.h(93): error C2208: 'QFlags<Enum>' : no members defined using this type
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt5.2.0 + VS2010 + OpenGL: qopengldebug.h(93): error C2208: 'QFlags<Enum>' : no members defined using this type

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kerry
    wrote on last edited by
    #1

    Working on porting my Qt4 + OpenGL code. In the first file that includes OpenGL headers (Windows, OpenGL, GLM) I get compile errors. The first error was solved with the '#define NOMINMAX', but this one is a little more complex. I'm building w/ CMake 2.8.12.1, in part:
    @
    find_package( OpenGL REQUIRED )
    find_package( Qt5Widgets REQUIRED )
    find_package( Qt5OpenGL REQUIRED )
    ...
    qt5_use_modules( client_app Widgets OpenGL )
    @

    The error start:
    @
    1>d:\dev\qt\5.2.0\qtbase\include\qtgui../../src/gui/opengl/qopengldebug.h(93): error C2208: 'QFlags<Enum>' : no members defined using this type
    1> with
    1> [
    1> Enum=QOpenGLDebugMessage::Type
    1> ]
    1>d:\dev\qt\5.2.0\qtbase\include\qtgui../../src/gui/opengl/qopengldebug.h(143): error C2589: '::' : illegal token on right side of '::'
    1>d:\dev\qt\5.2.0\qtbase\include\qtgui../../src/gui/opengl/qopengldebug.h(143): error C2059: syntax error : '::'
    1>d:\dev\qt\5.2.0\qtbase\include\qtgui../../src/gui/opengl/qopengldebug.h(143): error C2039: 'enum_type' : is not a member of '`global namespace''
    @

    I am rendering using OpenGL myself via a QGLWidget derived class and CGFx, all of which worked fine with Qt 4.

    Any suggestions?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kerry
      wrote on last edited by
      #2

      Moving #include <QtOpenGL> first fixed this, I'm guessing an OpenGL or GLM header was included before <QtOpenGL>.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved