2011-04-25, 06:22
HarryRosen Wrote:I have tried this guide so many times, I have no idea why I can't get it to work properly, Everything seems fine until I try and compile xbmc, Is it possible to install the live version and then recompile in the VAAPI?
I felt your pain...for three days I have been trying to work through this guide and I was about to give up. I was stuck at the same point you were. I could not compile the xbmc. It was giving me an error about not being able to find a directory related to python. I searched Google and finally found an answer that worked so I will share with you everything I did. Warning I am not an expert and I may not have done everything perfect but in the end it worked
I started out by installing the Maverick mini version of Unbuntu and the only option I selected that was not the default was the "OpenSSH server" option. From there I followed alanwww1 instructions with a few minor changes which I will detail below:
No changes from what he listed here:
Code:
sudo apt-get update
sudo apt-get install udisks upower xorg alsa-utils mesa-utils
sudo adduser YourUserName video
sudo adduser YourUserName audio
sudo reboot
I replaced this line "sudo apt-get install libva1 vainfo i965-va-driver libva-glx1 libva-dev" he originally had with this line "sudo apt-get install libdrm2 libva1 i965-va-driver vainfo" that I found in a reply in this thread. See Below:
Code:
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libdrm2 libva1 i965-va-driver vainfo
sudo reboot
I couldn't get it to compile xbmc correctly later on due to a python error and libva missing so I had to add "python2.6-dev" to the list below and also "libva-dev". I also added the "smbfs" and "smbclient" variables so that I could connect to the drives on my windows network through the windows smbclient.
Code:
sudo apt-get install git-core make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmms-dev libmpeg3-dev libfaad-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs autopoint dh-autoreconf python2.6-dev libva-dev smbfs smbclient
From here on everything is the same as the first page:
Code:
cd ~
git clone git://git.videolan.org/libbluray.git
cd libbluray/
./bootstrap
./configure --prefix=/usr
make
sudo make install
cd ~
git clone git://github.com/xbmc/xbmc.git
cd xbmc
./bootstrap
./configure --prefix=/usr --enable-vaapi --enable-libbluray
wget http://paste.kde.org/7020/raw/ -O ./ReferenceClockHang.patch
patch -p1 < ./ReferenceClockHang.patch
make
sudo make install
sudo ln -s /usr/lib/libva.so.1 /usr/lib/libva-0.31.1.1.so.1
sudo ln -s /usr/lib/libva-glx.so.1 /usr/lib/libva-glx-0.31.1.1.so.1
At this point I was able to run a startx session and run xbmc using the command:
Code:
exec xbmc --standalone
It is still not perfect. I still have to change a few things to make it boot into xbmc instead of a command line but it feels great to know that I can get to xbmc and my movies run smoothly. I hope this helps. Thanks alanwww1 for the great starting point.