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 [2017/11/04 11:06] vwegert added instructions for Gentoo |
wiki:development:glx-xlib-workaround [2020/01/23 18:30] uli42 [Mesa 19 and newer] |
||
---|---|---|---|
Line 10: | Line 10: | ||
Use a wrapper/ | Use a wrapper/ | ||
+ | |||
+ | |||
+ | ==== 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:// | ||
+ | with any dri driver" | ||
+ | < | ||
+ | $ meson -D glx=gallium-xlib -D gallium-drivers=swrast -D platforms=x11 -D dri3=false -D dri-drivers="" | ||
+ | $ ninja | ||
+ | </ | ||
+ | |||
+ | ==== Debian Buster and Mesa 19.3.2 ==== | ||
+ | |||
+ | < | ||
+ | $ (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="" | ||
+ | $ ninja | ||
+ | $ LD_LIBRARY_PATH=`pwd`/ | ||
+ | </ | ||
==== Ubuntu 14.04 ==== | ==== Ubuntu 14.04 ==== | ||
Line 30: | Line 51: | ||
< | < | ||
- | emerge -av app-portage/ | + | emerge -1av app-portage/ |
</ | </ | ||
Line 37: | Line 58: | ||
mkdir -p / | mkdir -p / | ||
</ | </ | ||
+ | |||
Place the following line in a suitable place - either in your .bashrc or in the script that calls the individual application: | Place the following line in a suitable place - either in your .bashrc or in the script that calls the individual application: | ||
< | < | ||
Line 42: | Line 64: | ||
</ | </ | ||
- | Configure portage to keep the working area that is used to compile | + | Configure portage to extract and patch the Mesa package |
< | < | ||
- | mkdir -p / | + | mesa_version="$(equery |
- | echo ' | + | ebuild "/usr/ |
- | echo 'media-libs/ | + | |
- | emerge -av media-libs/ | + | |
</ | </ | ||
Now compile the library and move it over to the storage location: | Now compile the library and move it over to the storage location: | ||
< | < | ||
- | export MESA_VERSION=$(equery -q list media-libs/ | + | cd "/ |
- | cd / | + | |
scons libgl-xlib | scons libgl-xlib | ||
- | cp build/ | + | cp -av build/ |
</ | </ | ||
- | Warning: The '' | + | Cleanup: |
< | < | ||
- | cd | + | ebuild "/ |
- | build / | + | |
</ | </ |