%general-entities; ]> $LastChangedBy$ $Date$ Mesa-&mesa-version; Mesa Introduction to Mesa Mesa is an OpenGL compatible 3D graphics library. &lfs79_checked;&gcc6_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &mesa-md5sum; Download size: &mesa-size; Estimated disk space required: &mesa-buildsize; Estimated build time: &mesa-time; Additional Downloads Recommended patch: Mesa Dependencies Required and Recommended (required for Gallium3D radeonsi driver), (to build VAAPI drivers for supported hardware), (to build VDPAU drivers for supported hardware), (required for Gallium3D r300 and radeonsi drivers and also for llvmpipe which is intended to be the fastest of the three software rasterizers, see ) and (required to build the libwayland-egl library which is used by many packages that use Wayland) Optional , , mesa-demos (provides more than 300 extra demos to test Mesa this includes the some of the same programs added by the patch above), libclc (to build Radeon OpenCL library), and libomxil-bellagio (to build Radeon OpenMAX driver) 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: Installation of Mesa If you have downloaded the xdemos patch (needed if testing the Xorg installation per BLFS instructions), apply it by running the following command: patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch Install Mesa by running the following commands: ./configure CFLAGS="-O2" CXXFLAGS="-O2" \ --prefix=/usr \ --sysconfdir=/etc \ --enable-texture-float \ --enable-gles1 \ --enable-gles2 \ --enable-xa \ --enable-glx-tls \ --enable-osmesa \ --with-egl-platforms="drm,x11,wayland" \ --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" && make If you have applied the xdemos patch, build the demo programs by running the following command: make -C xdemos DEMOS_PREFIX=/usr To test the results, issue: make check. Now, as the root user: make install If you have built the demo programs, install them by running the following command as the root user: make -C xdemos DEMOS_PREFIX=/usr install If desired, install the optional documentation by running the following commands as the root user: install -v -dm755 /usr/share/doc/mesa-&mesa-version; && cp -rfv docs/* /usr/share/doc/mesa-&mesa-version; 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-xa: This switch enables building of the XA X Acceleration API (Required for VMware 3D Driver). --enable-glx-tls: This switch enables TLS (Thread Local Storage) support in GLX. --enable-osmesa: This switch enables building of the libOSMesa library. --with-egl-platforms="...": This parameter controls for which platforms EGL should be built. Available platforms are drm, x11 and wayland. Remove from the list if you did not install Wayland. --with-gallium-drivers="...": This 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. Contents Installed Programs Installed Libraries Installed Directories glxgears and glxinfo libEGL.so, libgbm.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so, libGL.so, libOSMesa.so, libwayland-egl.so, libxatracker.so, libXvMCnouveau.so, and libXvMCr600.so /usr/include/{EGL,GL,GLES}, /usr/include/{GLES2,GLES3,KHR}, /usr/lib/dri, /usr/lib/vdpau, and /usr/share/doc/mesa-&mesa-version; Short Descriptions glxgears is a GL demo useful for troubleshooting graphics problems. glxgears glxinfo is a diagnostic program that displays information about the graphics hardware and installed GL libraries. glxinfo libEGL.so provides a native platform graphics interface as defined by the EGL-1.4 specification. libEGL.so libgbm.so is the Mesa Graphics Buffer Manager library. libgbm.so libGLESv1_CM.so is the Mesa OpenGL ES 1.1 library. libGLESv1_CM.so libGLES2.so is the Mesa OpenGL ES 2.0 library. libGLES2.so libGL.so is the main Mesa OpenGL library. libGL.so libOSMesa.so is the Mesa off screen rendering library. libOSMesa.so libwayland-egl.so is the Wayland specific EGL library. libwayland-egl.so libxatracker.so is the Xorg Gallium3D acceleration library. libxatracker.so