This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:development:glx-xlib-workaround [2020/06/02 19:13] uli42 |
wiki:development:glx-xlib-workaround [2021/10/21 06:42] uli42 [Usage] rephrase, fix typos |
||
---|---|---|---|
Line 11: | Line 11: | ||
Use a wrapper/ | Use a wrapper/ | ||
+ | ==== Compile ==== | ||
+ | The general way to build the required library is this (see also https:// | ||
+ | * download and extract tarball from mesa3d.org. Try with the newest and go down to older versions if you have problems with the newer one | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | ==== Wrappers === | ||
+ | Now you should find a libGL.so in '' | ||
+ | |||
+ | Copy '' | ||
+ | |||
+ | '' | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | LD_LIBRARY_PATH=< | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | LD_PRELOAD=< | ||
+ | </ | ||
+ | |||
+ | Make them executable and test them: | ||
+ | < | ||
+ | $ chmod u+rx x2goglx* | ||
+ | $ x2goglx glxinfo | ||
+ | $ x2goglx2 glxinfo | ||
+ | </ | ||
+ | |||
+ | Watch the output of the two glxinfo calls. You should see references to your mesa version and you should also see it reporting "GLX version: 1.4", e.g. (shortened): | ||
+ | < | ||
+ | ... | ||
+ | server glx vendor string: Brian Paul | ||
+ | server glx version string: 1.4 Mesa 18.0.5 | ||
+ | ... | ||
+ | client glx vendor string: Brian Paul | ||
+ | client glx version string: 1.4 Mesa 18.0.5 | ||
+ | ... | ||
+ | GLX version: 1.4 | ||
+ | ... | ||
+ | OpenGL vendor string: VMware, Inc. | ||
+ | OpenGL renderer string: llvmpipe (LLVM 3.8, 128 bits) | ||
+ | OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.0.5 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | |||
+ | Instead of creating the scripts mentioned above you can also add this to your .bashrc (or the config of your favourite shell): | ||
+ | < | ||
+ | export LD_LIBRARY_PATH=< | ||
+ | </ | ||
+ | |||
+ | ==== Usage === | ||
+ | Now you can use one of these created wrapper scripts to run your application: | ||
+ | |||
+ | If you still cannot succeed you need to elaborate if your application needs some special treatment. If so, please add the solution to the end of this page or post it to the mailinglist for someone to add it here. | ||
+ | |||
+ | |||
+ | ===== Versions / Platforms ===== | ||
+ | The following chapters give some hints on how to compile the library on various combinations of platforms and mesa versions. | ||
==== Mesa 19 and newer ==== | ==== Mesa 19 and newer ==== | ||
- | Please note: the instructions below are valid for olter Mesa releases. In Mesa 19 //meson// is recommended for building. Please consult https:// | + | Please note: the instructions below are valid for older Mesa releases. In Mesa 19 //meson// is recommended for building. Please consult https:// |
with any dri driver" | with any dri driver" | ||
< | < | ||
Line 32: | Line 95: | ||
</ | </ | ||
- | If you want you can copy the libgl-xlib directory to some location of your likes and write a small wrapper " | ||
- | < | ||
- | #!/bin/sh | ||
- | LD_LIBRARY_PATH=< | ||
- | </ | ||
- | < | ||
- | $ chmod u+rx x2goglx | ||
- | $ x2goglx glxinfo | ||
- | </ | ||
==== Ubuntu 14.04 ==== | ==== Ubuntu 14.04 ==== | ||
Line 94: | Line 148: | ||
</ | </ | ||
- | ===== Matlab 2019b ===== | + | ===== Applications ===== |
+ | ==== Matlab 2019b ==== | ||
Compile like this: | Compile like this: |