Fresh Qt installation does not run any Qt project, including Qt Example projects, says "shader program not linked"

  • Yesterday I installed Qt 5.4 on my windows 7 PC. But I can not build and run any Qt project including those given in Examples section on the Welcome page of Qt Creator 3.3 that comes with Qt 5.4. Also, I can't run any qml file either using this command from cmd: "qmlscene myqmlfile.qml"

    Please note that I have added this path to my environment variables:
    and Qt installation directory is
    The error message I get in the output window in Qt creator, and in console when running a qml file from cmd, is as follows:
    @QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QOpenGLShader: could not create shader
    shader compilation failed:
    Previously, I used PyQt5, and ran qml files using the command
    @qmlscene myqmlfile.qml@
    without any problem. Then installed Qt Creator 3.3 to run Qt projects, but failed (got some error saying problem in qmake). Finally I uninstalled PyQt5 and Qt Creator 3.3, downloaded Qt 5.4 and installed it, but still could not run Qt projects.

    I found in some website, that I need open GL 2.0 to run Qt projects in Qt 5.4. How do I make sure that I have openGL 2.0? (I checked with GPU-Z and it shows my shader model 2.0 and I don't know if it has anything to do with OpenGL :( )

    Please help me correct whatever is wrong with my Qt installation. This is freaking annoying.

Log in to reply

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