fraz0815
Posts: 70
Joined: Fri Jul 20, 2012 1:29 pm

Re: Instructions for building XBMC for Raspbian

Tue Oct 23, 2012 11:49 am

You may want to take a look at https://github.com/Koenkk/xbian/blob/ma ... ileXBMC.sh.
But be careful in the section with creating a bigger swap, xbian uses a swap partition, while Raspbian by default uses a swap-file. It could screw up your sdcard ;)
So instead increase swap in /etc/dphys-swapfile , also don't forget as mentioned at the top to use a different memory-split to compile, eg 224 or 240 if running the 'old' 256mb pi.
I don't know if the git reverting and

Code: Select all

nano configure.in # set use_texturepacker_native=yes to use_texturepacker_native=no @ line 668
is still needed.

mongrol
Posts: 76
Joined: Wed Aug 01, 2012 2:43 am

Re: Instructions for building XBMC for Raspbian

Tue Oct 23, 2012 11:12 pm

Some of the package deps are out of date in that article too. Tbh there's not much difference between kkoenke's doc and the one on the raspbian site. I still get the -ldl error so I'm just going to park this and do a full rebuild at some point.

fraz0815
Posts: 70
Joined: Fri Jul 20, 2012 1:29 pm

Re: Instructions for building XBMC for Raspbian

Wed Oct 24, 2012 3:33 pm

Hm, don't know what causes your error, but I tested the instructions today with a fresh raspbian install and ./configure went through correctly.

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Thu Oct 25, 2012 1:35 pm

After many tentatives I end my XBMC compile on my 8-)
As soon as I come at home I will try some movies.
Very nice!
I want to use CEC to handle my tv, are these libs already present in the version built using the first page guide?

mongrol
Posts: 76
Joined: Wed Aug 01, 2012 2:43 am

Re: Instructions for building XBMC for Raspbian

Fri Oct 26, 2012 12:31 am

A fresh rebuild later and I've got past the configure stage. Halfway into a compile though and I get this error.

Code: Select all

DirectoryNodeYear.P:262: *** missing separator.  Stop.
make: *** [xbmc/filesystem/MusicDatabaseDirectory/musicdatabasedirectory.a] Error 2
Appears to be at the linking stage. Line 262 refers to posix.h. Can't seem to trace it further than that.

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Fri Oct 26, 2012 6:50 pm

I tried today to run xbmc from the default desktop with usb mouse and keyboard. I have this error:
XBMC needs hardware accelerated opengl rendering

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

Re: Instructions for building XBMC for Raspbian

Fri Oct 26, 2012 7:44 pm

mcgyver83 wrote:I tried today to run xbmc from the default desktop with usb mouse and keyboard. I have this error:
XBMC needs hardware accelerated opengl rendering
How did you install it? If you built it yourself, you need to call it with

Code: Select all

/usr/lib/xbmc/xbmc.bin --standalone --fs
Dear forum: Play nice ;-)

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Sat Oct 27, 2012 8:14 am

abishur wrote:
mcgyver83 wrote:I tried today to run xbmc from the default desktop with usb mouse and keyboard. I have this error:
XBMC needs hardware accelerated opengl rendering
How did you install it? If you built it yourself, you need to call it with

Code: Select all

/usr/lib/xbmc/xbmc.bin --standalone --fs
I followed the guide in the first page.
With your command I have this output:

Code: Select all

 /usr/lib/xbmc/xbmc.bin --standalone --fs
libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
libEGL warning: GLX: XOpenDisplay failed
libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
If I edit the "xbmc shortcut" from the lxde menu adding the two params I have the "usual" window with "XBMC needs hardware accelerated opengl rendering"

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Sat Oct 27, 2012 9:50 am

I solved rebuilding the symlink made in step6 of the guide as this post says: http://www.raspberrypi.org/phpBB3/viewt ... 23#p122123

Diaoul
Posts: 24
Joined: Thu Jul 12, 2012 9:45 pm

Re: Instructions for building XBMC for Raspbian

Sun Oct 28, 2012 9:07 am

Hi there,

You can compile your own .debs for XBMC with the packaging suite I made : https://github.com/Diaoul/xbmc-rbp-packaging
It builds with CEC support.

Instructions are in the README.

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Sun Oct 28, 2012 9:27 am

