X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fautoconf.html;h=df243c2c325dad97d50b5ff8e4d215c562bbe714;hb=d9cc58d6ec56e676b1285508a4118a83f5325833;hp=5f94b7e88bb49c5a2e56c9e01e551feda4a1dfc5;hpb=ecd5c7ceb8e4c8841b2708e5ab7efa145583f8c2;p=mesa.git diff --git a/docs/autoconf.html b/docs/autoconf.html index 5f94b7e88bb..df243c2c325 100644 --- a/docs/autoconf.html +++ b/docs/autoconf.html @@ -7,21 +7,23 @@ +
+

The Mesa 3D Graphics Library

+
+ + +
+

Compilation and Installation using Autoconf

    -
  1. Basic Usage

  2. -
  3. Driver Options +

  4. Basic Usage

  5. +
  6. Driver Options

    -
  7. Library Options -

    -
  8. Demo Program Options

@@ -53,122 +55,152 @@ to your preference, type:

-This will produce libGL.so and several other libraries depending on the +This will produce libGL.so and/or several other libraries depending on the options you have chosen. Later, if you want to rebuild for a different configuration run make realclean before rebuilding.

Some of the generic autoconf options are used with Mesa: - -

+directories.

+ +

There are also a few general options for altering the Mesa build: -

+assembly will not be used.

+ +
--build=
+
--host=
+

By default, the build will compile code for the architecture that +it's running on. In order to build cross-compile Mesa on a x86-64 machine +that is to run on a i686, one would need to set the options to:

-

2. Driver Options

+

--build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu

+ +Note that these can vary from distribution to distribution. For more +information check with the + +autoconf manual. +Note that you will need to correctly set PKG_CONFIG_PATH as well. + + +

In some cases a single compiler is capable of handling both architectures +(multilib) in that case one would need to set the CC,CXX variables +appending the correct machine options. Seek your compiler documentation for +further information - + gcc +machine dependent options

+ +

In addition to specifying correct PKG_CONFIG_PATH for the target +architecture, the following should be sufficient to configure multilib Mesa

+ +./configure CC="gcc -m32" CXX="g++ -m32" --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu ... +
+ + + +

2. GL Driver Options

There are several different driver modes that Mesa can use. These are described in more detail in the basic installation instructions. The Mesa driver is controlled through the -configure option --with-driver. There are currently three supported -options in the configure script. +configure options --enable-glx and --enable-osmesa

-

Xlib

This is the default mode for building Mesa. +

Xlib

It uses Xlib as a software renderer to do all rendering. It corresponds -to the option --with-driver=xlib. The libX11 and libXext -libraries, as well as the X11 development headers, will be need to -support the Xlib driver. +to the option --enable-glx=xlib or --enable-glx=gallium-xlib. -

DRI

This mode uses the DRI hardware drivers for -accelerated OpenGL rendering. Enable the DRI drivers with the option ---with-driver=dri. See the basic -installation instructions for details on prerequisites for the DRI -drivers. +

DRI

This mode uses the DRI hardware drivers for +accelerated OpenGL rendering. To enable use --enable-glx=dri +--enable-dri.

-
--with-dri-driverdir=DIR -

This option specifies the +

--with-dri-driverdir=DIR +

This option specifies the location the DRI drivers will be installed to and the location libGL will search for DRI drivers. The default is ${libdir}/dri. -

--with-dri-drivers=DRIVER,DRIVER,... -

This option +

--with-dri-drivers=DRIVER,DRIVER,... +

This option allows a specific set of DRI drivers to be built. For example, --with-dri-drivers="swrast,i965,radeon,nouveau". By default, the drivers will be chosen depending on the target platform. @@ -177,17 +209,19 @@ for available drivers. Beware that the swrast DRI driver is used by both libGL and the X.Org xserver GLX module to do software rendering, so you may run into problems if it is not available. -

--disable-driglx-direct -

Disable direct rendering in +

--disable-driglx-direct +

Disable direct rendering in GLX. Normally, direct hardware rendering through the DRI drivers and indirect software rendering are enabled in GLX. This option disables direct rendering entirely. It can be useful on architectures where kernel DRM modules are not available. -

--enable-glx-tls

+

--enable-glx-tls

Enable Thread Local Storage (TLS) in GLX. -

--with-expat=DIR
The DRI-enabled libGL uses expat to -parse the DRI configuration files in /etc/drirc and +
--with-expat=DIR +

DEPRECATED, use PKG_CONFIG_PATH instead.

+

The DRI-enabled libGL uses expat to +parse the DRI configuration files in ${sysconfdir}/drirc and ~/.drirc. This option allows a specific expat installation to be used. For example, --with-expat=/usr/local will search for expat headers and libraries in /usr/local/include @@ -197,11 +231,12 @@ and /usr/local/lib, respectively.

OSMesa

No libGL is built in this mode. Instead, the driver code is built into the Off-Screen Mesa (OSMesa) library. See the Off-Screen Rendering -page for more details. +page for more details. It corresponds to the option +--enable-osmesa.

-
--with-osmesa-bits=BITS +
--with-osmesa-bits=BITS

This option allows the size of the color channel in bits to be specified. By default, an 8-bit channel will be used, and the driver will be named libOSMesa. Other @@ -209,42 +244,14 @@ options are 16- and 32-bit color channels, which will add the bit size to the library name. For example, --with-osmesa-bits=16 will create the libOSMesa16 library with a 16-bit color channel.

-

3. Library Options

-The configure script provides more fine grained control over the GL -libraries that will be built. More details on the specific GL libraries -can be found in the basic installation -instructions. - -

-
GLU

The libGLU library will be built by default -on all drivers. This can be disable with the option ---disable-glu. -

- - -

4. Demo Program Options

- -

-There are many demonstration programs in the MesaDemos tarball. If the -programs are available when ./configure is run, a subset of -the programs will be built depending on the driver and library options -chosen. See the directory progs for the full set of demos. - -

-
--with-demos=DEMOS,DEMOS,... -

This option allows a -specific set of demo programs to be built. For example, ---with-demos="xdemos,slang". Beware that if this option is -used, it will not be ensured that the necessary GL libraries will be -available. -

--without-demos

This completely disables building the -demo programs. It is equivalent to --with-demos=no. -

+The configure script provides more fine grained control over the libraries +that will be built. +