MesaLib-8.0.2

Introduction to MesaLib

Mesa is an OpenGL compatible 3D graphics library.

This package is known to build and work properly using an LFS-7.1 platform.

Package Information

Additional Downloads

MesaLib Dependencies

Required

expat-2.1.0, libdrm-2.4.33, libxml2-2.7.8, makedepend-1.0.3, talloc-2.0.7, and Xorg Libraries

Optional

llvm-3.0

[Note]

Note

The libxml2 Python module must have been built during the installation of libxml2 or else MesaLib build will fail.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/mesalib

Installation of MesaLib

[Note]

Note

Unlike other packages, the MesaLib-8.0.2.tar.bz2 archive will extract to the Mesa-8.0.2 directory.

Install MesaLib by running the following commands:

sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
patch -Np1 -i ../MesaLib-8.0.2-add_xdemos-2.patch &&
./configure --prefix=$XORG_PREFIX --enable-shared-dricore --enable-xa \
            --with-gallium-drivers="nouveau,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-8.0.2 &&
cp -rv docs/* ${XORG_PREFIX}/share/doc/MesaLib-8.0.2

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 &&
ln -s -v ${XORG_PREFIX}/include/EGL /usr/include &&
ln -s -v ${XORG_PREFIX}/include/KHR /usr/include &&
for HEADER in xa_{composite,context,tracker}.h
do
  ln -s -v ${XORG_PREFIX}/include/$HEADER /usr/include
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.

--enable-shared-dricore: link DRI modules with shared core DRI routines.

--enable-xa: enables building of the XA X Acceleration API (Required for VMware 3D Driver).

--with-gallium-drivers="...": controls building of gallium drivers. Available drivers are: i915, nouveau, r300, r600, swrast and svga. Note that r300 and r600 require llvm-3.0 to be installed.

Contents

Optionally Installed Programs: glxgears and glxinfo
Installed Libraries: libEGL.so, libGL.so, libGLU.so, libxatracker.so, and *_dri.so
Installed Directories: $XORG_PREFIX/include/{EGL,GL,KHR}, $XORG_PREFIX/lib/dri, and $XORG_PREFIX/share/doc/MesaLib-8.0.2

Short Descriptions

glxgears

is a GL demo useful for troubleshooting graphics problems.

glxinfo

is a diagnostic program that displays information about the graphics hardware and installed GL libraries.

libEGL.so

provides a native platform graphics interface as defined by the EGL-1.4 specification.

libGL.so

is the main OpenGL library.

libGLU.so

is the OpenGL Utility library.

libxatracker.so

is the XA X Acceleration API library.

Last updated on 2012-05-16 16:46:55 +0000