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.


  • Lifetime Qt Champion

    Hi,

    What version of Qt are you using ? OpenGL or ANGLE ?



  • 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.



  • 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.



  • I am having this exact same problem. I hope I find an answer.



  • The same error. Has anyone found a solution?



  • 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.



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.