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. [solved] QOpenGLFunctions with specific version on Windows with Qt 5.3

[solved] QOpenGLFunctions with specific version on Windows with Qt 5.3

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.2k 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.
  • H Offline
    H Offline
    housemate
    wrote on last edited by
    #1

    I opened the OpenGLWindow example and replaced the QOpenGLFunctions with QOpenGLFunctions_3_2_Core/Compatibility. As a result, I am getting the following error message:

    "error: C2504: 'QOpenGLFunctions_3_2_Compatibility' : base class undefined"

    Upon further investigation, it turns out that the problem lies here:

    #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)

    Apparently, the condition is false and the class is not being defined. How do I fix this problem?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      housemate
      wrote on last edited by
      #2

      This seems to be a Windows specific problem. I have managed to get equivalent code to run under MacOSX10.9. I wonder what is going on?

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi, welcome to devnet.
        Did you use the ANGLE version of Qt by any chance? It only supports OpenGL ES 2 set and not the higher core profiles.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          housemate
          wrote on last edited by
          #4

          Hm, I don't think I installed the ANGLE version, at least not consciously. I simply used the default Qt online installer of the community edition. How do I verify I have the right version installed?

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Go to the Qt installation directory and run MaintenanceTool.exe. Select Packages and expand the Qt 5.3 branch. You will see about a dozen of different versions there. See which one you have selected. The msvc* ones without "OpenGL" at the end are ANGLE builds.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              housemate
              wrote on last edited by
              #6

              Spot on, that was it. Thank you for the help!

              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