QOpenGLShaderProgram: could not create shader program Urgent!
-
wrote on 19 Jan 2015, 19:50 last edited by
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 ?
-
wrote on 20 Jan 2015, 09:16 last edited by
MinGw - OpenGL.
Now is not possible for me to recompile Qt to have Angle support..
Is there another way? I assure that my program doesn't want a top level graphic card. -
wrote on 20 Jan 2015, 10:57 last edited by
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.
-
wrote on 13 Feb 2015, 18:27 last edited by
I am having this exact same problem. I hope I find an answer.
-
wrote on 11 Jan 2017, 13:14 last edited by
The same error. Has anyone found a solution?
-
wrote on 11 Jan 2017, 13:44 last edited by
After much time spent on searching a solution I can say that it is not possible.
If you have to use the program in a terminal server or citrix situation or with a graphic card that does not support opengl you should use QWidgets. -
After much time spent on searching a solution I can say that it is not possible.
If you have to use the program in a terminal server or citrix situation or with a graphic card that does not support opengl you should use QWidgets.wrote on 21 Mar 2017, 11:27 last edited by Bigmathello 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