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
|