I managed to successfully compile mplayer -vaapi , after many attempts and some trickery .
First , I downloaded and compiled the libva-intel-driver and libva packafes from this site ( the latest versions ):
http://www.freedesktop.org/software/vaapi/releases/The building is simple, ./configure, make and make install (and the proper -dev packages, but they are all avaiable from repositories). After restarting the system, follow the mplayer building instructions according to this thread from Gentoo forum:
- Code: Select all
git clone git://gitorious.org/vaapi/mplayer mplayer.git
cd mplayer
git pull origin hwaccel-vaapi
./configure -prefix=/usr/local
make
(
http://forums.gentoo.org/viewtopic-t-903718-postdays-0-postorder-asc-start-25.html)
When running the command 'configure', it will aks to download ffmpeg from git. Accept it. For some reason , he does not see the ffmpeg headers installed by 'lib64ffmpeg -devel' package.
Stay tuned to the required packages. Maybe I'm too newbie , but I ended up confusing myself with 'libva -devel ' (32bits) and 'lib64-devel' packages before realizing the mistake 
Please note that I did not put 'make instal' command. For some reason, even after installed, smplayer can not use the compiled binary with hardware acceleration (it just give no video output...). So you need to point to SMPlayer the location of the compiled binary, then it runs flawlessly. Maybe removing the 'smplayer' and 'mplayer' packages from the system, forcing installation of smplayer only, and then installing the compiled binary, it would work.
Finally, we need to "restore" the drivers from packages 'lib64va1' and 'vaapi-driver-intel'. Force re-installation with the command "urpmi -replacepkgs lib64va1 vaapi-driver-intel". (Just removing and installing again could break the system, because libva is a dependency of a lot of packages).
Restart the system, and finally copy the file
i965_drv_video.so from
/usr/lib64/dri to
/usr/local/lib/dri (or create a symbolic link).
I do not understand why, but it seems that the installation of the drivers from freedesktop is required, in order to build mplayer-vaapi correctly (and avoid libva errors), but the compiled mplayer needs the drivers from Mageia repositories in order to run....
Sorry my bad english. Hope this help.
(I was wondering. Can i just upload my compiled binary to someone who needs it?)