%general-entities; ]> $LastChangedBy$ $Date$ MesaLib-&mesalib-version;.tar MesaLib 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 downloads): &mesalib-size; Estimated disk space required (including Recommended downloads): &mesalib-buildsize; Estimated build time (including Recommended downloads): &mesalib-time; MesaLib Dependencies Required X (, , or Libs and Utilities), and Recommended Downloads provides a working libglut (needed for the demos). provides a demo and a diagnostic program to verify that GL is working properly. You should extract all three tarballs from the same toplevel directory. All three files will extract to the Mesa-&mesalib-version; directory. Installation of MesaLib If you've installed the X Window System into any prefix other than /usr, then you'll need to adjust the commands below for your system. Correct several hard coded directories in the source files with the following commands: find . -type f -exec sed -i 's@/usr/X11R6@/usr@g' {} \; && sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c Install MesaLib by running the following command: make linux-dri This package does not come with a test suite. Now, as the root user: bin/installmesa /usr && mkdir -v -p /usr/lib/X11/modules/dri && install -v -m755 lib/*dri* /usr/lib/X11/modules/dri If you've extracted the GLUT and Demos packages as well, then build the test programs with the following commands: cd progs/xdemos && make PROGS='glxinfo glxgears' Install the demos as the root user: install -v -m755 glxinfo glxgears /usr/bin If building , do not remove the Mesa source tree yet, it will be required to build the X server. 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 [/usr/X11]/include/GL /usr/include Command Explanations find...sed -i 's@/usr/X11R6@/usr@'...: 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. bin/installmesa: Mesa uses a custom installation script as opposed to the normal install make target. install -v -m755 lib/*dri* /usr/lib/X11/modules/dri: installs the DRI modules. make PROGS='glxinfo glxgears': build only the glxinfo and glxgears programs. install -v -m755 glxinfo glxgears /usr/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