mcgyver83 wrote:I solved rebuilding the symlink made in step6 of the guide as this post says: http://www.raspberrypi.org/phpBB3/viewt ... 23#p122123
I had to add in rc.loca the symlink creation as said there http://www.raspberrypi.org/phpBB3/viewt ... 34#p122534
Diaoul wrote:Hi there,

You can compile your own .debs for XBMC with the packaging suite I made : https://github.com/Diaoul/xbmc-rbp-packaging
It builds with CEC support.

Instructions are in the README.
In this way I have "your XBMC release" with CEC, not the lastest one?

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Sun Oct 28, 2012 10:10 am

I cannot edit my posts, I don't know why.

I followed the first topic guide and did all logged in Raspbian as myUser; the defaul boot goes to LXDE with the default "pi" user.
If I run from ssh as myUser

Code: Select all

xbmc
on the tv XBMC appears but if I double click on the Desktop shortcut on the LXDE desktop (so logged as "pi") I still have the "xbmc needs hardware accelerated opengl rendering"...
Why? I want to remove the default "pi" user and have only "myUser" on the system,can I simply remove the user via linux command or the default boot on Desktop process will fail?

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Sun Oct 28, 2012 4:39 pm

Again, I follwed Diaoul link and this is the error I have:

Code: Select all

[email protected] ~/xbmc-rbp-packaging $ make source
./getsource
Cloning sources from git://github.com/xbmc/xbmc.git
Cloning into './xbmc'...
remote: Counting objects: 191023, done.
remote: Compressing objects: 100% (63733/63733), done.
remote: Total 191023 (delta 137091), reused 171930 (delta 122690)
Receiving objects: 100% (191023/191023), 330.65 MiB | 236 KiB/s, done.
Resolving deltas: 100% (137091/137091), done.
Checking out files: 100% (14661/14661), done.
HEAD is now at 7197e88 [osx/ios/atv2] - don't build the legacy interface via make in the xcode prebuilt step. This leads to broken vtables because of different buildsettings in xcode and make. Instead only build the python_bindings.a (code generation) via make and pull the legacy interface into xcode. This fixes subtitle addon on ios release builds and a dozen of other problems we didn't see yet. Thx @jcarroll to pointing it out.
Removing temp files and other cruft from source tarball
Removing empty directories
Creating orig tarball
dpkg-buildpackage: source package xbmc-rbp
dpkg-buildpackage: source version 12.0~git20120904.494cb5e-1
dpkg-buildpackage: source changed by Antoine Bertin <[email protected]>
 dpkg-source --before-build xbmc-12.0~git20121028.7197e88
dpkg-source: info: applying remove-rendering-tests.patch
dpkg-source: info: applying no_texturepacker_native.patch
 fakeroot debian/rules clean
make[1]: Entering directory `/home/mcg/xbmc-rbp-packaging/xbmc-12.0~git20121028.7197e88'
dh clean --parallel
   dh_testdir -O--parallel
   dh_auto_clean -O--parallel
   debian/rules override_dh_clean
make[2]: Entering directory `/home/mcg/xbmc-rbp-packaging/xbmc-12.0~git20121028.7197e88'
dh_clean libtool xbmc/config.h xbmc/stamp-h1
find . -name config.status -o -name config.cache -o -name config.log \
                -exec rm -f "{}" \;
make[2]: Leaving directory `/home/mcg/xbmc-rbp-packaging/xbmc-12.0~git20121028.7197e88'
make[1]: Leaving directory `/home/mcg/xbmc-rbp-packaging/xbmc-12.0~git20121028.7197e88'
 dpkg-source -b xbmc-12.0~git20121028.7197e88
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../xbmc-rbp_12.0~git20120904.494cb5e.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b xbmc-12.0~git20121028.7197e88 gave error exit status 255
[email protected] ~/xbmc-rbp-packaging $ ls
debian     hookdir                Makefile    README.rst  xbmc-12.0~git20121028.7197e88
getsource  libcec-pbuilder.patch  pbuilderrc  xbmc        xbmc-rbp_12.0~git20121028.7197e88.orig.tar.gz

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Sun Oct 28, 2012 11:31 pm

Diaoul wrote:Hi there,

