MesaLib-9.1.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.3
platform.
Package Information
Additional Downloads
Additional Patches
MesaLib Dependencies
Required
expat-2.1.0, libdrm-2.4.45,
libxml2-2.9.1, makedepend-1.0.4 and
Xorg
Libraries
Recommended
LLVM-3.2
Warning
The instructions below assume that LLVM is installed. You will need to modify
the instructions if you choose not to install it. Please note
that LLVM is required for Radeon 3D drivers.
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
Unlike other packages, the MesaLib-9.1.2.tar.bz2 archive will extract to
the Mesa-9.1.2 directory.
If you have downloaded the recommended patch, apply it by running
the following command:
patch -Np1 -i ../MesaLib-9.1.2-add_xdemos-1.patch
Install MesaLib by running the
following commands:
autoreconf -fi &&
./configure CFLAGS="-O2" CXXFLAGS="-O2" \
--prefix=/usr \
--sysconfdir=/etc \
--enable-texture-float \
--enable-gles1 \
--enable-gles2 \
--enable-openvg \
--enable-osmesa \
--enable-xa \
--enable-gbm \
--enable-gallium-egl \
--enable-gallium-gbm \
--enable-glx-tls \
--with-llvm-shared-libs \
--with-egl-platforms="drm,x11" \
--with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &&
make
If you have applied the recommended patch, build the demo programs
by running the following command:
make -C xdemos DEMOS_PREFIX=/usr
This package does not come with a test suite.
Now, as the root user:
make install
If you have built the demo programs, install them by running the
following command as the root user:
make -C xdemos DEMOS_PREFIX=/usr install
If desired, install the optional documentation by running the
following commands as the root
user:
install -v -dm755 /usr/share/doc/MesaLib-9.1.2 &&
cp -rfv docs/* /usr/share/doc/MesaLib-9.1.2
Installation of GLU
Install GLU by running the
following commands:
./configure --prefix=/usr --disable-static &&
make
This package does not come with a test suite.
Now, as the root user:
make install
Command Explanations
CFLAGS="-O2"
CXXFLAGS="-O2": By default, Autoconf sets CFLAGS and CXXFLAGS to "-g -O2".
That results in binaries and libraries being built with debugging
symbols which make them bigger. Override the default flags to omit
-g switch so the final libraries are smaller.
--enable-texture-float: This switch
enables floating-point textures and render buffers. Please consult
docs/patents.txt to see if there are
any legal issues if you use this feature.
--enable-gles1: This switch enables
support for OpenGL ES 1.x API.
--enable-gles2: This switch enables
support for OpenGL ES 2.x API.
--enable-openvg: This switch enables
support for OpenVG API.
--enable-osmesa: This switch enables
building of the libOSMesa library.
--enable-xa: This switch enables
building of the XA X Acceleration API (Required for VMware 3D
Driver).
--enable-gbm: This switch enables
building of the Mesa Graphics
Buffer Manager library.
--enable-gallium-egl: This switch
enables optional EGL state tracker for Gallium.
--enable-gallium-gbm: This switch
enables optional GBM state tracker for Gallium.
--enable-glx-tls: This switch enables
TLS support in GLX.
--with-llvm-shared-libs: This switch is
used so Gallium drivers will link against shared LLVM libraries instead of the static ones.
Remove if you did not install LLVM-3.2.
--with-egl-platforms="...":
This parameter controls for which platforms EGL should be built.
Available platforms are drm, x11 and wayland.
--with-gallium-drivers="...": This
parameter controls which Gallium drivers should be built. Available
drivers are: i915, nouveau, r300, r600, radeonsi, svga and swrast.
You will need to remove r300, r600 and radeonsi from the list if
you did not install LLVM-3.2.
--disable-static: This
switch prevents installation of static versions of the libraries.
--enable-r600-llvm-compiler: Use this
switch to enable experimental LLVM
backend for graphics shaders which claims to speed up the driver.
Contents
Optionally Installed
Programs: glxgears and
glxinfo
Installed Libraries:
libdricore9.1.2.so, libEGL.so, libgbm.so,
libglapi.so, libGLESv1_CM.so, libGLESv2.so, libGL.so,
libGLU.so, libllvmradeon9.1.2.so, libOpenVG.so, libOSMesa.so
and libxatracker.so
Installed Directories:
/usr/include/EGL, /usr/include/GL,
/usr/include/GLES, /usr/include/GLES2, /usr/include/GLES3,
/usr/include/KHR, /usr/include/VG, /usr/lib/dri, /usr/lib/egl,
/usr/lib/gallium-pipe and /usr/lib/gbm
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.
|
|
libdricore9.1.0.so
|
contains common DRI routines used by Mesa DRI drivers.
|
|
libEGL.so
|
provides a native platform graphics interface as defined
by the EGL-1.4 specification.
|
|
libgbm.so
|
is the Mesa Graphics
Buffer Manager library.
|
|
libGLESv1_CM.so
|
is the Mesa OpenGL ES
1.1 library.
|
|
libGLES2.so
|
is the Mesa OpenGL ES
2.0 library.
|
|
libGL.so
|
is the main Mesa OpenGL
library.
|
|
libGLU.so
|
is the Mesa OpenGL
Utility library.
|
|
libOpenVG.so
|
is the Mesa OpenVG 1.0
library.
|
|
libOSMesa.so
|
is the Mesa Off-screen
Rendering library.
|
|
libxatracker.so
|
is the Xorg Gallium3D acceleration library.
|
Last updated on 2013-05-05 18:02:40 +0000