Page 14 of 16

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 1:08 pm
by alias_neo
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 6:54 pm
by smonkey
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 7:29 pm
by smonkey
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 :)

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 7:46 pm
by dom
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 7:48 pm
by dom
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

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 8:18 pm
by smonkey
Brilliant, thanks dom!

I'll test and report back later.

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 8:47 pm
by smonkey
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')

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 01, 2012 10:16 pm
by dom
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

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 02, 2012 6:15 pm
by smonkey
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!

Re: Instructions for building XBMC for Raspbian

Posted: Mon Sep 03, 2012 8:03 pm
by smonkey
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 :)

Re: Instructions for building XBMC for Raspbian

Posted: Fri Sep 07, 2012 6:02 am
by nIerSify
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

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 08, 2012 4:58 pm
by MarrsAttax
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?

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 08, 2012 5:10 pm
by dom
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sat Sep 08, 2012 8:48 pm
by smonkey
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?

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 1:33 am
by abishur
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 ;

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 1:38 am
by abishur
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

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 8:23 am
by itsonlyme
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).

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 10:42 am
by matbos
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#

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 11:13 am
by MarrsAttax
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 1:43 pm
by abishur
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?

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 1:49 pm
by abishur
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 1:50 pm
by dom
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.

Re: Instructions for building XBMC for Raspbian

Posted: Sun Sep 09, 2012 4:07 pm
by abishur
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!

Re: Instructions for building XBMC for Raspbian

Posted: Mon Sep 10, 2012 7:19 am
by nIerSify
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

Re: Instructions for building XBMC for Raspbian

Posted: Mon Sep 10, 2012 6:18 pm
by nIerSify
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