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. Severity Code Description Project File Line Suppression State Error (active) E0020 identifier "QOpenGLFunctions_3_2_Core" is undefined vtkGUISupportQt C:\VTK\VTK-8.2.0\VTK-8.2.0\GUISupport\Qt\QVTKOpenGLNativeWidget.cxx 537
QtWS25 Last Chance

Severity Code Description Project File Line Suppression State Error (active) E0020 identifier "QOpenGLFunctions_3_2_Core" is undefined vtkGUISupportQt C:\VTK\VTK-8.2.0\VTK-8.2.0\GUISupport\Qt\QVTKOpenGLNativeWidget.cxx 537

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 232 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.
  • G Offline
    G Offline
    gibbogle
    wrote on 25 Jun 2024, 07:03 last edited by
    #1

    I am building VTK (VS 2019) with vtkGUIsupportQt, and the compilation of QVTKOpenGLNativeWidget.cxx fails with 28 errors, most of which seem to be related to the QOpenGLFunctions_3_2_Core identifier not existing. I suspect this means I forgot to make one module when I built Qt 5.12.12, but I'm just guessing. It's been years since I did anything with Qt, and all I remember about building VTK with Qt was that it was tricky.
    Can somebody help?

    C 1 Reply Last reply 25 Jun 2024, 07:29
    0
    • G gibbogle
      25 Jun 2024, 07:03

      I am building VTK (VS 2019) with vtkGUIsupportQt, and the compilation of QVTKOpenGLNativeWidget.cxx fails with 28 errors, most of which seem to be related to the QOpenGLFunctions_3_2_Core identifier not existing. I suspect this means I forgot to make one module when I built Qt 5.12.12, but I'm just guessing. It's been years since I did anything with Qt, and all I remember about building VTK with Qt was that it was tricky.
      Can somebody help?

      C Offline
      C Offline
      ChrisW67
      wrote on 25 Jun 2024, 07:29 last edited by
      #2

      @gibbogle I am going to guess the post title is supposed to be one of the claimed compiler errors. A succinct post title with the first few actual error messages, including context, in the body would generally help.

      If the Qt library you are building with is Qt 5.1 or later, and has the GUI module, then you should have the #include <QOpenGLFunctions_3_2_Core> that declares that class. If that is not present then the compilation will have failed earlier with an "include file not found" type message.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gibbogle
        wrote on 25 Jun 2024, 07:43 last edited by gibbogle
        #3

        Thanks for responding. Here are the includes for this file:
        (code deleted)
        #include "QVTKOpenGLNativeWidget.h"

        #include <QOpenGLFunctions_3_2_Core>
        is present.
        There is no error message for an include file not found.
        Needless to say I didn't write any of this code.

        I included a list of the include statements, but my post was flagged as spam for some bizarre reason, so I deleted the list.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Roque
          wrote on 26 Jun 2024, 09:18 last edited by
          #4

          I used qt creator (QT6) and MinGW to compile vtk9.3 and I ran the qt quick example and didn't get any errors. Maybe you can give it a try.

          1 Reply Last reply
          0

          1/4

          25 Jun 2024, 07:03

          • Login

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