You can compile your own .debs for XBMC with the packaging suite I made : https://github.com/Diaoul/xbmc-rbp-packaging
It builds with CEC support.

Instructions are in the README.
HI Diaoul,
I'd love to, but unfortunately I'm getting this error message after "make source":

Code: Select all

make[1]: Entering directory `/home/pi/xbmc-rbp-packaging/xbmc-12.0~git20121029.407596c'
dh clean --parallel
   dh_testdir -O--parallel
   dh_auto_clean -O--parallel
   debian/rules override_dh_clean
make[2]: Entering directory `/home/pi/xbmc-rbp-packaging/xbmc-12.0~git20121029.407596c'
dh_clean libtool xbmc/config.h xbmc/stamp-h1
find . -name config.status -o -name config.cache -o -name config.log \
                -exec rm -f "{}" \;
make[2]: Leaving directory `/home/pi/xbmc-rbp-packaging/xbmc-12.0~git20121029.407596c'
make[1]: Leaving directory `/home/pi/xbmc-rbp-packaging/xbmc-12.0~git20121029.407596c'
 dpkg-source -b xbmc-12.0~git20121029.407596c
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../xbmc-rbp_12.0~git20120904.494cb5e.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b xbmc-12.0~git20121029.407596c gave error exit status 255

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Mon Oct 29, 2012 7:29 pm

Eureka, I found the solution by myself :)

after entering 'make source' a text editor pops up allowing you to make changes to a changelog file. I removed those lines:

Code: Select all

xbmc-rbp (12.0~git20120904.494cb5e-1) unstable; urgency=low

  * Initial release

 -- Antoine Bertin <[email protected]>  Wed, 05 Sep 2012 23:30:06 +0200
and left the newly added ones above. Now it seems to be working.

Diaoul
Posts: 24
Joined: Thu Jul 12, 2012 9:45 pm

Re: Instructions for building XBMC for Raspbian

Mon Oct 29, 2012 10:03 pm

Indeed you have to edit the changelog when prompted to do so. The changelog is something I'd like to automate as I don't want to provide a changelog yet one is required. Autogenerating one could be the solution but I don't know how to do that yet.

I have done some changes locally to build pvr-addons along with XBMC, It's compiling right now so I'll tell you tomorrow if that works ;)

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Instructions for building XBMC for Raspbian

Tue Oct 30, 2012 10:01 am

I tried removing the lines but after I have this error:

Code: Select all

make[1]: Leaving directory `/home/pi/xbmc-rbp-packaging/xbmc-12.0~git20121030.1a0417f'
 dpkg-source -b xbmc-12.0~git20121030.1a0417f
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building xbmc-rbp using existing ./xbmc-rbp_12.0~git20121030.1a0417f.orig.tar.gz
tar: Skipping to next header
tar: A lone zero block at 158839
tar: Exiting with failure status due to previous errors
dpkg-source: error: tar --no-same-owner --no-same-permissions -xf - gave error exit status 2
dpkg-buildpackage: error: dpkg-source -b xbmc-12.0~git20121030.1a0417f gave error exit status 2
I tried make

Code: Select all

make source
and

Code: Select all

sudo make source
but I have the same message.

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Tue Oct 30, 2012 11:19 pm

@mcgyver83: for me it looks like a corrupt SDCard/image due to the "A lone zero block" message in your logs.


I am able to get some steps further.

make source
make create
make dependencies went all well but on make build

I got this error:

Code: Select all

...
configure: == libusb disabled. ==
will check for RPi support
checking interface/vmcs_host/vc_cec.h usability... yes
checking interface/vmcs_host/vc_cec.h presence... no
configure: WARNING: interface/vmcs_host/vc_cec.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: interface/vmcs_host/vc_cec.h: proceeding with the compiler's result
checking for interface/vmcs_host/vc_cec.h... yes
checking for CEC... no
configure: error: == libcec disabled. CEC adapter support will not be available. ==
make[2]: *** [override_dh_auto_configure] Error 1
make[2]: Leaving directory `/tmp/buildd/xbmc-rbp-12.0~git20121030.4fae651'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/tmp/buildd/xbmc-rbp-12.0~git20121030.4fae651'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package

...
has anyone an idea whats going on here?

TwedL200
Posts: 3
Joined: Mon Oct 22, 2012 11:37 am

