Error Failed to create OpenGL cotext for format QSurfaceFormat()
Cuando se intenta abrir algún programa en Windows 7/8/10/11 podría mostrar el siguiente error:
Failed to create OpenGL context for format QSurfaceFormat(version 2.0. options Qflags<QSurfaceFormat::FormatOption>(), depthbufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) .
This is most likely caused by not having the necessary graphics drivers installed.
install a driver providing Opengl 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll and d2dcompiler_*.dll) are available in the application executable's directory or in a location listed in a PATH
El error me apareció intentando ejecutar Western Digital Dashboard para revivir un disco duro western digital WD3200BEKT-60V5T1 que se detectaba como "dispostivio desconocido" aunque permitia inicializar la partición (spoiler alert: no me dio tiempo de probarlo y no funciono WD dashboard por no detectar el disco), el equipo en cuestión es una HP DC2000 con windows 10 22H2 y driver WDM de windows update.
Lo normal fue pensar en reinstalar el driver de video de intel integrado en la máquina, pero no funcionó, la solución que me funciono es:
Agregar dos variables al entorno PATH del sistema
una variable llamada QT_OPEN ANGLE con valor de variable angle, y otra variable llamada QT_ANGLE_PLATFORM con valor de variable warp.
Me base en este video:
https://www.youtube.com/watch?v=GdlNe4EcCjQ
Comentarios