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/01/23 18:27] uli42 [Debian Buster and Mesa 19.3.2] |
wiki:development:glx-xlib-workaround [2020/08/20 20:24] uli42 add helper script with LD_PRELOAD |
||
---|---|---|---|
Line 12: | Line 12: | ||
- | ===== Mesa 19 and newer ===== | + | ==== Mesa 19 and newer ==== |
- | Please note: the instructions below are not current anymore since Mesa now mainly uses meson for building. Please consult https:// | + | Please note: the instructions below are valid for older Mesa releases. In Mesa 19 //meson// is recommended |
- | with any dri driver" | + | with any dri driver" |
< | < | ||
- | $ | ||
$ meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | $ meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | ||
$ ninja | $ ninja | ||
</ | </ | ||
- | ===== Debian Buster and Mesa 19.3.2 | + | ==== Debian Buster and Mesa 19.3.2 ==== |
< | < | ||
Line 30: | Line 29: | ||
$ meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | $ meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | ||
$ ninja | $ ninja | ||
- | $ LD_LIBRARY_PATH=`pwd`/ | + | $ LD_LIBRARY_PATH=`pwd`/ |
+ | </ | ||
+ | |||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | LD_PRELOAD=< | ||
</ | </ | ||
Line 84: | Line 100: | ||
ebuild "/ | ebuild "/ | ||
</ | </ | ||
+ | |||
+ | ===== Matlab 2019b ===== | ||
+ | |||
+ | Compile like this: | ||
+ | < | ||
+ | meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | ||
+ | </ | ||
+ | |||
+ | To make Matlab load the new driver modify Matlab' | ||
+ | cp $MATLAB_DIRECTORY/ | ||
+ | |||
+ | Edit the file ~/ | ||
+ | |||
+ | Add to your .profile: export MESA_GL_VERSION_OVERRIDE=3.0 |