CentOS 7 libva and intel-vaapi-driver compilation
I. Download libva vaapi-dirver
Download the current version of intel-vaapi-driver 2.3.0,And its supporting libva 2.3.0
II. Uninstall the old version of libva
If an older version of libva is installed, use the following command to uninstall:
yum remove libva.x86_64 libva-devel.x86_64 -y
III. libva compilation
- Install the relevant dependencies:
yum install libdrm-devel.x86_64 xorg-x11-server-devel.x86_64 -y
- Unzip
tar -jxvf libva-2.3.0.tar.bz2
- Enter the directory
cd libva-2.3.0/
- Configuration
./configure --prefix=/usr --libdir=/usr/lib64 CFLAGS=-DNDEBUG
- Compile and install
make -j4 make install
IV. libva driver compilation
- Decompress
tar -jxvf intel-vaapi-driver-2.3.0.tar.bz2
- Enter the directory
cd intel-vaapi-driver-2.3.0/
- Configuration
./configure CFLAGS=-DNDEBUG --prefix=/usr
- Compile and install
make -j4 make install
V. Regenerate the link
Use the following command to refresh the build dynamic library link:
ldconfig
VI. Check if the link is correct
ll /usr/lib64
The sample results are as follows:
-rwxr-xr-x. 1 root root 967 Sep 1 12:35 libva-drm.la
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-drm.so -> libva-drm.so.2.300.0
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-drm.so.2 -> libva-drm.so.2.300.0
-rwxr-xr-x. 1 root root 13712 Sep 1 10:32 libva-drm.so.2.100.0
-rwxr-xr-x. 1 root root 13776 Sep 1 12:35 libva-drm.so.2.300.0
-rwxr-xr-x. 1 root root 1018 Sep 1 12:35 libva-glx.la
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-glx.so -> libva-glx.so.2.300.0
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-glx.so.2 -> libva-glx.so.2.300.0
-rwxr-xr-x. 1 root root 29480 Sep 1 10:32 libva-glx.so.2.100.0
-rwxr-xr-x. 1 root root 29480 Sep 1 12:35 libva-glx.so.2.300.0
-rwxr-xr-x. 1 root root 917 Sep 1 12:35 libva.la
lrwxrwxrwx. 1 root root 16 Sep 1 12:35 libva.so -> libva.so.2.300.0
lrwxrwxrwx. 1 root root 16 Sep 1 12:35 libva.so.2 -> libva.so.2.300.0
-rwxr-xr-x. 1 root root 186568 Sep 1 10:32 libva.so.2.100.0
-rwxr-xr-x. 1 root root 190720 Sep 1 12:35 libva.so.2.300.0
-rwxr-xr-x. 1 root root 1008 Sep 1 12:35 libva-wayland.la
lrwxrwxrwx. 1 root root 24 Sep 1 12:35 libva-wayland.so -> libva-wayland.so.2.300.0
lrwxrwxrwx. 1 root root 24 Sep 1 12:35 libva-wayland.so.2 -> libva-wayland.so.2.300.0
-rwxr-xr-x. 1 root root 24512 Sep 1 10:33 libva-wayland.so.2.100.0
-rwxr-xr-x. 1 root root 24512 Sep 1 12:35 libva-wayland.so.2.300.0
-rwxr-xr-x. 1 root root 989 Sep 1 12:35 libva-x11.la
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-x11.so -> libva-x11.so.2.300.0
lrwxrwxrwx. 1 root root 20 Sep 1 12:35 libva-x11.so.2 -> libva-x11.so.2.300.0
-rwxr-xr-x. 1 root root 33824 Sep 1 10:32 libva-x11.so.2.100.0
-rwxr-xr-x. 1 root root 33824 Sep 1 12:35 libva-x11.so.2.300.0
Make sure the libva-related libraries are properly linked to the version you need!