Compiling and Installing
-
@@ -27,20 +34,32 @@
- Python - Python is required. +Version 2.6.4 or later should work. + +
- Python Mako module - +Python Mako module is required. Version 0.3.4 or later should work. + + +
- SCons is required for building on +Windows and optional for Linux (it's an alternative to autoconf/automake.) + +
- lex / yacc - for building the GLSL compiler.
+
+
On Linux systems, flex and bison are used. Versions 2.5.35 and 2.4.1, respectively, (or later) should work.
On Windows with MinGW, install flex and bison with:mingw-get install msys-flex msys-bison
+For MSVC on Windows, install +Win flex-bison.
- - python - Python is needed for building the Gallium components.
-Version 2.6.4 or later should work.
-
-To build OpenGL ES 1.1 and 2.0 you'll also need -libxml2-python. + - For building on Windows, Microsoft Visual Studio 2013 or later is required.
- dri2proto version 2.6 or later -
- libDRM -version 2.4.33 or later +
- +dri2proto version 2.6 or later +
- libDRM latest version
- Xorg server version 1.5 or later
- Linux 2.6.28 or later
- build/windows-x86-debug/mesa/drivers/windows/gdi/opengl32.dll — Mesa + swrast, binary compatible with Windows's opengl32.dll -
- build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll — Mesa + Gallium + softpipe, binary compatible with Windows's opengl32.dll +
- build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll — Mesa + Gallium + softpipe (or llvmpipe), binary compatible with Windows's opengl32.dll
1.1 General
-
+
+
-
-
sudo yum install flex bison imake libtool xorg-x11-proto-devel libdrm-devel \ gcc-c++ xorg-x11-server-devel libXi-devel libXmu-devel libXdamage-devel git \ - expat-devel llvm-devel + expat-devel llvm-devel python-mako@@ -111,14 +129,13 @@ by -debug for debug builds. To build Mesa with SCons for Windows on Linux using the MinGW crosscompiler toolchain do
- scons platform=windows toolchain=crossmingw machine=x86 mesagdi libgl-gdi + scons platform=windows toolchain=crossmingw machine=x86 libgl-gdi
This will create:
-
-
Put them all in the same directory to test them.
@@ -169,7 +186,6 @@ If you built the DRI hardware drivers, you'll also see the DRI drivers:
-rwxr-xr-x 1 brian users 16895413 Jul 21 12:11 i915_dri.so
-rwxr-xr-x 1 brian users 16895413 Jul 21 12:11 i965_dri.so
-rwxr-xr-x 1 brian users 11849858 Jul 21 12:12 r200_dri.so
--rwxr-xr-x 1 brian users 16050488 Jul 21 12:11 r300_dri.so
-rwxr-xr-x 1 brian users 11757388 Jul 21 12:12 radeon_dri.so
@@ -200,6 +216,6 @@ For example, compiling and linking a GLUT application can be done with:
-
+