CentOS 7 libva and intel-vaapi-driver compilation

CentOS 7 libva vaapi-driver

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

  1. Install the relevant dependencies:
    yum install libdrm-devel.x86_64 xorg-x11-server-devel.x86_64 -y
  2. Unzip
    tar -jxvf libva-2.3.0.tar.bz2
  3. Enter the directory
    cd libva-2.3.0/
  4. Configuration
    ./configure --prefix=/usr --libdir=/usr/lib64 CFLAGS=-DNDEBUG
  5. Compile and install
    make -j4
    make install

IV. libva driver compilation

  1. Decompress
    tar -jxvf intel-vaapi-driver-2.3.0.tar.bz2
  2. Enter the directory
    cd intel-vaapi-driver-2.3.0/
  3. Configuration
    ./configure CFLAGS=-DNDEBUG --prefix=/usr
  4. 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!

0 0 votes
Article Rating
赞(0) 打赏
未经允许不得转载:iemblog » CentOS 7 libva and intel-vaapi-driver compilation
Subscribe
Notify of
guest

0 COMMENTS
Inline Feedbacks
View all comments
免责声明:本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有,请在下载后24小时之内自觉删除,若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。本站发布的内容若侵犯到您的权益,请联系站长删除,我们将及时处理! Disclaimer: Most of the download resources on this site are collected on the Internet, and are only used for learning and communication. The copyright belongs to the original author. Please consciously delete within 24 hours after downloading. If you use it for commercial purposes, please purchase the original version. If the content posted on this site violates your rights, please contact us to delete it, and we will deal with it in time!

联系我们 Contact us

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

0
Would love your thoughts, please comment.x
()
x