Introduction to MesaLib
Mesa is an OpenGL compatible 3D
This package is known to build and work properly using an LFS-7.7
This package is known to build and work properly using the gcc-5
Libraries and libdrm-2.4.61
elfutils-0.161 (required for Gallium3D
radeonsi driver), libvdpau-1.1 (to build VDPAU drivers),
LLVM-3.6.1 (required for Gallium3D r300 and
radeonsi drivers and also for llvmpipe which is intended to be the
fastest of the three sw rasterizers, see http://www.mesa3d.org/faq.html#part3
(provides more than 300 extra demos to test MesaLib; this includes the same programs added
by the patch above) and Wayland
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 Gallium3D r300 and
radeonsi drivers. For an explanation of Gallium3D please see
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/mesalib
Installation of MesaLib
If you have downloaded the xdemos patch (needed if testing the Xorg
installation per BLFS instructions), apply it by running the
patch -Np1 -i ../mesa-10.5.6-add_xdemos-1.patch
Install MesaLib by running the
./configure CFLAGS='-O2' CXXFLAGS='-O2' \
If you have applied the xdemos patch, build the demo programs by
running the following command:
make -C xdemos DEMOS_PREFIX=$XORG_PREFIX
To test the results, issue: make
Now, as the
If you have built the demo programs, install them by running the
following command as the
make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install
If desired, install the optional documentation by running the
following commands as the
install -v -dm755 /usr/share/doc/mesa-10.5.6 &&
cp -rfv docs/* /usr/share/doc/mesa-10.5.6
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.
This switch enables floating-point textures and render buffers.
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.
switch enables building of the
--enable-xa: This switch
enables building of the XA X Acceleration API (Required for VMware
--enable-gbm: This switch
enables building of the Mesa
Graphics Buffer Manager library.
switch enables TLS (Thread Local Storage) support in GLX.
This parameter controls for which platforms EGL should be built.
Available platforms are drm, x11 and wayland.
parameter controls which Gallium3D drivers should be built.
Available drivers are: i915, ilo, nouveau, r300, r600, radeonsi,
svga and swrast. You will need to remove r300 and radeonsi from the
list if you did not install elfutils and LLVM.
--enable-r600-llvm-compiler: Use this
switch to enable experimental R600 LLVM backend for graphics shaders which claims
to speed up the driver.
--enable-sysfs: Use this switch to
enable simple PCI identification method, required for building DRI
on systems without udev.
glxgears and glxinfo
libEGL.so, libgbm.so, libglapi.so,
libGLESv1_CM.so, libGLESv2.so, libGL.so, libOSMesa.so,
libxatracker.so, libXvMCnouveau.so, and libXvMCr600.so
and /usr/share/doc/mesa-10.5.6 (optional)
is a GL demo useful for troubleshooting graphics
is a diagnostic program that displays information about
the graphics hardware and installed GL libraries.
provides a native platform graphics interface as defined
by the EGL-1.4 specification.
is the Mesa Graphics
Buffer Manager library.
is the Mesa OpenGL ES
is the Mesa OpenGL ES
is the main Mesa OpenGL
is the Mesa Off-screen
is the Xorg Gallium3D acceleration library.
Last updated on 2015-05-26 15:33:57 +0000