I have a VTK application which I want to run on Windows 11 without a GPU. Currently, starting it causes an immediate crash due to lack of OpenGL:
Failed to load opengl32sw (The specified module could not be found.)
Failed to load and resolve WGL/OpenGL functions
qt.qpa.gl: Software OpenGL failed. Falling back to system OpenGL.
QOpenGLWindow::beginPaint: Failed to create context
QOpenGLWindow::beginPaint: Failed to make context current
2026-01-08 08:03:23.076 ( 0.117s) [18B4C5461F3729CD]vtkOpenGLRenderWindow.c:704 ERR| vtkGenericOpenGLRenderWindow (000001500D579BF0): GLEW could not be initialized: Missing GL version
QOpenGLFunctions created with non-current context
This application typically only renders relatively simple 3D geometries on the screen, so it had no problems working via LLVMpipe on Linux. I also tried providing an old copy of opengl32sw.dll prebuilt by Qt here, but GLEW still couldn’t be initialized, perhaps because the GL version was not supported?
Qt + VTK + OpenGL software rendering on Windows is an arcane topic and poorly documented and discussed anywhere online, so I have no idea how the same can be achieved on Windows. Does anyone know anything about it?
Thanks in advance.