PDA

View Full Version : QOpenGLShaderProgram and QOpenGLShader Issues



VirtuousLeo
18th November 2013, 10:34
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.

VirtuousLeo
19th November 2013, 05:24
hello anyone?

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

Please let me know in either case.

saman_artorious
23rd November 2013, 20:24
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,

VirtuousLeo
25th November 2013, 05:50
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. :)

QtMohan
29th November 2013, 05:47
Hi VirtuousLeo,
Can you please help how did you solve the problem above in VM client?

VirtuousLeo
29th November 2013, 10:08
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?

rishikumar
21st November 2014, 07:12
Hi
this is rishi here