[XBMC-LIVE][HOW-TO] Install nightly to get Alaska Revisited working
#1
Lightbulb 
Script originaly from here - check the original post guidance and references

I really wanted the new Alaska skin on my Zotac Mag running linux but i couldn't have it since it was an xbmc-live install.
It took some looking around but i finally found out how to compile the nightly xbmc from git source.

[NOTE] The default installation comes with the horrible vim-tiny installation, the first thing i did was upgrade vim so i can edit my files in peace. Install vim-nox using the following commands
Code:
sudo apt-get update
sudo apt-get install vim-nox

- Get root
Code:
sudo su -

- Create /home/xbmc/XBMC-build_git.sh
Code:
vi /home/xbmc/XBMC-build_git.sh

- Copy this into script
Code:
# Script to compile xbmc from source
# Created by boykster @ http://forum.xbmc.org/showpost.php?p=738445&postcount=36
#!/bin/bash
NUMPARAMS=1

if [ $# -lt "$NUMPARAMS" ]
then
    echo
    echo "Usage: $0 <upgrade / refresh>"
    echo
    echo "-- upgrade = full setup (setup GIT, build environment, etc)"
    echo "-- refresh = update existing XBMC GIT COMPILE to latest version"
    echo
else

S1="upgrade"
S2="refresh"

    if [ $1 = $S1 ]
    then
        stop xbmc-live
        cp /etc/apt/sources.list /etc/apt/sources.list-backup
        add-apt-repository ppa:team-xbmc-svn/ppa
        echo deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu lucid main >> /etc/apt/sources.list
        echo deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu lucid main >> /etc/apt/sources.list
        aptitude autoclean -y; aptitude update -y
        aptitude install ccache libvdpau-dev debhelper zip git-core make g++ gcc gawk pmountlibtool 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 -y -q
        apt-get build-dep xbmc -y
        cp /etc/apt/sources.list-backup /etc/apt/sources.list
        rm -r -f /etc/apt/sources.list-backup
        mkdir ~/setup
        cd $HOME/setup
        git clone git://github.com/xbmc/xbmc.git
        cd $HOME/setup/xbmc
        ./bootstrap; ./configure --prefix=/usr --enable-vdpau --disable-pulse ; make -j4
        make install prefix=/usr
        start xbmc-live

    else     if [ $1 = $S2 ]
        then
            stop xbmc-live
            cd $HOME/setup/xbmc
            git pull --rebase
            make distclean ; ./bootstrap ; ./configure --prefix=/usr --enable-vdpau --disable-pulse ; make -j4
            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

- Run script
Code:
sh /home/xbmc/XBMC_build_git.sh upgrade

- Wait... It takes approximately an hour to complete the first time around, once it's done it will restart xbmc live and you will have the latest nightly!

- Install Alaska Wink

This script was created by boykster in this post. I'm just adding it here for easy access since i know a lot of people here want to try out the Alaska Revisited goodness.

[NOTE] Future builds can be compiled by using the same script with the refresh option since you would already have all the git stuff installed
Code:
sh /home/xbmc/XBMC_build_git.sh refresh
Like my post? please up my reputation, it faced the wrath of X3lectric over this post
[HOW-TO][FRODO] Configure XBOX 360 Wireless Controller
[HOW-TO][Frodo] XBOX DVD Remote/Dongle
Reply
#2
Hi there, thanks for writing this script. However, it stops part way through and complains that there's no rule to make it install. Any ideas?

Thanks
Reply
#3
I want to try this but don't want to destroy my perfectly functioning XBMC Live install.

Does this work, above post says no...

Can I install/run all of the above to a USB drive to preserve my current XBMC Live install? If so, what changes do I need?

Thanks for any advice, I want the newer skins! Smile
Reply
#4
Firas.AlShafei Wrote:I really wanted the new Alaska skin on my Zotac Mag running linux but i couldn't have it since it was an xbmc-live install.
It took some looking around but i finally found out how to compile the nightly xbmc from git source.

[NOTE] The default installation comes with the horrible vim-tiny installation, the first thing i did was upgrade vim so i can edit my files in peace. Install vim-nox using the following commands
Code:
sudo apt-get update
sudo apt-get install vim-nox
- Get root
Code:
sudo su -
- Create /home/xbmc/XBMC-build_git.sh
Code:
vi /home/xbmc/XBMC-build_git.sh
- Copy this into script
Code:
# Script to compile xbmc from source
# Created by boykster @ http://forum.xbmc.org/showpost.php?p=738445&postcount=36
#!/bin/bash
NUMPARAMS=1

if [ $# -lt "$NUMPARAMS" ]
then
    echo
    echo "Usage: $0 <upgrade / refresh>"
    echo
    echo "-- upgrade = full setup (setup GIT, build environment, etc)"
    echo "-- refresh = update existing XBMC GIT COMPILE to latest version"
    echo
else

S1="upgrade"
S2="refresh"

    if [ $1 = $S1 ]
    then
        stop xbmc-live
        cp /etc/apt/sources.list /etc/apt/sources.list-backup
        add-apt-repository ppa:team-xbmc-svn/ppa
        echo deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu lucid main >> /etc/apt/sources.list
        echo deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu lucid main >> /etc/apt/sources.list
        aptitude autoclean -y; aptitude update -y
        aptitude install ccache libvdpau-dev debhelper zip git-core make g++ gcc gawk pmountlibtool 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 -y -q
        apt-get build-dep xbmc -y
        cp /etc/apt/sources.list-backup /etc/apt/sources.list
        rm -r -f /etc/apt/sources.list-backup
        mkdir ~/setup
        cd $HOME/setup
        git clone git://github.com/xbmc/xbmc.git
        cd $HOME/setup/xbmc
        ./bootstrap; ./configure --prefix=/usr --enable-vdpau --disable-pulse ; make -j4
        make install prefix=/usr
        start xbmc-live

    else     if [ $1 = $S2 ]
        then
            stop xbmc-live
            cd $HOME/setup/xbmc
            git pull --rebase
            make distclean ; ./bootstrap ; ./configure --prefix=/usr --enable-vdpau --disable-pulse ; make -j4
            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
- Run script
Code:
sh /home/xbmc/XBMC_build_git.sh upgrade
- Wait... It takes approximately an hour to complete the first time around, once it's done it will restart xbmc live and you will have the latest nightly!

- Install Alaska Wink

This script was created by boykster in this post. I'm just adding it here for easy access since i know a lot of people here want to try out the Alaska Revisited goodness.

[NOTE] Future builds can be compiled by using the same script with the refresh option since you would already have all the git stuff installed
Code:
sh /home/xbmc/XBMC_build_git.sh refresh

if your going to rip off someones work please at leat given them credit...

this is where you ripping your shit off from http://forum.xbmc.org/showthread.php?tid=89817 please dont do it again without giving credit.

and btw nano doesnt require so much messing around specially to peeps who have no idea about linux

so that everyone knows thers no issues building from git sometimes it happens that main trunk gets screwed up thats why my ppas for nightlies stoped
Reply
#5
"This script was created by boykster in this post. I'm just adding it here for easy access since i know a lot of people here want to try out the Alaska Revisited goodness."

I think he gave you clear credit and link to org post.
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#6
Rumik Wrote:Hi there, thanks for writing this script. However, it stops part way through and complains that there's no rule to make it install. Any ideas?

Thanks


Interesting - sorry you're having trouble with the script. Are you running it as root (not sudo, but actually as root after doing a sudo su -)?

What do you see in the $HOME/setup directory? It sounds like the build failed, and there's nothing built to install....
Reply
#7
I was able to use my script to build XBMC this morning; make install worked as well, so I'm not sure what errors others are getting. Make sure you are running the script as root, not just with sudo. Copying the files at the end requires root on most systems
Reply
#8
Thx for sharing i think i will give it a try.
Nvidia Shield 2019 Pro, Nvidia Shield 2015
Reply
#9
Do you mean logged in as root? Cause I am and it still won't work Sad
Reply
#10
Actually, the only piece of the instructions I couldn't follow was "- Copy this into script" - I didn't know how to do that. I'm fairly new to Linux and I couldn't work out how to save the script once i'd pasted the code into it. So I created the script in notepad and copied it over.

Can you tell me how to save the script once it's created? Maybe something's getting lost in notepad?

thanks

EDIT: Okay, just figured it out - press Esc then type :wq to save.

EDIT: Ran the script again but it still didn't work Sad

configure: error: Could not find a required library. Please see the README for your platform.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 29236

Any ideas?

Thanks
Reply
#11
Don't use notepad.

To make a script it is quite simple.

First download SSH for your windows pc.
Or use the terminal in Ubuntu for example: ssh -p 22 username@ip
You can also use nano.
so:

sudo nano /home/xbmc/XBMC-build_git.sh

copy/past the code and hit ctrl+O to save.

then follow the rest of the steps.
Nvidia Shield 2019 Pro, Nvidia Shield 2015
Reply
#12
Baswazz Wrote:Don't use notepad.

To make a script it is quite simple.

First download SSH for your windows pc.
Or use the terminal in Ubuntu for example: ssh -p 22 username@ip
You can also use nano.
so:

sudo nano /home/xbmc/XBMC-build_git.sh

copy/past the code and hit ctrl+O to save.

then follow the rest of the steps.


+1 - this is how I do it; I use nano as a lightweight editor.

@Rumik - it sounds like the script just isn't running properly for you - you can download it already turned into a script from my post here:

http://forum.xbmc.org/showpost.php?p=738...stcount=36

just follow the directions there.

Also, what distro are you using? I didn't test the script on any distro other than LIVE installed to a drive - other distros may be different and need some tweaking.
Reply
#13
The-Boxhead Wrote:"This script was created by boykster in this post. I'm just adding it here for easy access since i know a lot of people here want to try out the Alaska Revisited goodness."

I think he gave you clear credit and link to org post.

boyskters script was part of a combined effort, please read original post. where the topic starter should have posted his information, because of below info.

boykster Wrote:I was able to use my script to build XBMC this morning; make install worked as well, so I'm not sure what errors others are getting. Make sure you are running the script as root, not just with sudo. Copying the files at the end requires root on most systems

yes look at commit

https://github.com/xbmc/xbmc/commit/6948...f879b3ce46

ppl cant build doesn't mean its script or how-to compile instructions.

ppl assume way too much and dont post properly informed posts, this cause users to get more confused. just reading this whole topic makes me cringe.

Please dont litter forums with unnecessary posts just because xbmc needs to be a particular version for a particular skin to work, confuses ppl like rumik and t2ffn cause they dont know linux had they read the original post the concerns about
Quote:"I dont want to destroy a perfectly good xbmc install
and other comments rae answered and sorted on original post.
This entire topic and issues could have been avoided by proper informed posting, and why building breaks sometimes in trunk.

As the git commit shows above when you cant compile goto IRC and ask if trunk is building ok 9/10 times if building in Linux is broken bet is developers know about it. if they going to fix it or not idk.

As for credit due for original poster please read the whole post where script is and follow up there.
Reply
#14
Yeah, i have no idea what you just said.

Boykster - thanks for the file, but I tried it and I'm still getting the same problem. I'm running 10.1 Live.

Anyone have any other ideas about how I could get this working?

Thanks
Reply
#15
X3lectric Wrote:boyskters script was part of a combined effort, please read original post. where the topic starter should have posted his information, because of below info.



yes look at commit

https://github.com/xbmc/xbmc/commit/6948...f879b3ce46

ppl cant build doesn't mean its script or how-to compile instructions.

ppl assume way too much and dont post properly informed posts, this cause users to get more confused. just reading this whole topic makes me cringe.

Please dont litter forums with unnecessary posts just because xbmc needs to be a particular version for a particular skin to work, confuses ppl like rumik and t2ffn cause they dont know linux had they read the original post the concerns about and other comments rae answered and sorted on original post.
This entire topic and issues could have been avoided by proper informed posting, and why building breaks sometimes in trunk.

As the git commit shows above when you cant compile goto IRC and ask if trunk is building ok 9/10 times if building in Linux is broken bet is developers know about it. if they going to fix it or not idk.

As for credit due for original poster please read the whole post where script is and follow up there.

Ok i see and totally agree Wink my reading glasses was out of reach i guess Wink
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply

Logout Mark Read Team Forum Stats Members Help
[XBMC-LIVE][HOW-TO] Install nightly to get Alaska Revisited working1