User Tools

Site Tools


wiki:development:glx-xlib-workaround

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:development:glx-xlib-workaround [2020/08/20 13:59]
uli42 [Mesa 19 and newer]
wiki:development:glx-xlib-workaround [2020/08/20 20:24]
uli42 add helper script with LD_PRELOAD
Line 35: Line 35:
 <code> <code>
 #!/bin/sh #!/bin/sh
-LD_LIBRARY_PATH=<your directory>/libgl-xlib exec "$@"+LD_LIBRARY_PATH=<your directory>/libgl-xlib:${LD_LIBRARY_PATH} exec "$@"
 </code> </code>
  
Line 42: Line 42:
 $ x2goglx glxinfo $ x2goglx glxinfo
 </code> </code>
 +
 +Some software modifies LD_LIBRARY_PATH itself. In that case you might be successful with LD_PRELOAD. Instead of setting LD_LIBRARY_PATH point to a directory you set LD_PRELOAD to point to the generated library itself:
 +<code>
 +#!/bin/sh
 +LD_PRELOAD=<your directory>/libgl-xlib/libGL.so exec "$@"
 +</code>
 +
 ==== Ubuntu 14.04 ==== ==== Ubuntu 14.04 ====
  
wiki/development/glx-xlib-workaround.txt ยท Last modified: 2021/10/25 21:01 by uli42