1.download


yum  -y install libdrm-devel
yum  -y install xutils-dev
yum  -y install xorg-x11-util-macros
yum  -y install xorg-x11-server-devel
yum  -y install xorg-x11-server-sdk
yum  -y install xorg-x11-server-Xorg
yum  -y install pixman
yum  -y install yasm

yum  -y install libdrm-devel
yum  -y install xorg-x11-drv-intel


rm -rf libva-1.0.14
rm -rf libdrm-2.4.26
rm -rf xf86-video-intel
rm -rf mplayer/mplayer-vaapi


#1) X.org 2D driver
#The Intel driver for X.org is available from the public X.org git repository:
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel
chmod 777 -R xf86-video-intel
#2) Mesa 3D GL driver
#The GL drivers are available from the public Mesa git repository:
##git clone git://anongit.freedesktop.org/git/mesa/mesa


#3) DRM and AGPGART kernel module
#The DRM and AGPGART kernel modules are available from Linux kernel.
#The latest Intel code is maintained at the public drm intel kernel git repository:
##git clone git://people.freedesktop.org/~keithp/linux

#4) LIBDRM userland DRM module
#The LIBDRM modules are available from the public DRM git repository :
#git clone git://anongit.freedesktop.org/git/mesa/drm
tar -jvxf libdrm-2.4.26.tar.bz2
chmod 777 -R libdrm-2.4.26

#5) LIBVA and VA-DRIVER-INTEL
#The VAAPI library and Intel driver are available from their public git repositories:
#git clone git://anongit.freedesktop.org/vaapi/libva

#git clone git://anongit.freedesktop.org/vaapi/intel-driver
tar -zvxf libva-1.0.14.tar.gz
chmod 777 -R libva-1.0.14

#6) mplayer .. to get last version
tar jvxf mplayer-vaapi-latest-FULL.tar.bz2
cd mplayer-vaapi-20110127
sh checkout-patch-build.sh


2.build



#Kernel: Linux 3.0 or later
#Libdrm: libdrm 2.4.26
#Libva: libva 1.0.14
#In order to use VAAPI, you need a media player that supports it. E.g. you can get mplayer with vaapi support from mplayer-vaapi-latest.tar.bz2 or VLC 1.1.0.

#http://intellinuxgraphics.org/h264.html

#In order to use VAAPI, you need a media player that supports it. E.g. you can get mplayer with vaapi support #from mplayer-vaapi-latest.tar.bz2 or VLC 1.1.0.
#Install Instructions

#4) LIBDRM userland DRM module
#libdrm

cd libdrm-2.4.26
#./autogen.sh
./configure
make
make install
cd ..


#1) X.org 2D driver
#xf86-video-intel

#export XORG_DIR=/usr/lib64/xorg
export XORG_DIR=/usr
export PKG_CONFIG_PATH=${XORG_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH
export ACLOCAL="aclocal -I ${XORG_DIR}/share/aclocal"



cd xf86-video-intel
./autogen.sh
#./configure
./configure -prefix=/usr/lib64/xorg
make
make install
cd ..


#----------------------------------------------------------------------
#Libraries have been installed in:
#   /usr/local/lib/xorg/modules/drivers#
#
#If you ever happen to want to link against installed libraries
#in a given directory, LIBDIR, you must either use libtool, and
#specify the full pathname of the library, or use the `-LLIBDIR'
#flag during linking and do at least one of the following:
#   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
#     during execution
#   - add LIBDIR to the `LD_RUN_PATH' environment variable
#     during linking
#   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
#   - have your system administrator add LIBDIR to `/etc/ld.so.conf'







#5) LIBVA and VA-DRIVER-INTEL
#libva
#tar -zvxf libva_0.32.0-1+sds2.tar.gz

cd libva-1.0.14
./autogen.sh
#./configure --enable-i965-driver -prefix=/usr/lib64
./configure --enable-i965-driver --prefix=/usr/local
make
make install
cd ..


#echo "/usr/lib64/lib" > /etc/ld.so.conf.d/libva.conf
echo "/usr/local/lib" > /etc/ld.so.conf.d/libva.conf
ldconfig
# ln -s /usr/lib64/dri/i965_dri.so /usr/local/lib/dri/i965_drv_video.so
#cp /usr/lib64/lib/dri/i965_drv_video.so /usr/local/lib/dri/i965_drv_video.so

#Note
#[root@localhost libva-1.0.14]# vainfo
#libva: VA-API version 0.33.0
#libva: va_getDriverName() returns 0
#libva: Trying to open /usr/local/lib/dri/i965_drv_video.so
#libva: va_openDriver() returns -1
#vaInitialize failed with error code -1 (unknown libva error),exit
#


vainfo
#cp /usr/lib64/dri/i965_drv_video.so /usr/local/lib/dri/i965_drv_video.so
#[root@localhost libva-1.0.14]# vainfo
#libva: VA-API version 0.33.0
#libva: va_getDriverName() returns 0
#libva: Trying to open /usr/local/lib/dri/i965_drv_video.so
#libva: Found init function __vaDriverInit_0_32
#libva: va_openDriver() returns 0
#vainfo: VA API version: 0.33
#vainfo: Driver version: i965 Driver 0.1
#vainfo: Supported profile and entrypoints
#      VAProfileMPEG2Simple            :    VAEntrypointVLD
#      VAProfileMPEG2Main              :    VAEntrypointVLD
#      VAProfileH264Baseline           :    VAEntrypointVLD
#      VAProfileH264Baseline           :    VAEntrypointEncSlice
#      VAProfileH264Main               :    VAEntrypointVLD
#      VAProfileH264Main               :    VAEntrypointEncSlice
#      VAProfileH264High               :    VAEntrypointVLD
#      VAProfileH264High               :    VAEntrypointEncSlice
#      VAProfileVC1Simple              :    VAEntrypointVLD
#      VAProfileVC1Main                :    VAEntrypointVLD
#      VAProfileVC1Advanced            :    VAEntrypointVLD




#intel-driver
#chmod 777 -R intel-driver
#cd intel-driver
#./autogen.sh
#./configure --enable-i965-driver
#make
#make install
#cd ..

#vainfo
#mplayer
#get mplayer with vaapi support from mplayer-vaapi-latest.tar.bz2



#tar jvxf mplayer-vaapi-latest-FULL.tar.bz2
#cd mplayer-vaapi-20110127
ls -al
cd mplayer
sh checkout-patch-build.sh
cd mplayer-vaapi
#./configure --enable-x11 --enable-vaapi
./configure --enable-vaapi --disable-menu

make
make install
cd ..

創作者介紹
創作者 立你斯 的頭像
立你斯

立你斯學習記錄

立你斯 發表在 痞客邦 留言(0) 人氣()