MesaLib-7.11.2

Introduction to MesaLib

Mesa is an OpenGL compatible 3-D graphics library.

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

Package Information

Additional Downloads

MesaLib Dependencies

Required

expat-2.0.1, libdrm-2.4.27, llvm-3.0, makedepend-1.0.3, talloc-2.0.7, and Xorg Libraries

Optional

LessTif-0.95.2 (required to build motif widgets)

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

Installation of MesaLib

[Note]

Note

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

Install MesaLib by running the following commands:

sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
patch -Np1 -i ../MesaLib-7.11.2-llvm_3.0-1.patch   &&
patch -Np1 -i ../MesaLib-7.11.2-add_xdemos-2.patch &&
./configure $XORG_CONFIG --enable-xcb &&
make

This package does not come with a test suite.

Now, as the root user:

make install &&
install -v -m755 -d ${XORG_PREFIX}/share/doc/MesaLib-7.11.2 &&
install -v -m644    docs/* \
                    ${XORG_PREFIX}/share/doc/MesaLib-7.11.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

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-xcb: use the XCB backend instead of the default XLib backend for GLX.

--enable-motif: build motif widgets into the GL widgets library (requires lesstif).

--with-gallium-driver=...: build additional gallium drivers. Defaults to r300, r600, and swrast. You must specify i9xx and nouveau drivers.

Contents

Optionally Installed Programs: glxgears and glxinfo
Installed Libraries: libEGL.so, libGL.so, libGLU.so, libGLw.so, and *_dri.so
Installed Directories: $XORG_PREFIX/include/{EGL,KHR}, $XORG_PREFIX/lib/{dri,egl}, and $XORG_PREFIX/share/doc/MesaLib-7.11.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.

libGLw.so

is the Xt/Motif OpenGL drawing area widget library.

Last updated on 2011-12-10 23:42:19 +0000