User Tools

Site Tools



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
wiki:development:glx-xlib-workaround [2020/01/23 18:38]
uli42 [Debian Buster and Mesa 19.3.2]
wiki:development:glx-xlib-workaround [2020/06/02 19:13] (current)
Line 35: Line 35:
 <​code>​ <​code>​
 #!/bin/sh #!/bin/sh
-LD_LIBRARY_PATH=/​home/​uli/​work/​nx/​ArcticaProject/​upstream/​mesa3d/​mesa-19.3.2/​build/​./​src/​gallium/​targets/libgl-xlib exec "​$@"​+LD_LIBRARY_PATH=<your directory>​/libgl-xlib exec "​$@"​
 </​code>​ </​code>​
Line 93: 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:
 +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/​
 +To make Matlab load the new driver modify Matlab'​s lib search path:
 +cp $MATLAB_DIRECTORY/​bin/​ ~
 +Edit the file ~/​,​ 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.1579804726.txt.gz ยท Last modified: 2020/01/23 18:38 by uli42