Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT definition of GL_GLEXT_VERSION differs from Open GL defintion

QT definition of GL_GLEXT_VERSION differs from Open GL defintion

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 539 Views
  • 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.
  • D Offline
    D Offline
    DalePennington
    wrote on last edited by
    #1

    Folks

    I am working on a existing app with QT5 (version 5.12.5) that has been moved to the RHEL8 system. The app uses Open GL for graphics.

    I am getting a warning of the #define GL_GLEXT_VERSION being redefined.

    Looking at it, QT has its own version of the definition in qt5/QtGui/qopenglext.h (provided by the qt5-qtbase-devel package), while the OpenGL library we installed in gl/glext.h (provided by mesa-libGL-devel package) has another, newer version.

    There are some differences between the 2, in that the glext.h has additional features and support for a newer version (4.6 apparently), and uses a different method to define a few types that apparently resolves the same for our purposes.

    The headers collide because glext.h uses __gl_glext_h has its guard macro, when qopenglext.h uses _glext_h as its guard macro.

    My question would be, should I be concerned with possible issues, or is this just something that will get fixed later. I generally do not like warning in my production code builds, and given that neither file is directly included, I can't just not include one in favor of the other.

    Dale Pennington

    L 1 Reply Last reply
    0
    • D DalePennington

      Folks

      I am working on a existing app with QT5 (version 5.12.5) that has been moved to the RHEL8 system. The app uses Open GL for graphics.

      I am getting a warning of the #define GL_GLEXT_VERSION being redefined.

      Looking at it, QT has its own version of the definition in qt5/QtGui/qopenglext.h (provided by the qt5-qtbase-devel package), while the OpenGL library we installed in gl/glext.h (provided by mesa-libGL-devel package) has another, newer version.

      There are some differences between the 2, in that the glext.h has additional features and support for a newer version (4.6 apparently), and uses a different method to define a few types that apparently resolves the same for our purposes.

      The headers collide because glext.h uses __gl_glext_h has its guard macro, when qopenglext.h uses _glext_h as its guard macro.

      My question would be, should I be concerned with possible issues, or is this just something that will get fixed later. I generally do not like warning in my production code builds, and given that neither file is directly included, I can't just not include one in favor of the other.

      Dale Pennington

      L Offline
      L Offline
      Loic B.
      wrote on last edited by
      #2

      @DalePennington I have the same problem with Qt 5.15.2 on Ubuntu 22.04. Is there, now, a clean workaround ?

      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