Download:
- mesa 7.8.2 (lib, Demo, GLUT)
- dri2proto 1.99.3
- libdrm 2.4.15
To make dri2proto:
- ./configure
- make install
To make libdrm:
- ./configure
- make install
- note: libdrm 2.4.15 installs to /usr/local/lib by default, so /usr/local/lib need to be prepended to PKG_CONFIG_PATH before making DRI to setup the correct include dirs, else the DRI build will use i915_drm.h in /usr/include which came with Fedora 12 instead of the one libdrm 2.4.15 installs in /usr/local/include, resulting in undefined symbols such as I915_MADV_WILLNEED, etc.)
To make DRI
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
- if gallium is to be disabled: ./configure –disable-gallium
- make linux-dri-debug (or linux-dri-x86)
Before running openGL progs, export following (and add to .bashrc or other login script:
- export LIBGL_DRIVERS_PATH=<path to Mesa>/lib
- export LD_PRELOAD=<path to Mesa>/lib/libGL.so.1
DRI WIKI:
http://dri.freedesktop.org/wiki/Building
Gallium3D WIKI: