From: Brian Paul
+ 0. If you've downloaded Mesa via CVS there will not be a "configure"
script. You'll have to run the "bootstrap" script first. This script
may not work on any OS other than Linux. You'll need these programs
to run the bootstrap script:
+
+1. Run the configure script
+
For Linux, it is recommended that you use:
+NEW-STYLE compilation and installation
-
-0) If you've downloaded Mesa via CVS there will not be a "configure"
+
autoconf 2.50
automake 1.4-p2
libtool 1.4
+
+
./configure [options]
+
+
./configure --prefix=/usr
+
+
So that the headers and libs are located according to the Linux/OpenGL
standard spec at http://oss.sgi.com/projects/ogl-sample/ABI/
-
+
+For Red Hat 8.0, Mandrake 9.1 and other Linux distros, you may have to use +the following: +
++ export LDFLAGS="-lstdc++" ; ./configure --prefix=/usr + or + setenv LDFLAGS -lstdc++ ; ./configure --prefix=/usr ++
+This works around a problem when building the GLU library. It needs to +be linked with the C++ runtime library, but libtool (for some reason) +doesn't do this. +
+Possible options are: --prefix=DIR @@ -185,47 +211,69 @@ Possible options are: --x-libraries=DIR Search for the X library files in DIR. ++
User specific compiler options can be set using the shell variable CFLAGS. For instance, +
+CFLAGS="-g -O2" ./configure ++
(on some systems: env CFLAGS="-g -O2" ./configure) sets the compiler flags to "-g -O2". - +
+For more options run "./configure --help" and read INSTALL.GNU. +
-2) To build the Mesa libraries run: - ++2. To build the Mesa libraries run: +
+make - -When finished, libGL.so will be in src/.libs/, libGLU.so will be in ++
+When finished, libGL.so will be in src/.libs/ and libGLU.so will be in si-glu/.libs/, etc. - +
+Optionally, you can strip the libraries using - +
+make strip - ++
Now make sure that you have the permissions to install Mesa in the specified directories, for example, by becoming super user ("su") Then run: - +
+make install - ++
Mesa is now installed. Please don't move the installed files but rerun all installation steps if you want to use other directories. +
- -3) To test whether Mesa works properly you might want to run the Mesa demos: - ++3.To test whether Mesa works properly you might want to run the +Mesa demos: +
+make check - ++
Builds all demos. - +
+make exec - -Builds and executes all demos.+
+Builds and executes all demos. +
@@ -242,9 +290,10 @@ first copy the top-levelMakefile.X11
file over
-First, just type make
alone.
+Just type make
alone.
You'll see a list of supported system configurations.
-Choose one and type make
config.
+Choose one and type make
config
+(for example make linux-x86
).
The Mesa libraries and demo programs will be compiled.