Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2011-11-11 11:52:39
Size: 480
Editor: bonaccos
Comment:
Revision 3 as of 2011-12-16 15:22:04
Size: 733
Editor: hgiger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Set the environment variable {{{LIBGL_ALWAYS_INDIRECT}}} to {{{yes}}}: Set the environment variable {{{LIBGL_ALWAYS_INDIRECT}}} to {{{yes}}} as followed.
Line 9: Line 9:
For tcsh: Open a shell and type:
Line 11: Line 12:
setenv LIBGL_ALWAYS_INDIRECT yes $ echo $SHELL
Line 14: Line 15:
For bash: To determine what shell you are using. Then:
Line 16: Line 18:
export LIBGL_ALWAYS_INDIRECT=yes $ export LIBGL_ALWAYS_INDIRECT=yes (for 'bash')

$ setenv LIBGL_ALWAYS_INDIRECT yes (for 'tcsh')
Line 19: Line 23:
What does {{{LIBGL_ALWAYS_INDIRECT}}} do? See: http://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do
After that start your application in the shell as usual:

{{{
$ <application>
}}}

What does {{{LIBGL_ALWAYS_INDIRECT}}} do? See: http://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do and http://www.mesa3d.org/envvars.html

Problem

When trying to launch an application within a vncserver Session which needs OpenGL the application crashes.

Possible Workaround

Set the environment variable LIBGL_ALWAYS_INDIRECT to yes as followed.

Open a shell and type:

$ echo $SHELL

To determine what shell you are using. Then:

$ export LIBGL_ALWAYS_INDIRECT=yes       (for 'bash')

$ setenv LIBGL_ALWAYS_INDIRECT yes       (for 'tcsh')

After that start your application in the shell as usual:

$ <application>

What does LIBGL_ALWAYS_INDIRECT do? See: http://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do and http://www.mesa3d.org/envvars.html