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/01/23 18:31]
uli42 [Debian Buster and Mesa 19.3.2]
wiki:development:glx-xlib-workaround [2020/06/02 19:13]
uli42
Line 32: Line 32:
 </code> </code>
  
 +If you want you can copy the libgl-xlib directory to some location of your likes and write a small wrapper "x2goglx" for starting GLX applications:
 +<code>
 +#!/bin/sh
 +LD_LIBRARY_PATH=<your directory>/libgl-xlib exec "$@"
 +</code>
 +
 +<code>
 +$ chmod u+rx x2goglx
 +$ x2goglx glxinfo
 +</code>
 ==== Ubuntu 14.04 ==== ==== Ubuntu 14.04 ====
  
Line 83: Line 93:
 ebuild "/usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuild" clean ebuild "/usr/portage/media-libs/mesa/mesa-${mesa_version}.ebuild" clean
 </code> </code>
 +
 +===== Matlab 2019b =====
 +
 +Compile like this:
 +<code>
 +meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" -D vulkan-drivers="" -D buildtype=release -D optimization=3 -Dprefix=/usr/local/mesa-20.1.0/
 +</code>
 +
 +To make Matlab load the new driver modify Matlab's lib search path:
 +cp $MATLAB_DIRECTORY/bin/.matlab7rc.sh ~
 +
 +Edit the file ~/.matlab7rc.sh, find the glnxa* section and add ''/usr/local/mesa-20.1.0/lib/x86_64-linux-gnu'' to LDPATH_PREFIX
 +
 +Add to your .profile: export MESA_GL_VERSION_OVERRIDE=3.0
wiki/development/glx-xlib-workaround.txt ยท Last modified: 2021/10/25 21:01 by uli42