Results 1 to 7 of 7

Thread: QOpenGLShaderProgram and QOpenGLShader Issues

  1. #1
    Join Date
    Nov 2013
    Posts
    8
    Thanked 8 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QOpenGLShaderProgram and QOpenGLShader Issues

    Hello Guys,
    I am a newbie in Qt 5.1 and i have installed Qt in debian (wheezy). This is the package that i have installed qt-linux-opensource-5.1.1-x86_64-offline available at http://qt-project.org/downloads

    I am trying to run the already provided examples available with QtCreator. If i run a non qml application (e.g. "Application Example" in the QtCreator examples section ) the demo runs successfully, but when i try to run a qml based example (e.g. "Qt Quick Controls- Table View Example" in the QtCreator examples section) i only get a blank screen without anything being rendered on it except the title bar and this happens with all the other qml based examples.


    The error log when running the "Qt Quick Controls-Table view example" is as follows

    Starting /home/test/Qt5.1.1/5.1.1/gcc_64/examples/quick/controls/build-tableview-Desktop_Qt_5_1_1_GCC_64bit-Debug/tableview...
    QML debugging is enabled. Only use this in a safe environment.
    QXcbConnection: Failed to get the primary output of the screen
    QXcbConnection: XCB error: 168 (Unknown), sequence: 150, resource id: 80, major code: 149 (Unknown), minor code: 20
    QSGContext::initialize: stencil buffer support missing, expect rendering errors
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QSGMaterialShader: 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
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( qt_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
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( qt_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
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QSGMaterialShader: Shader compilation failed:
    ""
    QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
    QOpenGLShader: could not create shader
    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    QOpenGLShaderProgram::uniformLocation( imageTexture ): shader program is not linked


    Please let me know what i am doing wrong here and is there something that is missing on my debian environment.

  2. The following 3 users say thank you to VirtuousLeo for this useful post:

    louboutinoutlet (2nd December 2013)

  3. #2
    Join Date
    Nov 2013
    Posts
    8
    Thanked 8 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    hello anyone?

    Am i the only one facing this issue? or have i not posted enough details?

    Please let me know in either case.
    Last edited by VirtuousLeo; 19th November 2013 at 08:32.

  4. The following 2 users say thank you to VirtuousLeo for this useful post:

    louboutinoutlet (2nd December 2013)

  5. #3
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    Quote Originally Posted by VirtuousLeo View Post
    hello anyone?

    Am i the only one facing this issue? or have i not posted enough details?

    Please let me know in either case.

    I never worked with QML before. However, as long as it is concerned with OpenGL, are you sure you are adding the vsh and fsh files to your project resource file? what are those files? can you paste them here?
    QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
    this error is because you have not linked the shader files successfully at load time. The rest of the errors certainly signifies you are missing shaders linkage and compilation.

    Cheers,

  6. The following 2 users say thank you to saman_artorious for this useful post:

    louboutinoutlet (2nd December 2013)

  7. #4
    Join Date
    Nov 2013
    Posts
    8
    Thanked 8 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    Thanx Saman for your help, i really appreciate it.

    Actually the issue was outside the Qt, and much related to the VM client i have been using and its been solved now.

    Thanx again for your time.

  8. The following 2 users say thank you to VirtuousLeo for this useful post:

    louboutinoutlet (2nd December 2013)

  9. #5
    Join Date
    Nov 2013
    Posts
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    Hi VirtuousLeo,
    Can you please help how did you solve the problem above in VM client?

  10. The following user says thank you to QtMohan for this useful post:


  11. #6
    Join Date
    Nov 2013
    Posts
    8
    Thanked 8 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    Hi Mohan,
    Are you exactly facing the same error log that i mentioned above?
    What VM client are you using to access your linux machine?

  12. The following user says thank you to VirtuousLeo for this useful post:


  13. #7
    Join Date
    Nov 2014
    Posts
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows

    Default Re: QOpenGLShaderProgram and QOpenGLShader Issues

    Hi
    this is rishi here

Similar Threads

  1. Several issues with QWT 6.1 and Qt 5.0.2
    By DizzyMoods in forum Qwt
    Replies: 3
    Last Post: 16th April 2013, 14:39
  2. Issues with Uic.
    By queelius in forum Qt Programming
    Replies: 4
    Last Post: 2nd December 2010, 14:37
  3. 4.6.0 issues on OS X 10.6 with GL
    By treaves in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2009, 18:12
  4. CPU Loading issues
    By arunvv in forum Qt Programming
    Replies: 0
    Last Post: 21st September 2009, 20:22
  5. Issues with Qt::StatusTipRole
    By laugusti in forum Qt Programming
    Replies: 2
    Last Post: 20th August 2009, 16:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.