Build Guide
Introduction
This guide is for those very experienced Linux users who needs to build some component of Intel Graphics Stack from scratch. If you are not familiar with building these software components with autotools, using a pre-compiled and tested version available on your current distro is recommended.
If you decide to go ahead it is unlikely that you need to build all components from scratch. However this build tutorial list all of available components. Pick the ones that you actually need and proceed as instructed below for each component individually.
Getting Source and preparing environment
Componets available:
- Linux Kernel
- Libdrm
- Xserver
- Xf86-video-intel
- Mesa
- Libva
- Vaapi-intel-driver
- Cairo
- Intel-gpu-tools
Stable
It is higly recommended to use latest stable Intel Graphics Stack released validated by our QA team.
Please get all components listed above from the latest released Linux Graphics Stack available at: https://01.org/linuxgraphics/downloads/
Or use the developement master branches as pointed out on each section below.
Preparing build environment
Please notice that the following line or similar will be used for preparing build of all sources but kernel:
./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR
$MY_DISTRO_PREFIX and $MY_DISTRO_LIBDIR depends on your Linux distribution. It also may change on same distro depending on 32 bits x 64 bits.
Check carefully what you should use on your distro. Here goes some examples on Fedora 64 bits and on Ubuntu 64 bits:
Fedora 64 bits:
export MY_DISTRO_PREFIX=/usr
export MY_DISTRO_LIBDIR=/usr/lib64
Ubuntu 64 bits:
export MY_DISTRO_PREFIX=/usr
export MY_DISTRO_LIBDIR=/usr/lib/x86_64-linux-gnu
For each package there is a list of dependencies that you must have already installed at your distro to get component built. Names of packes are generic and you should check the real package name for your distribution. Also, the list doesn't include basic build packages such as gcc, autotools, automake and other common build tools.
Building Kernel
git clone git://anongit.freedesktop.org/drm-tip
make defconfig
make
sudo make modules_install
sudo make install
Building Libdrm
git clone git://anongit.freedesktop.org/mesa/drm
make
sudo make install
Building 2D driver Xf86-video-intel
Install Build dependencies: libdrm-devel
git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR
make
sudo make install
Building 3D - Mesa
Install Build dependencies: libdrm-devel
git clone git://anongit.freedesktop.org/mesa/mesa
sudo make install
Building Xserver
git clone git://git.freedesktop.org/git/xorg/xserver
./autogen.sh --prefix=$MY_DISTRO_PREFIX
make
sudo make install
Building Libva
Install Build dependencies: mesa-devel, libpciaccess-devel, libdrm-devel, libXfixes-devel, libXext-devel
git clone git://git.freedesktop.org/git/vaapi/libva
./autogen.sh --prefix=$MY_DISTRO_PREFIX
make
sudo make install
Building Vaapi Intel Driver
Install Build dependencies: libXfiles-devel, libXexet-devel, libva-devel, libdrm-devel, libpciaccess-devel, mesa-libGL-devel,
git clone git://git.freedesktop.org/git/vaapi/intel-driver
make
sudo make install
Building Cairo
git clone git://git.freedesktop.org/git/cairo
make
sudo make install
Building Intel-gpu-tools
Install Build dependencies: libpciaccess-dev, libdrm-dev xutilx-dev libcairo2-dev swig2.0 libpython3.3-dev x11proto-dri2-dev, mesa-devel, xorg-xserver-devel, xorg-macros, glib2-devel.
git clone git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
make
sudo make install
