%general-entities; ]> $LastChangedBy$ $Date$ MesaLib-&mesalib-version; MesaLib Introduction to MesaLib Mesa is an OpenGL compatible 3D graphics library. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &mesalib-md5sum; Download size: &mesalib-size; Estimated disk space required: &mesalib-buildsize; Estimated build time: &mesalib-time; Additional Downloads GLU Download (HTTP): GLU Download (FTP): GLU Download MD5 sum: &glu-md5sum; GLU Download size: &glu-size; Estimated GLU disk space required: &glu-buildsize; Estimated GLU build time: &glu-time; Additional Patches Recommended patch: (Needed if testing the Xorg installation per BLFS instructions). MesaLib Dependencies Required , , , and Recommended The libxml2 Python module must have been built during the installation of libxml2 or else MesaLib build will fail. User Notes: Installation of MesaLib Unlike other packages, the MesaLib-&mesalib-version;.tar.bz2 archive will extract to the Mesa-&mesalib-version; directory. If you have downloaded the recommended patch, apply it by running the following command: patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-5.patch Install MesaLib by running the following commands: autoreconf -fi && ./configure CFLAGS="-O2" CXXFLAGS="-O2" \ --prefix=/usr \ --sysconfdir=/etc \ --enable-texture-float \ --enable-gles1 \ --enable-gles2 \ --enable-openvg \ --enable-osmesa \ --enable-xa \ --enable-gbm \ --enable-gallium-egl \ --enable-gallium-gbm \ --enable-glx-tls \ --with-egl-platforms="drm,x11" \ --with-gallium-drivers="nouveau,r300,r600,svga,swrast" && make If you have applied the recommended patch, build the demo programs by running the following command: make -C xdemos DEMOS_PREFIX=/usr This package does not come with a test suite. 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/MesaLib-&mesalib-version; && cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version; Installation of GLU Install GLU by running the following commands: ./configure --prefix=/usr --disable-static && make This package does not come with a test suite. Now, as the root user: make install 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. It is recommended that you override the default flags to omit -g switch so the final libraries are smaller. : 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. : This switch enables support for OpenGL ES 1.x API. : This switch enables support for OpenGL ES 2.x API. : This switch enables support for OpenVG API. : This switch enables building of the libOSMesa library. : This switch enables building of the XA X Acceleration API (Required for VMware 3D Driver). : This switch enables building of the Mesa Graphics Buffer Manager library. : This switch enables optional EGL state tracker for Gallium. : This switch enables optional GBM state tracker for Gallium. : This switch enables TLS support in GLX. --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, nouveau, r300, r600, svga and swrast. You will need to remove r300 and r600 from the list if you did not install . Contents Optionally Installed Programs Installed Libraries Installed Directories glxgears and glxinfo libdricore9.0.0.so, libEGL.so, libgbm.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so, libOpenVG.so, libOSMesa.so and libxatracker.so /usr/include/EGL, /usr/include/GL, /usr/include/GLES, /usr/include/GLES2, /usr/include/KHR, /usr/include/VG and /usr/lib/dri 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 libdricore9.0.0.so contains common DRI routines used by Mesa DRI drivers. libdricore9.0.0.so 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 libGLU.so is the Mesa OpenGL Utility library. libGLU.so libOpenVG.so is the Mesa OpenVG 1.0 library. libOpenVG.so libOSMesa.so is the Mesa Off-screen Rendering library. libOSMesa.so libxatracker.so is the Xorg Gallium3D acceleration library. libxatracker.so