Re: Instructions for building XBMC for Raspbian

Thu Nov 01, 2012 7:19 am

hi guys, when i run step 11 from the link in the first post, i get a message saying no such file or directory.

everything before step 11 went fine and if i skip it and go to step 12 - make xbmc, i get a message saying no target specified and no makefile found.

what have i done? lol

i'm using the latest raspbian wheezy release for the 512 board.

thanks.

ahstwin
Posts: 42
Joined: Fri Nov 30, 2012 8:40 am
Location: Adelaide

Re: Instructions for building XBMC for Raspbian

Sat Dec 01, 2012 1:58 am

Not really trying to revive a dead topic but I'd like to reinforce the idea that the instructions for compiling and installing XBMC work! Thanks ! :D

esuz
Posts: 7
Joined: Thu Dec 13, 2012 1:00 pm

Re: Instructions for building XBMC for Raspbian

Thu Dec 13, 2012 1:11 pm

mcgyver83 wrote:I solved rebuilding the symlink made in step6 of the guide as this post says: http://www.raspberrypi.org/phpBB3/viewt ... 23#p122123
Indeed, I had to do that too - after building xbmc. Don't remember if I updated the system in between.

Thanks for the help.

vpatil
Posts: 2
Joined: Sun Dec 23, 2012 9:51 am

Re: Instructions for building XBMC for Raspbian

Wed Dec 26, 2012 12:26 pm

Hi ,
I have been trying to build xbmc following these instructions but so for no luck.
http://www.raspbian.org/RaspbianXBMC
i'm getting following linking error

make[2]: Leaving directory `/home/vijay/xbmc/xbmc-rbp/lib/libapetag'
make[1]: Leaving directory `/home/vijay/xbmc/xbmc-rbp/lib/libapetag'
LD xbmc.bin
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a: member xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(dialog.o) in archive is not an object
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

When I checked the size of dialog.o , it is showing zero

[email protected] ~/xbmc/xbmc-rbp $ find . -name dialog.o -exec ls -l {} \;
-rw-r--r-- 1 vijay vijay 0 Dec 22 18:43 ./xbmc/interfaces/python/xbmcmodule/dialog.o

If any one seen this error or aware of fix please let me know

Thanks,
Vijay

mase
Posts: 6
Joined: Wed Dec 26, 2012 11:43 pm

Re: Instructions for building XBMC for Raspbian

Wed Dec 26, 2012 11:46 pm

My build on the Pi with Raspbian also fails:

Code: Select all

checking for main in -lgpg-error... no
configure: error: Could not find a required library. Please see the README for your platform.
libgpg-error and its -dev package is installed.

jquan
Posts: 7
Joined: Sun Jan 13, 2013 6:40 pm

Re: Instructions for building XBMC for Raspbian

Fri Feb 01, 2013 9:53 pm

I tried the guide at the start of the thread - http://www.raspbian.org/RaspbianXBMC

But then I got the following error

Code: Select all

GL_DISPMANX_WINDOW_T# does not name a type
make[1]: *** [DVDPlayerVideo.ol Error 1
make: *** [xbmc/cores/dvdplayer/DVDPplayer.al Error 2
i read the fix at http://www.raspberrypi.org/phpBB3/viewt ... 9&p=161414
sudo apt-get remove libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev

but after I remove the files and re-do make, I then get the following error
fatal error: GLES2/gl2.h: No such file or directory
Compilation terminated
make[1] *** [DVDPLAYERVideo.ol Error 1
make *** [xbmc/cores/dvdplayer/DVDPlayer.al Error 2

#uname -a
Linux Raspberrypi 3.2.3.27 #250 FREEMPI thu Oct 18 armv61
I've got the 256mb rev 2 version..
GCC 4.7.2

bboyandru
Posts: 24
Joined: Thu Feb 14, 2013 7:34 am
Contact: Website Yahoo Messenger

Re: Instructions for building XBMC for Raspbian

Thu Feb 28, 2013 9:18 pm

Hi!

For a recent guide on how to compile XBMC 12 on Debian Wheezy on Raspberry PI, please have a look at my tutorial:
http://www.engineering-diy.blogspot.ro/ ... ce-in.html

Andrei
http://www.engineering-diy.blogspot.com

Return to “Raspbian”