2011-10-20, 16:31
Yeah, I already managed to pass this obstacle.
I have this issue now with the drivers, though.
I have this issue now with the drivers, though.
apt-get remove xbmc xbmc-bin
#deb http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main
#deb-src http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main
deb http://ppa.launchpad.net/nathan-renniewaldock/xbmc-nightly/ubuntu oneiric main
deb-src http://ppa.launchpad.net/nathan-renniewaldock/xbmc-nightly/ubuntu oneiric main
apt-get update
apt-get install xbmc
tjones Wrote:Currently working on this issue myself.
Thought I'd post my experience with 11.10 to save anybody else some time. Since I've been following this thread it only seems right to share.
apu = E350
11.10 64b server install minimal openbox gui desktop.
11.10 has ubuntu libva1 libva-dev and xvba-va-driver packages. Apparently they correspond in version to the spirited desktop ones.
vainfo fglrxinfo look proper.
I git cloned xbmc installed the dependencies and compiled with vaapi. I used the 11.9 catalyst drivers.
However.......
"Segmentation Fault"
It seems impossible to use the spirited desktop .debs with 11.10 64b since the xbmc dependencies want the official ubuntu ones and attempt to upgrade libva1 libva-dev when installing the dependencies. An echo libva1 hold | sudo dpkg --set-selections on the spirited desktop packages to prevent an upgrade does not work it just breaks more dependencies.
Earlier today I tried 10.04 64b with the spirited desktop libva etc. during ./configure I received an error regarding ffmpeg not configuring properly.
I'll be revisiting 10.04 tomorrow and try to figure out what was going on. Perhaps the key will be compiling xbmc with external ffmpeg. Of course the external ffmpeg used should be compiled against spirited desktop libva. It will be a lot more expedient to figure out a codec vs an entire application.
To sum it up something is wrong with the 11.10 64b ubuntu libva don't bother trying them. If you can figure out how to compile using the spirited desktop libva on 11.10 I'd really like to know how you did it.
sudo add-apt-repository ppa:team-xbmc/unstable
sudo nano /etc/apt/sources.list.d/team-xbmc*.list ~change oneiric to natty and save
sudo apt-get update
sudo apt-get build-dep xbmc
sudo apt-get install libltdl7 libltdl-dev
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
Segmentation fault
Crash report available at /home/pinker/xbmc_crashlog-20111020_202601.log
pinker@pinker-E350:~$ vainfo
libva: libva version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
/.
/usr
/usr/lib
/usr/lib/va
/usr/lib/va/drivers
/usr/lib/va/drivers/fglrx_drv_video.so
/usr/lib/va/drivers/xvba_drv_video.so
/usr/share
/usr/share/doc
/usr/share/doc/xvba-video
/usr/share/doc/xvba-video/AUTHORS
/usr/share/doc/xvba-video/NEWS.gz
/usr/share/doc/xvba-video/README
/usr/share/doc/xvba-video/changelog.Debian.gz
/usr/share/doc/xvba-video/copyright
cd ~/
mkdir vaapi ; cd vaapi
sudo apt-get install wget pkg-config libdrm-dev
wget http://www.splitted-desktop.com/static/libva/xvba-video/xvba-video_0.8.0-1_amd64.deb
wget http://www.splitted-desktop.com/static/libva/libva/pkgs/amd64/libva1_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/static/libva/libva/pkgs/amd64/libva-dev_0.32.0-1+sds2_amd64.de
sudo dpkg -i *.deb
sudo add-apt-repository ppa:team-xbmc/unstable
sudo nano /etc/apt/sources.list.d/team-xbmc*.list
deb http://ppa.launchpad.net/team-xbmc/unstable/ubuntu lucid main
deb-src http://ppa.launchpad.net/team-xbmc/unstable/ubuntu lucid main
sudo apt-get update
sudo apt-get build-dep xbmc
cd /usr/lib/dri
sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so fglrx_drv_video.so
sudo ln -s /usr/lib/va/drivers/xvba_drv_video.so xvba_drv_video.so
sudo nano /etc/environment
LIBVA_DRIVER_NAME=xvba
LIBVA_DRIVERS_PATH=/usr/lib/va/drivers
sudo apt-get install git-core
git clone https://github.com/xbmc/xbmc.git
cd ~/xbmc
./bootstrap
./configure --enable-vaapi
make -j2
sudo make install
echo libva1 hold | sudo dpkg --set-selections
echo libva-dev hold | sudo dpkg --set-selections
echo xvba-video hold | sudo dpkg --set-selections
sudo dpkg --get-selections | grep libva1
echo libva1 install | sudo dpkg --set-selections
Quote:sudo usermod --group adm,sudo,cdrom,floppy,audio,video,plugdev,netdev,powerdev,fuse,polkituser xbmc
cat /etc/group
sudo usermod -a -G group1,group2,group3 username
sudo ln -s /usr/lib/va/drivers/xvba_drv_video.so /usr/lib/dri/xvba_drv_video.so
pinker@pinker-E350:~$ vainfo
libva: libva version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
pinker@pinker-E350:~$ fglrxinfo
display: :0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6300 series Graphics
OpenGL version string: 4.1.11079 Compatibility Profile Context
pinker@pinker-E350:~$
pinker@pinker-E350:~$ sudo apt-get --purge remove libva1 libva-dev xvba-va-driver vainfo
pinker@pinker-E350:~$ sudo apt-get build-dep xbmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libavcodec-dev libavcodec53 libavfilter-dev libavfilter2 libavformat-dev libavformat53 libgsm1 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 [b]libva1[/b] libvpx0
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/8,231 kB of archives.
After this operation, 22.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
pinker@pinker-E350:~$ sudo apt-get install libavcodec-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavcodec53 libgsm1 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 [b]libva1[/b] libvpx0
Suggested packages:
libfaad-dev libgsm1-dev libschroedinger-dev libspeex-dev libtheora-dev libraw1394-dev libdc1394-22-dev speex
The following NEW packages will be installed:
libavcodec-dev libavcodec53 libgsm1 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 libva1 libvpx0
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,989 kB of archives.
After this operation, 18.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?
pinker@pinker-E350:~$ uname -a
Linux pinker-E350 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
pinker@pinker-E350:~$ vainfo
libva: libva version 0.32.0-sds2
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
pinker@pinker-E350:~$ fglrxinfo
display: :0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6300 series Graphics
OpenGL version string: 4.1.11079 Compatibility Profile Context
pinker@pinker-E350:~$
pinker@pinker-E350:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LIBVA_DRIVER_NAME=xvba
LIBVA_DRIVERS_PATH=/usr/lib/va/drivers
pinker@pinker-E350:~$ ls /usr/lib/va/drivers/
dummy_drv_video.so fglrx_drv_video.so xvba_drv_video.so
pinker@pinker-E350:~$ ls /usr/lib/dri
fglrx_dri.so fglrx_drv_video.so xvba_drv_video.so
./configure --prefix=/usr/local/xbmc --enable-vaapi --enable-libbluray
WARNING: unrecognized options: --enable-vaapi, --enable-libbluray
Quote:configure: WARNING: unrecognized options: --enable-vaapi, --enable-libbluray
Does not missing a "cd /xbmc" between post 1 and 2 after ending with bluray?
./bootstrap
./configure --prefix=/usr/local/xbmc --enable-vaapi --enable-libbluray
make -j2
sudo make install
sudo make install
/bin/bash: gtk-update-icon-cache: command not found
xinit xbmc-standalone
Quote:2. type: startx - enter (to start Xorg)have the same results on my system.
xbmc@HTPC:~$ fglrxinfo
Error: unable to open display (null)
xbmc@HTPC:~$ vainfo
vainfo: Error, can't open display: ':0'
export DISPLAY=:0
kobik Wrote:Linux is soooo not forgiving you for being stupid...