Optional

Note

The instructions below assume that elfutils and LLVM are installed. You will need to modify
the instructions if you choose not to install them. Please note
that elfutils and LLVM are required for Radeon 3D drivers. For an
explanation of gallium please see https://en.wikipedia.org/wiki/Gallium3D.

Note

The libxml2Python module must have been built during
the installation of libxml2 or
else MesaLib build will fail.

Installation of GLU

Command Explanations

CFLAGS="-O2"
CXXFLAGS="-O2": By default, Autoconf sets CFLAGS and CXXFLAGS to "-g -O2".
That results in binaries and libraries being built with debugging
symbols which make them bigger. Override the default flags to omit
-g compiler flag so the final libraries are smaller.

--enable-texture-float: This switch
enables floating-point textures and render buffers. Please consult
docs/patents.txt to see if there are
any legal issues if you use this feature.

--enable-gles1: This switch enables
support for OpenGL ES 1.x API.

--enable-gles2: This switch enables
support for OpenGL ES 2.x API.

--enable-openvg: This switch enables
support for OpenVG API.

--enable-osmesa: This switch enables
building of the libOSMesa library.

--enable-xa: This switch enables
building of the XA X Acceleration API (Required for VMware 3D
Driver).

--enable-gbm: This switch enables
building of the Mesa Graphics
Buffer Manager library.

--enable-gallium-egl: This switch
enables optional EGL state tracker for Gallium.

--enable-gallium-gbm: This switch
enables optional GBM state tracker for Gallium.

--enable-glx-tls: This switch enables
TLS (Thread Local Storage) support in GLX.

--with-llvm-shared-libs: This switch is
used so Gallium drivers will link against shared LLVM libraries instead of the static ones.
Remove if you did not install LLVM.

--with-egl-platforms="...":
This parameter controls for which platforms EGL should be built.
Available platforms are drm, x11 and wayland.

--with-gallium-drivers="...": This
parameter controls which Gallium drivers should be built. Available
drivers are: i915, ilo, nouveau, r300, r600, radeonsi, svga and
swrast. You will need to remove r300, r600 and radeonsi from the
list if you did not install elfutils and LLVM.

--disable-static: This
switch prevents installation of static versions of the libraries.

--enable-r600-llvm-compiler: Use this
switch to enable experimental R600 LLVM backend for graphics shaders which claims
to speed up the driver.