alias_neo
Posts: 108
Joined: Fri Jul 29, 2011 8:55 am
Location: London, England
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 1:08 pm

Montala wrote:
alias_neo wrote: Actually, it'd make more sense to just have an official build of XBMC in the package repository so anyone with Raspbian can just install it (if they choose) with apt-get.
If it is indeed as easy as that, then that would be great... but surely if it was, someone would already have done it by now?
As far as users are concerned it really is as easy as that, as for someone doing it, it takes some effort to get the package put together in order to make it that easy for users.
http://2byt.es - Just my two bytes - RPi - Android - Arduino - Blog

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 6:54 pm

I gave this a go last night using the instructions from the first post mixed with the updates throughout this thread (and doing a few things my own way).

Firstly, the compile worked first time! I compiled pulse eight cec before xbmc using the instructions from Darkness.

I used the workaround from this thread to not have to do the symlinks, but it wouldn't start (because of .so errors). I created all the symlinks and it seems to have worked.

I get the hardware accelerated OpenGL error, but xbmc does start - does anyone know why this happens?

Airplay works fine, but I have no cec. Do I need an xbmc addon to enable it, or was my configure line wrong (I'm certain I enabled it).

If I exit xbmc from the menu, I end up with a black screen, and have to pull the power to get control back, is this normal?

Finally, if I want to upgrade xbmc or use another tree, do I just fetch from git, configure, make, and make install? I used the old xbmc-rbp repository but am tempted to try the newer one.

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 7:29 pm

I may have fixed cec - I ran cec-config and it complained about a libcec.so error, so I symlinked the libraries into /usr/lib (they were placed in /usr/local/lib when I compiled it). cec-config now works, but my wife is watching TV so I can't test it out :)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5341
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 7:46 pm

smonkey wrote:I may have fixed cec - I ran cec-config and it complained about a libcec.so error, so I symlinked the libraries into /usr/lib (they were placed in /usr/local/lib when I compiled it). cec-config now works, but my wife is watching TV so I can't test it out :)

Code: Select all

autoreconf -vif
./configure --enable-rpi --with-rpi-include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/lib --libdir=/usr/lib/arm-linux-gnueabihf --includedir=/usr/include --bindir=/usr/bin
make
sudo make install
This will build libcec and put it where xbmc expects it.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5341
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 7:48 pm

smonkey wrote: I get the hardware accelerated OpenGL error, but xbmc does start - does anyone know why this happens?
Don't launch with xbmc, use:

Code: Select all

LD_LIBRARY_PATH=/opt/xbmc-bcm/xbmc-bin/lib /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin --standalone --fs

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 8:18 pm

Brilliant, thanks dom!

I'll test and report back later.

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 8:47 pm

dom wrote:
smonkey wrote: I get the hardware accelerated OpenGL error, but xbmc does start - does anyone know why this happens?
Don't launch with xbmc, use:

Code: Select all

LD_LIBRARY_PATH=/opt/xbmc-bcm/xbmc-bin/lib /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin --standalone --fs
-bash: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin: No such file or directory

[email protected] ~ $ ls -al /opt/xbmc-bcm/xbmc-bin/lib/
total 8
drwxr-xr-x 2 root root 4096 Aug 31 23:47 .
drwxrwxrwx 4 root root 4096 Aug 31 23:47 ..
[email protected] ~ $

I get the error, but XBMC does start (I tried using 'xbmc', 'xbmc --standalone', and 'xbmc-standalone')

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5341
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Instructions for building XBMC for Raspbian

Sat Sep 01, 2012 10:16 pm

smonkey wrote: -bash: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin: No such file or directory

[email protected] ~ $ ls -al /opt/xbmc-bcm/xbmc-bin/lib/
total 8
drwxr-xr-x 2 root root 4096 Aug 31 23:47 .
drwxrwxrwx 4 root root 4096 Aug 31 23:47 ..
[email protected] ~ $

I get the error, but XBMC does start (I tried using 'xbmc', 'xbmc --standalone', and 'xbmc-standalone')
Ah that's where I put mine. Perhaps the default is here:

Code: Select all

/usr/lib/xbmc/xbmc.bin --standalone --fs

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sun Sep 02, 2012 6:15 pm

dom wrote:
smonkey wrote: -bash: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin: No such file or directory

[email protected] ~ $ ls -al /opt/xbmc-bcm/xbmc-bin/lib/
total 8
drwxr-xr-x 2 root root 4096 Aug 31 23:47 .
drwxrwxrwx 4 root root 4096 Aug 31 23:47 ..
[email protected] ~ $

I get the error, but XBMC does start (I tried using 'xbmc', 'xbmc --standalone', and 'xbmc-standalone')
Ah that's where I put mine. Perhaps the default is here:

Code: Select all

/usr/lib/xbmc/xbmc.bin --standalone --fs
Thanks dom, that worked!

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Mon Sep 03, 2012 8:03 pm

Disaster!
I just did the latest dist-upgrade, and part way through my SD card went into readonly mode. I tried to save it but after getting everything updated it wouldn't boot.

So, I get to start all over again. At least I can check if the steps I stored in a text file work :)

nIerSify
Posts: 65
Joined: Fri Sep 07, 2012 5:45 am
Contact: Website

Re: Instructions for building XBMC for Raspbian

Fri Sep 07, 2012 6:02 am

For those who are interested in a .deb package of the latest xbmc build, i have compiled the latest xbmc build using the compile instructions mentioned by mpthompson in an earlier post of this thread

I´ve configured it additionally with dvdcss and optical drive support. Airplay is also working fine.
I haven´t tested nfs yet...

I have tested this build against the previous 2012-07-15-wheezy-raspbian image.

You can download it using this link: https://www.dropbox.com/sh/il7is1w4p6bb ... ASf5/Raspi
which i posted in my blog: http://blog-selfprogramming.dyndns.org/ ... pberry-pi/


Best regards
http://selfprogramming.bplaced.net

MarrsAttax
Posts: 25
Joined: Fri Jun 01, 2012 2:39 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 08, 2012 4:58 pm

Many thanks for these build instructions. My build went very smoothly and I now have a working system. The one issue I have is that any video or mp3 I play causes a fluttering sound to come through the speakers.

I canplay an mp3 via the command line with mpg123 without problem so it does seem to be an issue with XBMC.

I'm using analog PC speakers rather than the hdmi output.

Has anyone else had this issue?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5341
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Instructions for building XBMC for Raspbian

Sat Sep 08, 2012 5:10 pm

MarrsAttax wrote:Many thanks for these build instructions. My build went very smoothly and I now have a working system. The one issue I have is that any video or mp3 I play causes a fluttering sound to come through the speakers.
Does omxplayer exhibit the asme effect?
Is fluttering continuous or does it settle down.

smonkey
Posts: 37
Joined: Wed Aug 15, 2012 8:44 pm

Re: Instructions for building XBMC for Raspbian

Sat Sep 08, 2012 8:48 pm

I don't know if its only my second build that has this problem, but I can't find a way to sort it (I've found a couple of mentions of it when googling, but haven't managed to find a fix).

If a video isn't full screen, rather than getting black bars, I have console text:
Image
(bonus points if you can name the film!)

The closest I could find to a fix was in this thread: http://forum.stmlabs.com/showthread.php?pid=9443
but that doesn't seem to make any difference :(

Any ideas?

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 1:33 am

smonkey wrote:I don't know if its only my second build that has this problem, but I can't find a way to sort it (I've found a couple of mentions of it when googling, but haven't managed to find a fix).

If a video isn't full screen, rather than getting black bars, I have console text:
Image
(bonus points if you can name the film!)

The closest I could find to a fix was in this thread: http://forum.stmlabs.com/showthread.php?pid=9443
but that doesn't seem to make any difference :(

Any ideas?

when you go to run xbmc put this before the sudo /path/to/xbmc.bin

Code: Select all

clear ;
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 1:38 am

Two questions, using the latest Raspbian release, I followed the insturctions found on the raspbian website for building XBMC (which means I'm using the latest firmware from rpi-update). They worked really well but I'm having a weird issue where I keep getting the message "The MovieDB Add-on has been marked as broken in repository. Would you like to disable it on your system?" It doesn't matter if I click yes or no it just keeps coming back :evil: Is there any way to turn it off completely?

Secondly, while 99.9% of my files run just fine I have one set of files that play audio without video. It's MPEG-4, which I thought ran on the pi, but I could be getting it mixed up with something else. Here's the info on it from mediaINFO, anyone have any ideas why it's not playing?

Code: Select all

Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 328 MiB
Duration                                 : 48mn 25s
Overall bit rate                         : 947 Kbps
Writing library                          : VirtualDub build 11617/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Codec ID                                 : DIV3
Codec ID/Hint                            : DivX 3 Low
Duration                                 : 48mn 25s
Bit rate                                 : 809 Kbps
Width                                    : 512 pixels
Height                                   : 352 pixels
Display aspect ratio                     : 3:2
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.180
Stream size                              : 280 MiB (85%)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 48mn 25s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 44.3 MiB (14%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 40 ms (1.00 video frame)
Interleave, preload duration             : 452 ms
Dear forum: Play nice ;-)

itsonlyme
Posts: 129
Joined: Sun Feb 12, 2012 12:43 pm

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 8:23 am

I have the same problem with DivX3. If my memory serves me correctly there is a post somewhere here that says DivX3 is not strictly MPEG-4.

Files encoded using later versions of DivX play correctly (as far as I know).

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 10:42 am

I have a problem:

[email protected]:/home/pi/xbmc-rbp# make -C tools/rbp/depends/xbmc/
make: Entering directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
cd ../../../../; ./bootstrap
./bootstrap: 5: ./bootstrap: autoreconf: not found
make: *** [configure] Error 127
make: Leaving directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
[email protected]:/home/pi/xbmc-rbp#

MarrsAttax
Posts: 25
Joined: Fri Jun 01, 2012 2:39 pm

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 11:13 am

dom wrote: Does omxplayer exhibit the asme effect?
Is fluttering continuous or does it settle down.
I don't have omxplayer installed, just the base build as detailed in the fits post of this thread. Like I said mpg123 plays it perfectly, it's only inside xbmc that the noise occurs.

The noise is fairly consistent, although I've noticed that when I'm navigating through the menus it does seem to pause in the time between selecting a menu item and the new dialog appearing. I'm not sure what that means - the track itself doesn't pause just the noise, almost as though it's the GUI that is causing interference. Maybe the cpu is struggling? I don't know.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 1:43 pm

itsonlyme wrote:I have the same problem with DivX3. If my memory serves me correctly there is a post somewhere here that says DivX3 is not strictly MPEG-4.

Files encoded using later versions of DivX play correctly (as far as I know).
Weird... is this something that one of the new codecs for sale would fix, or is my best option converting them all to true mpeg-4 using handbrake?
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 1:49 pm

matbos wrote:I have a problem:

[email protected]:/home/pi/xbmc-rbp# make -C tools/rbp/depends/xbmc/
make: Entering directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
cd ../../../../; ./bootstrap
./bootstrap: 5: ./bootstrap: autoreconf: not found
make: *** [configure] Error 127
make: Leaving directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
[email protected]:/home/pi/xbmc-rbp#
Are you following the instructions located here? http://www.raspbian.org/RaspbianXBMC

My off the cuff thought is either you missed a step on the "Prepare the XBMC code for compilation." section or you didn't get everything when you downloaded it off git. If it's the later, you might want to check your disc space and make sure it's not filled up. If you never expanded your partition then even though you have an X GB sized card, it's only using 2 GB of it.
Dear forum: Play nice ;-)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5341
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 1:50 pm

abishur wrote:
itsonlyme wrote:I have the same problem with DivX3. If my memory serves me correctly there is a post somewhere here that says DivX3 is not strictly MPEG-4.

Files encoded using later versions of DivX play correctly (as far as I know).
Weird... is this something that one of the new codecs for sale would fix, or is my best option converting them all to true mpeg-4 using handbrake?
No, DivX3 doesn't follow any standards and is not supported by the hardware codec (probably not by any hardware codec). If you wan't to play them on the Pi, you will have to convert them.
Later versions of DivX are MPEG4 compliant.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 09, 2012 4:07 pm

dom wrote:
abishur wrote:
itsonlyme wrote:I have the same problem with DivX3. If my memory serves me correctly there is a post somewhere here that says DivX3 is not strictly MPEG-4.

Files encoded using later versions of DivX play correctly (as far as I know).
Weird... is this something that one of the new codecs for sale would fix, or is my best option converting them all to true mpeg-4 using handbrake?
No, DivX3 doesn't follow any standards and is not supported by the hardware codec (probably not by any hardware codec). If you wan't to play them on the Pi, you will have to convert them.
Later versions of DivX are MPEG4 compliant.
bleh, stupid Divx3. Thanks for the info though!
Dear forum: Play nice ;-)

nIerSify
Posts: 65
Joined: Fri Sep 07, 2012 5:45 am
Contact: Website

Re: Instructions for building XBMC for Raspbian

Mon Sep 10, 2012 7:19 am

I have finished compiling the new xbmc version :) I have tested this xbmc build against the 2012-08-16-wheezy-raspbian image. This build contains nfs, airplay, dvdcss, optical-drive and libcec.

One last thing to say is that i haven´t testet cec support yet, because i don´t have a cec adapter... :roll:
You can download the xbmc package by following this link: http://dl.dropbox.com/u/12601231/Raspi/ ... _armhf.deb
You may have to install the following libraries:

Code: Select all

sudo apt-get install libplist1 libmicrohttpd10 libtinyxml2.6.2 libyajl2 libssh-4 libmysqlclient18 liblzo2-2 libfribidi0
http://selfprogramming.bplaced.net

nIerSify
Posts: 65
Joined: Fri Sep 07, 2012 5:45 am
Contact: Website

Re: Instructions for building XBMC for Raspbian

Mon Sep 10, 2012 6:18 pm

I have compiled libcec (version 1.8.0) :) . For those who are interested you can download it by following this link: http://dl.dropbox.com/u/12601231/libcec ... _armhf.deb
http://selfprogramming.bplaced.net

Return to “Raspbian”