"vtkGenericOpenGLRenderWindow: GLEW could not be initialized: Unknown Error" on Wayland
If running under Wayland, vtkGenericOpenGLRenderWindow
cannot be initialized and fails with an error message "GLEW could not be initialized: Unknown Error". This is caused by an known Wayland incompatibility issue in the upstream GLEW project, and is already known to affect 20+ GLEW-based downstream projects, including VTK, see [1] for details. The root cause is that GLEW's glewInit()
attempts to use GLX, which is nonexistent on Wayland. Fortunately, it's easy to work around the problem - just ignore the error code GLEW_ERROR_NO_GLX_DISPLAY
, and GLEW will otherwise work without problems.
I plan to submit a patch to fix the problem.
Potentially Related VTK reports: