Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QOpenGLShaderProgram: could not create shader program Urgent!
QtWS25 Last Chance

QOpenGLShaderProgram: could not create shader program Urgent!

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 6 Posters 12.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    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.

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        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.

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        1 Reply Last reply
        0
        • A Offline
          A Offline
          agocs
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            shullw
            wrote on last edited by
            #5

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

            A QML Purest Point of View!

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vebmaster
              wrote on last edited by
              #6

              The same error. Has anyone found a solution?

              1 Reply Last reply
              0
              • mrdebugM Offline
                mrdebugM Offline
                mrdebug
                wrote on last edited by
                #7

                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.

                Need programmers to hire?
                www.labcsp.com
                www.denisgottardello.it
                GMT+1
                Skype: mrdebug

                B 1 Reply Last reply
                0
                • mrdebugM mrdebug

                  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.

                  B Offline
                  B Offline
                  Bigmat
                  wrote on last edited by Bigmat
                  #8

                  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

                  Qt/C++ and Android Developer

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved