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 [2017/11/04 11:32]
ionic And even more quotes.
wiki:development:glx-xlib-workaround [2020/01/23 18:28]
uli42 [Mesa 19 and newer]
Line 10: Line 10:
  
 Use a wrapper/proxy library provided by Mesa. The applications will use the supplied libGL.so, which in turn uses the lib interface to talk to the X server (nxagent) rather than the GLX interface. From the applications' perspective, they have GLX 1.4. Use a wrapper/proxy library provided by Mesa. The applications will use the supplied libGL.so, which in turn uses the lib interface to talk to the X server (nxagent) rather than the GLX interface. From the applications' perspective, they have GLX 1.4.
 +
 +
 +==== Mesa 19 and newer ====
 +Please note: the instructions below are not current anymore since Mesa now mainly uses meson for building. Please consult https://mesa3d.org/llvmpipe.html for a basic compilation instruction. Since those instructions will not work out of the box (Error: "gallium-xlib conflicts
 +with any dri driver") as of Mesa 19.3.2 you need to call meson with some further parameters 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
 +$ ninja
 +</code>
 +
 +==== Debian Buster and Mesa 19.3.2 ====
 +
 +<code>
 +$ (download and extract tarball from mesa3d.org)
 +$ cd mesa-19.3.2
 +$ mkdir build
 +$ cd build
 +$ 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
 +$ ninja
 +$ LD_LIBRARY_PATH=`pwd`/build/linux-x86_64-debug/gallium/targets/libgl-xlib/:${LD_LIBRARY_PATH} glxinfo | grep 'GLX version:'
 +</code>
  
 ==== Ubuntu 14.04 ==== ==== Ubuntu 14.04 ====
wiki/development/glx-xlib-workaround.txt ยท Last modified: 2021/10/25 21:01 by uli42