Confused on Steam Play and Proton? Be sure to check out our guide.
Using Meson
sr_ls_boy Oct 23, 2017
Mesa now supports building with the Meson build suite.
I have never used meson before. How does it work?

Below is how I configure mesa with autotools.
Does meson support all switches?

Spoiler, click me

PKG_CONFIG_PATH=/usr/lib64/pkgconfig \
CC="gcc -g ${BUILD64} -L/usr/lib64" \
CXX="g++ -g ${BUILD64} -L/usr/lib64" \
CFLAGS="-g -O2 ${BUILD64} -L/usr/lib64" \
CXXFLAGS="-g -O2 ${BUILD64} -L/usr/lib64" \
CPPFLAGS="-g -Wdate-time -D_FORTIFY_SOURCE=2" \
FCFLAGS="-g -O2" \
FFLAGS="-g -O2" \
GCJFLAGS="-g -O2" \
LDFLAGS="-g -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-rpath,/usr/lib64 -L/usr/lib64 -Wl,-rpath,/lib64 -L/lib64" \
OBJCFLAGS="-g -O2" \
OBJCXXFLAGS="-g -O2" \
LLVM_LDFLAGS="-L/usr/lib64" \
\
../configure \
--prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --sysconfdir=/etc \
--libdir=/usr/lib64 \
--localstatedir=/var \
--build=x86_64-linux-gnu \
\
--enable-dri --with-dri-drivers=radeon,swrast \
--enable-osmesa --enable-glx-tls --enable-shared-glapi \
--enable-texture-float --with-vulkan-drivers=radeon \
--enable-driglx-direct --enable-dri3 --with-platforms=x11,drm \
--enable-xa --enable-llvm --enable-vdpau \
--enable-va --enable-xvmc \
--enable-nine --with-gallium-drivers="svga radeonsi swrast" \
--enable-gles1 --enable-gles2
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.