Building Gallium on Mesa 7.9-devel

AUTOCONF.. SCON.. and Plain old Make.. sigh, how many more ways are there to build this puppy?? They’d better be all in sync in the code tree… I’ll stick with autoconf for now… at least in th 7.9 tree…

Building SoftPipe EGL (this actually builds Mesa with indirect rendering over Xlib).

1. Get Mesa3D respository

  • git clone git://git.freedesktop.org/git/mesa/mesa

2. Install talloc 2.0.1 package

  • ./configure (check output – default enables gallium and swrast)
  • make
  • su
  • make install
  • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

3. Install

  • dri2proto 2.1
  • glproto 1.4.11
  • libdrm 2.4.21

4. Fix nouveau*.h files in /usr/include/nouveau. 2.4.21 install does not install nouveau header files properly.

  • cp nouveau*.h from libdrm 2.4.21 to /usr/include/nouveau

5. In mesa directory

  • ./autogen.sh
  • export GALLIUM=$PWD
  • make linux-x86-debug

6. Set path to gallium and use software EGL driver

  • export LD_LIBRARY_PATH=$GALLIUM/lib/gallium:$GALLIUM/lib:$LD_LIBRARY_PATH
  • export EGL_DRIVER=”egl_softpipe”

http://www.freedesktop.org/wiki/Software/gallium/EGLReferenceDrivers

To build a  Gallium HW driver (e.g. i915) or soft pipe driver- use autoconf

1.  ./configure –enable-gallium-i915 (or –enable-gallium-swrast) –enable-debug

2. make (DON’T do make linux-dri or make linux-x86)

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment