Linux - HOW-TO compile XBMC from a GIT source

  Thread Rating:
  • 12 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #181
cheers man thx Smile you use?
find quote
mbah.pande Offline
Junior Member
Posts: 25
Joined: Jul 2011
Reputation: 0
Post: #182
HI all

after compile with prefix /usr/local/
where is xbmc.bin located

or i missing something that make xbmc.bin didn't created

where i can find tutorial that compiled xbmc.git to be xbmc.deb?

Thanks
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #183
mbah.pande Wrote:HI all

after compile with prefix /usr/local/
where is xbmc.bin located

or i missing something that make xbmc.bin didn't created

where i can find tutorial that compiled xbmc.git to be xbmc.deb?

Thanks

No idea. Perhaps you can google.
find quote
mprassel Offline
Member
Posts: 82
Joined: Dec 2010
Reputation: 0
Location: London
Post: #184
I'm trying to upgrade and I'm getting the following errors:

michael@XBMCLive:~$ sudo ./XBMC_upgrade_live.sh
xbmc-live stop/waiting
make: *** No rule to make target `distclean'. Stop.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
cd: 7: can't cd to /home/michael/setup/xbmc/lib/libnfs/
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
./XBMC_upgrade_live.sh: 10: ./bootstrap: not found
./XBMC_upgrade_live.sh: 10: ./configure: not found
make: *** No targets specified and no makefile found. Stop.
make: *** /home/michael/setup/xbmc/lib/addons/script.module.pil: No such file or directory. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 4451

Can anyone help? Thank you.

TV: LG LH423000
HTPC: A6 3500 HTPC running Windows 7
STORAGE: unRaid (Currently with 11.5TB)
REMOTE: Roomie on an iPad Mini
SOUND SYSTEM: Samsung HT-E5530
My Setup
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #185
mprassel Wrote:I'm trying to upgrade and I'm getting the following errors:

michael@XBMCLive:~$ sudo ./XBMC_upgrade_live.sh
xbmc-live stop/waiting
make: *** No rule to make target `distclean'. Stop.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
cd: 7: can't cd to /home/michael/setup/xbmc/lib/libnfs/
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
./XBMC_upgrade_live.sh: 10: ./bootstrap: not found
./XBMC_upgrade_live.sh: 10: ./configure: not found
make: *** No targets specified and no makefile found. Stop.
make: *** /home/michael/setup/xbmc/lib/addons/script.module.pil: No such file or directory. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 4451

Can anyone help? Thank you.

sudo ./XBMC_upgrade_live.sh is OLD and Hasnt been uploaded/supported in main post in over a month or more.

secondly the script should be ran like.
Code:
sudo ./nameofscript.sh upgrade
and there after

Code:
sudo ./nameofscript.sh refresh

please read first post. Actually read it cause I have no idea where you got ./XBMC_upgrade_live.sh from
find quote
mprassel Offline
Member
Posts: 82
Joined: Dec 2010
Reputation: 0
Location: London
Post: #186
X3lectric Wrote:sudo ./XBMC_upgrade_live.sh is OLD and Hasnt been uploaded/supported in main post in over a month or more.

secondly the script should be ran like.
Code:
sudo ./nameofscript.sh upgrade
and there after

Code:
sudo ./nameofscript.sh refresh

please read first post. Actually read it cause I have no idea where you got ./XBMC_upgrade_live.sh from

I already installed via compile and I'm trying to update. I copied your update code into XBMC_upgrade_live.sh and I tried running it like this:

Code:
sudo ./XBMC_upgrade_live.sh refresh

and got this:

michael@XBMCLive:~$ sudo ./XBMC_upgrade_live.sh refresh
[sudo] password for michael:
xbmc-live stop/waiting
make: *** No rule to make target `distclean'. Stop.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
cd: 7: can't cd to /home/michael/setup/xbmc/lib/libnfs/
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
./XBMC_upgrade_live.sh: 10: ./bootstrap: not found
./XBMC_upgrade_live.sh: 10: ./configure: not found
make: *** No targets specified and no makefile found. Stop.
make: *** /home/michael/setup/xbmc/lib/addons/script.module.pil: No such file or directory. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 4872

I can't tell what I'm messing up. Thanks for your help.

TV: LG LH423000
HTPC: A6 3500 HTPC running Windows 7
STORAGE: unRaid (Currently with 11.5TB)
REMOTE: Roomie on an iPad Mini
SOUND SYSTEM: Samsung HT-E5530
My Setup
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #187
ok you cant read

[SIZE=2]I said
[/SIZE]./XBMC_upgrade_live.sh IS OLD AND NO LONGER SUPPORTED (PLEASE READ FIRST POST)

Don't invent scripts


first

wget http://dl.dropbox.com/u/4325533/XCI/xgb.sh; chmod +x xgb.sh


then sudo ./xgb.sh refresh


\\Edit if you wanted to put my second part into a script its would be

Code:
#!/bin/bash
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 -C $HOME/setup/xbmc/lib/addons/script.module.pil
make -j4
make install prefix=/usr
start xbmc-live
then saved, than chmoded then ran like

Code:
sudo ./nameofscript.sh
no need for adding anything elase because thers no options in there that are supported e.g. upgrade/refresh

those are EXCLUSIVE to the script version
(This post was last modified: 2011-08-23 17:34 by X3lectric.)
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #188
also when you ran the first part did you run with sudo or root?

this is VERY important cause if you run with sudo the path where
cd $HOME/setup/xbmc is with sudo is not the same as when running as root.

this could account for

fatal: Not a git repository (or any of the parent directories): .git

aslo sorry for the exceedgly big txt but I wnat to make sure you understand and read what and how and what your suppose to do, not invent ways of breaking what isnt broken...

Hope you get it fixed lemme know.
(This post was last modified: 2011-08-23 20:01 by X3lectric.)
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #189
update
[SIZE=2]
From today xbmc supports airplay

anyways new script and instructions already contains new dependency see this commit

for who isnt sure install it today
[/SIZE]
Code:
[SIZE=6]
[SIZE=2]apt-get install libplist-dev[/SIZE][/SIZE]
[SIZE=2]
Apparently support has been added to IOS/OSX and Linux dont ask me about it I dont know anything.

The main post has been updated and so as script, but I already said that no?
[/SIZE]
(This post was last modified: 2011-08-24 01:19 by X3lectric.)
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #190
UPDATE

all help and support on any of my topics is now passed to my blog.

sorry for any trouble caused.
find quote
BigNoid Offline
Team-XBMC Member
Posts: 3,084
Joined: Jul 2010
Reputation: 99
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: 67
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,159
Joined: May 2010
Reputation: 3
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
Post Reply