QOpenGLShaderProgram: could not create shader program Urgent!
-
A demo program based on Qt Quick does not work. The problem happens only on Windows, on Linux, Mac, iOS and Android all works well.
This is the error:QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:How can I have my program working in Windows?
I never had a problem like this. -
Hi,
What version of Qt are you using ? OpenGL or ANGLE ?
-
Some systems will not be able to run with real OpenGL, simply because the drivers are insufficient. In particular low-end Intel GMA and similar graphics are affected. It could also be that the vendor-provided drivers are not installed.
Try running some simple test apps from qtbase/examples/opengl (e.g. contextinfo, qopenglwindow, qopenglwidget).
Additionally, if this is Qt 5.4, run with qt.qpa.gl enabled (*) and check what's printed on the debug output.
(*) set QT_LOGGING_RULES=qt.qpa.gl=true before launching the app from the command line.
-
hello guys,
i had the same issue, and after a while i found the solution :-)
In fact, the problem was in AVD configuration : emulation option was set to "Use Host GPU".
I unchecked this option, and restart my AVD.
After that, i was able to start my qml app without any problem :-)
Hope it help a lot of us !
@+Mathieu