I try to build vtk with qt in wasm, but when it comes to vtkGuiSupportQt, it generate errors like this:
D:\myLibs\VTK\vtk-v9.1.0\GUISupport\Qt\QVTKOpenGLWindow.cxx:266:43: error: use of undeclared identifier ‘GL_BACK_LEFT’
this->defaultFramebufferObject(), GL_BACK_LEFT, QRect(QPoint(0, 0), deviceSize));
^
D:\myLibs\VTK\vtk-v9.1.0\GUISupport\Qt\QVTKOpenGLWindow.cxx:268:43: error: use of undeclared identifier ‘GL_BACK_RIGHT’
this->defaultFramebufferObject(), GL_BACK_RIGHT, QRect(QPoint(0, 0), deviceSize));
^
D:\myLibs\VTK\vtk-v9.1.0\GUISupport\Qt\QVTKOpenGLWindow.cxx:273:43: error: use of undeclared identifier ‘GL_BACK_LEFT’
this->defaultFramebufferObject(), GL_BACK_LEFT, QRect(QPoint(0, 0), deviceSize));
It seems that GL.h is missing, but I’m not sure how to solve it.
Does anyone have some advice?
Thank you in advance!