%general-entities; ]> $LastChangedBy$ $Date$ MesaLib-&mesalib-version; MesaLib Introduction to MesaLib Mesa is an OpenGL compatible 3D graphics library. &lfs71_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 Required patch: 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. Install MesaLib by running the following commands: sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure && patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-2.patch && patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch && ./configure --prefix=$XORG_PREFIX \ --enable-texture-float \ --enable-gles1 \ --enable-gles2 \ --enable-xa \ --enable-shared-glapi \ --enable-shared-dricore \ --enable-glx-tls \ --with-gallium-drivers="nouveau,r300,r600,svga,swrast" && make This package does not come with a test suite. Now, as the root user: make install && mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; && cp -rfv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; Finally, if installing to any prefix other than /usr, you should create symlinks to the GL headers in /usr/include. Execute the following command as the root user: for GLHEADER in EGL GL GLES GLES2 KHR xa_composite.h xa_context.h xa_tracker.h do ln -sfv ${XORG_PREFIX}/include/${GLHEADER} /usr/include/${GLHEADER} done Command Explanations sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure: by default, Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS and CXXFLAGS with this command. : This switch enables floating-point textures and renderbuffers. 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 building of the XA X Acceleration API (Required for VMware 3D Driver). : This switch enables building of the shared glapi library. : This switch enables linking of the DRI modules with shared core DRI routines. : This switch enables TLS support in GLX. --with-gallium-drivers="...": This parameter controls which Gallium drivers should be built. Available drivers are: i915, nouveau, r300, r600, swrast and svga. Note that you will need to remove r300 and r600 from the list if you haven't installed . Contents Optionally Installed Programs Installed Libraries Installed Directories glxgears and glxinfo libEGL.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so and libxatracker.so $XORG_PREFIX/include/{EGL,GL,GLES,GLES2,KHR}, $XORG_PREFIX/lib/dri, and $XORG_PREFIX/share/doc/MesaLib-&mesalib-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 libGL.so is the main OpenGL library. libGL.so libGLU.so is the OpenGL Utility library. libGLU.so libxatracker.so is the library that provides XA X Acceleration API. libxatracker.so