Errors building vtkGUISupportQt

This failure could be due to Qt configuration. In that header file, there is an #ifdef block:

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

So if Qt was configured for OpenGL ES, or if it was configured for no OpenGL, then QOpenGLFunctions_3_2_Core will not be defined.

How was Qt installed?