Linux 下安装media sdk 问题总结

And the first step of research on libva will be download & build libva.

Environment

As usual, I shall introduce my develop environment here:

OS: Ubuntu 12.04 LTS 64 bit with kernel 3.2.0-29

CPU: Core ivy bridge i7-3770

Target libva version: 1.2.1 (latest release for now)

Related projects/libraries

  • libdrm : http://dri.freedesktop.org/wiki/Download/
  • intel-driver: …
  • libva: http://www.freedesktop.org/wiki/Software/vaapi/

Brief compile steps

Download & compile intel-driver

Download the source code

Compile

./configure

checking for DRM… no
configure: error: Package requirements (libdrm >= 2.4.45) were not met:

Requested ‘libdrm >= 2.4.45′ but version of libdrm is 2.4.43

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DRM_CFLAGS
and DRM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Remove & install the latest version of libdrm

Remove the existing libdrm:

Download the lastest version of libdrm: http://dri.freedesktop.org/libdrm/ in which I choose libdrm-2.4.46.tar.bz2Remove & install the latest version of libdrm
Remove the existing libdrm:

Download the lastest version of libdrm:

for
http://dri.freedesktop.org/libdrm/ in which I choose libdrm-2.4.46.tar.bz2

Compiling libdrm

Install pciaccess

However if you encournter error like this: Package requirements (pciaccess >= 0.10) were not met:
checking for native atomic primitives… Intel
checking for PCIACCESS… no
configure: error: Package requirements (pciaccess >= 0.10) were not met:

No package ‘pciaccess’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables PCIACCESS_CFLAGS and PCIACCESS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

All you need to do is:

FAQ/Tips

Q1: va_getDriverName() failed with operation failed,driver_name=i965
jacky@ubuntu-va:/opt/softwares/VA/intel-driver$ vainfo
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
vaInitialize failed with error code 1 (operation failed),exit
A2: vainfo may need root permission to work, try

1
sudo vainfo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ww506772362

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值