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
-
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? -
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?@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. -
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.