Request: Instructions for compiling XBMC from github (source)


12 posts
by abishur » Wed May 02, 2012 4:44 pm
This is kind of a spin off of this thread started by Dom.  It's a *great* thread for people who already know what they're doing for when it comes to cross compiling and NFS shares, but if you're more at the "Hello, my name is X and I'm an advanced Windows user" side of the support group, it can be a little frustrating ;-)

So this is a request thread for someone who's compiled it to share what steps they took to get everything working.  It would be nice if we could just compile the whole thing on the pi itself since that's a point of commonality, but if that's not possible I'd be greatly appreciative of any kind of detailed instructions for compiling it with any method (basically I don't want to have to wait on the more knowledgeable to make a whole new image anytime I want to upgrade and I thought this might be a good starting point :-P )
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4298
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by pepedog » Wed May 02, 2012 5:24 pm
I too would like this, for arch. Info needed-

Which repo

What depends

If any /opt/vc stuff needs copying and to where

What configure options

Yes, can work out some of this. I might get the pi to compile on its own, then again I might use distcc
Posts: 979
Joined: Fri Oct 07, 2011 9:55 am
by piguy79 » Wed May 02, 2012 6:23 pm
does this help any?

http://openelec.tv/news/item/2.....-pi-part-1

http://openelec.tv/news/item/2.....-pi-part-2

i didn't read them yet. the topic reminded me of these articles

i'm sorry if this is irrelevant.
Posts: 17
Joined: Tue Apr 17, 2012 10:41 pm
by piguy79 » Wed May 02, 2012 6:34 pm
i couldn't figure out how to edit my last post but they're discussing that article here:

http://www.raspberrypi.org/for.....art-1-xbmc
Posts: 17
Joined: Tue Apr 17, 2012 10:41 pm
by dom » Wed May 02, 2012 6:39 pm
Building OpenELEC is more straightforward. It does take longer though.

You'll also get a more effecient XBMC build out of OpenELEC.

The XBMC build relies on a number of debian libraries that are built with emulated floating point. OpenELEC builds all libs itself, and they are built with hardfloat ABI.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4042
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Tavalin » Wed May 02, 2012 6:59 pm
Does OpenELEC build using hardfloat by default or is there a flag to set when building?
Posts: 51
Joined: Mon Apr 16, 2012 9:53 pm
by abishur » Wed May 02, 2012 9:20 pm
As much as I like the idea of the hardfloat, I was really wanting to do xbmc direct because I didn't want to tie up my pi with just the media features, but with lots of other things as well....
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4298
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by abishur » Wed May 02, 2012 10:37 pm
Trying to follow these instructions on the xbmc github for compiling through scratch box.  I'd like to use the R-pi tool chain for the rpi github, but I can't figure out out to get scratchbox to see the toolchain after I put it in /scratchbox/compilers.  Can anyone point out how to add the rpi toolchain to scratchbox?
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4298
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by pepedog » Thu May 03, 2012 6:19 pm
I was hoping there would be a simple answer to this.

Tried openelec build via and i7 arch, failed, look like it was refering to a pc binary
Posts: 979
Joined: Fri Oct 07, 2011 9:55 am
by Smartybones » Fri May 04, 2012 8:42 pm
personally, I would stick it out and get openELEC up and running.

I understand you dont want to tie your RPI up to a single use, but a massive point to the RPI project is that you only need to swap the SD card out and hey presto, its performing a whole new task…

The build for OpenELEC is quite straight forward and once you have all the required libraries then its as easy as Pi…

**edit**

I plan on writing a tutorial in the next day or so to compile and build an openELEC SD card... I know the instructions are on the openELEC site, but not all the libraries are present on a fresh install of ubuntu to compile it successfully...
Posts: 174
Joined: Wed Feb 08, 2012 5:03 pm
by geo79 » Sun May 06, 2012 12:39 pm
I had a fun time learning linux basics and eventually got XBMC/OpenELEC compiled on my main computer but sadly my laptop running VM/VirtualBox was not able to directly access the built-in SD card reader, so making partitions/2nd half of instructions were not possible.

For those in a similar situation marshcroft was kind enough to post (page 3 of comments on part II post from OpenELEC blog) an .img file that you can use to get started until OpenELEC releases an official build:
http://openelec.tv/component/k.....comment732

Windows users can Un-RAR the file with Free RAR Extract Frog:
http://download.cnet.com/Free-.....04840.html

Windows shares/SMB should work but if you're more courageous NFS seems to be superior in efficiency, see background info here and help setting up Windows 7 firewall for NFS:
http://wiki.xbmc.org/index.php?title=NFS


Some useful tools after you have it up and running:
Putty to login and look around or run top command to see what is going on and such (root/openelec is the pw, can't be changed easily as it is read only partition evidently):
http://the.earth.li/~sgtatham/...../putty.exe

Filezilla FTP client to drop some local files into various /storage folders (using root credentials above) if you'd rather avoid the network (image is 2GB sized, not sure how to adjust/if it is simple):
http://filezilla-project.org/

Also if you have an Android phone try the remote program that does a great job (and can pause when you get a phone call/display on screen calls or text messages)
https://play.google.com/store/apps/details?id=org.xbmc.android.remote&hl=en
Posts: 2
Joined: Mon Apr 16, 2012 4:50 pm
by RussIT » Sun May 06, 2012 3:42 pm
just tried that image from your post and now have my pi playing video in xmbc with sound.... very cool indeed
Posts: 28
Joined: Thu Jan 05, 2012 11:34 am