%general-entities; ]> $LastChangedBy$ $Date$ MesaLib-&mesalib-version; MesaLib Introduction to MesaLib Mesa is an OpenGL compatible 3-D graphics library. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &mesalib-md5sum; Download size (including recommended download): &mesalib-size; Estimated disk space required (including recommended download): &mesalib-buildsize; Estimated build time (including recommended download): &mesalib-time; MesaLib Dependencies Required , , and It is not recommended to build a newer version of Mesa with . Recommended Download MesaDemos-&mesalib-version; provides a demo and a diagnostic program to verify that GL is working properly. Optional Download MesaGLUT-&mesalib-version; provides a working libglut. You should extract all three tarballs from the same toplevel directory. All three files will extract to the Mesa-&mesalib-version; directory. User Notes: Installation of MesaLib You will need to adjust the commands below to reflect the installation prefix of the X Window System. First, correct several hard coded directories in the source files with the following commands: find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; && sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c && sed -i 's@lib/modules@lib/X11/modules@' \ src/mesa/drivers/dri/Makefile.template Fix an error with output redirection if /bin/sh is not the Bash shell on your system: sed -i 's%>& /dev/null%>/dev/null%' src/mesa/drivers/dri/Makefile.template Build MesaLib by running the following command: make OPT_FLAGS="-O2 -fno-strict-aliasing" linux-dri-x86 This package does not come with a test suite. Now, as the root user, issue the following commands to install MesaLib: bin/installmesa $XORG_PREFIX While still the root user, install the modules for Xorg-&xorg7-version; with the following commands. mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri && install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri If you've extracted the Demos package as well, then build the test programs with the following commands: sed -i 's@-l$(GLUT_LIB)@@g' configs/default && cd progs/xdemos && make PROGS='glxinfo glxgears' Install the demos as the root user: install -v -m755 glxinfo glxgears $XORG_PREFIX/bin Do not remove the Mesa source tree yet, it will be required to build the . 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: ln -s -v $XORG_PREFIX/include/GL /usr/include Command Explanations find...sed -i "s@/usr/X11R6@$XORG_PREFIX@"...: This command corrects several hard coded references to the X11R6 default installation path. sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c: This command corrects a hard coded reference to the module directory. make OPT_FLAGS=... linux-dri-x86: A bug where OpenGL applications are shifted to the left by 50% can be worked around by adding to the compiler flags. Also, the target is specified to use a few other helpful flags in addition to the defaults. See the other targets in the configs directory if your architecture is not x86. bin/installmesa: Mesa uses a custom installation script as opposed to the normal install make target. install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri: installs the DRI modules. sed -i 's@-l$(GLUT_LIB)@@g' configs/default: disables linking against GLUT libraries for the demo programs. make PROGS='glxinfo glxgears': build only the glxinfo and glxgears programs. install -v -m755 glxinfo glxgears $XORG_PREFIX/bin: Installs only the glxinfo and glxgears programs. Contents Installed Programs Installed Libraries Installed Directories glxgears and glxinfo libGL.{so,a}, libGLU.{so,a}, libGLw.{so,a}, libglut.{so,a} and *_dri.so $XORG_PREFIX/lib/modules/dri Short Descriptions glxgears a GL demo useful for troubleshooting graphics problems. glxgears glxinfo a diagnostic program that displays information about the graphics hardware and installed GL libraries. glxinfo