PDA

View Full Version : OpenGL shaders and x11 forwarding



Wali
2nd November 2010, 22:38
Hi,

First let me state that I am using Qt 4.6.0.

I have an linux application which I am developing, which as a requirement has to allow users to view a QGLWidget from an remote system. All the systems running this program have nvidia 7600 gt gpus. (they have shader support). When I run my program locally on a machine, the program works fine. When I remote login to the system (via ssh -X $pcname). I get errors. My display is varible is set to my local machine. So that is not the problem. Simple Opengl stuff still work. But things like QGLWidget::renderText or using a QPainter created from a QGLWidget cause the program to crash.

When I run glxinfo remotely direct rendering is disabled (which is normal for a x11 forwarding situation).


This is the error messages I get when I start the program remotely:


Warning: QGLShader: could not create shader
Warning: QGLShader: could not create shader
Warning: QGLShaderProgram: could not create shader program
Critical: Errors linking simple shader: ""
Warning: QGLShader: could not create shader
Warning: QGLShader: could not create shader
Warning: QGLShaderProgram: could not create shader program
Critical: Errors linking blit shader: ""
Warning: QGLShader: could not create shader
Warning: QGLShader: could not create shader
Warning: QGLShaderProgram: could not create shader program
Warning: "Shader program failed to link, Error Log:
"


I have been trying to debug this problem for a week and still no success. Has anyone else run into this issue? Has anyone else overcome or worked around this problem? Any help, suggestion, or critic is welcomed.