Linux HOW-TO compile XBMC from a GIT source

  Thread Rating:
  • 12 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Big_Noid Online
Skilled Skinner
Posts: 2,626
Joined: Jul 2010
Reputation: 68
Location: Below sea level
Post: #191
There is a wrong code in the first post:

Q) Some dependencies been added to script, should I start again?
A) No need, just add the dependencies that have changed or as below.
Code:

apt-get install install libboost-thread-dev libyajl-dev libplist-dev

there is an extra install there.
find quote
Cashtro Offline
Member
Posts: 59
Joined: Dec 2010
Reputation: 13
Post: #192
Hello Every1

I saw some errors in the code and script.

Edit the Script with Notepad or on Linux with Nano.

Code:
#!/bin/bash
NUMPARAMS=1

if [ $# -lt "$NUMPARAMS" ]
then
    echo
    echo "Usage: $0 <upgrade / refresh>"
    echo
    echo "-- UPGRADE = MUST RUN FIRST (& ONLY ONCE) - (Setup build environment and install required Dependencies, then DOWNLOADS XBMC GIT)"
    echo "-- refresh = RUN THEREAFTER to update existing XBMC GIT COMPILE to latest version"
    echo
else

S1="upgrade"
S2="refresh"

    if [ $1 = $S1 ]
    then
        stop xbmc-live
        apt-get install python-software-properties pkg-config -y
        add-apt-repository ppa:team-iquik/xbmc-stable
        apt-get update
        apt-get install libplist-dev python-support python-dev ccache libyajl-dev libvdpau-dev debhelper zip git-core make g++ gcc gawk pmount libtool yasm nasm automake cmake gperf gettext unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-openssl-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libfaac-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmms-dev libmpeg3-dev libfaad-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libboost-thread-dev -y -q
        apt-get build-dep xbmc -y
        mkdir ~/setup
        cd $HOME/setup
        git clone git://github.com/xbmc/xbmc.git
        cd $HOME/setup/xbmc
        make -C lib/libnfs && sudo make -C lib/libnfs install
        ./bootstrap ; ./configure --prefix=/usr --enable-vdpau --disable-pulse --disable-crystalhd ; make -j4
        make -C lib/addons/script.module.pil
        make install prefix=/usr
        start xbmc-live

    else  if [ $1 = $S2 ]
        then
            stop xbmc-live
            cd $HOME/setup/xbmc
            make distclean
            git reset --hard
            git clean -xfd
            git pull --rebase
            make -C lib/libnfs && sudo make -C lib/libnfs install
            ./bootstrap ; ./configure --prefix=/usr --enable-vdpau --disable-pulse --disable-crystalhd ; make -j4
            make -C $HOME/setup/xbmc/lib/addons/script.module.pil
            make install prefix=/usr
            start xbmc-live
        else
                echo
                echo "Usage: $0 <upgrade / update>"
                echo
                echo "-- upgrade = full setup (setup GIT, build environment, etc)"
                echo "-- refresh = update existing XBMC GIT COMPILE to latest version"
                echo
        fi
    fi

fi
find quote
dimitrij2k Offline
Junior Member
Posts: 1
Joined: Oct 2011
Reputation: 0
Post: #193
There is a little Bug in this really nice Tutorial ;-)

Q) Can I compile XBMC with airplay support support?
A) Yes since today apparently 23rd Aug 2011

How to:

FIRST:

Code:
Quote:cd $HOME/setup/xbmc/lib/libshairport
make
make install

SECOND:

Add this to the ./configure Line in the Script :-)

Code:
Quote:./configure --prefix=/usr --enable-vdpau --disable-pulse --enable-libshairport

FINISH:

Update with the modded script & enjoy AirPlay Laugh
find quote
DejaVu Offline
Posting Freak
Posts: 1,155
Joined: May 2010
Reputation: 2
Location: United Kingdom
Post: #194
This is falling over @

Code:
make -C lib/addons/script.module.pil
for me.

Also the OP has an error. Under Step 1 -
Code:
cd $HOME/setup
I think should be
Code:
cd $HOME/setup/xbmc
But I think is going to go obsolete as the OP was by a now Closed Account...?

[Image: watched-fanart.jpg]
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
find quote
umer Offline
Junior Member
Posts: 7
Joined: May 2010
Reputation: 0
Location: Germany
Post: #195
Hi Experts,

I´ve installed Ubuntu 10.04, pulled the latest GIT-Source-Code and compiled successfully. (BTW, I´m a noob).

Now I would like to change the name of XBMC ("XBMC Media Center") to "XBMC-Kids" (or "XBMC-Adults"). What do I have to do for this?
It would be great, if someone could help me with this.

(2. "nested" question: How do I create a live-cd out of this compiled version?)

Thanks in advance for the help.

Greetings,
Umer
find quote
loopez Offline
Junior Member
Posts: 18
Joined: Jan 2011
Reputation: 0
Post: #196
is this script safe to use with beta3 ?
find quote
amirite Offline
Junior Member
Posts: 39
Joined: Oct 2009
Reputation: 8
Post: #197
I used this a month or two ago to update an XBMC Live install to Beta 2. Since doing that last (about a month ago) the git compile fails with a make file error, so I can only imagine that beta3 broke this script as-is. Maybe we're missing some dependancies.

For what it's worth, XBMCbuntu seems to make this script obsolete anyway.
find quote
blm14 Offline
Senior Member
Posts: 120
Joined: Nov 2009
Reputation: 0
Post: #198
Why would XBMCBuntu make this script obsolete? Has anyone written a similar guide for how to compile from git over XBMCBuntu?
find quote
gmathews Offline
Junior Member
Posts: 10
Joined: Apr 2012
Reputation: 0
Post: #199
(2012-04-29 16:19)blm14 Wrote:  Why would XBMCBuntu make this script obsolete? Has anyone written a similar guide for how to compile from git over XBMCBuntu?

I need that guide! I am using xbmcbuntu off the bat but I want to update via git (to keep up with current releases). Is there a guide for this? I noticed that the guide mentioned in the first post refers to XBMC live and not XBMCBuntu. Please advise.
find quote
bugme Offline
Banned
Posts: 73
Joined: Mar 2008
Post: #200
(2012-05-18 10:35)gmathews Wrote:  
(2012-04-29 16:19)blm14 Wrote:  Why would XBMCBuntu make this script obsolete? Has anyone written a similar guide for how to compile from git over XBMCBuntu?

I need that guide! I am using xbmcbuntu off the bat but I want to update via git (to keep up with current releases). Is there a guide for this? I noticed that the guide mentioned in the first post refers to XBMC live and not XBMCBuntu. Please advise.

The guide should work fine in ANY Linux perhpas the op is using xbmc-live which if it is not installed the cmd will return something like "not found"

Though it is outdated (because dependecies) which anyone can add to the list and use it.

It is what it is a GUIDE not a abosolute.

Install commonsense_lib1 and enjoy.
find quote
Post Reply