Linux - HOW-TO Compile XBMC from GIT - Script -

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #31
OK, thanks.

Back to step 1. I started with Ubuntu minimal installation and then directly your script.

Will it work if I just started with post no 2 without deleting anything and the run your script once again? Or will I have to start all over again?

Regards
/Dashiva
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #32
Work yes, best no.

On the ubuntu minimal script post nr 2 open up script and find line

Code:
XBMC_PPA="ppa:wsnipex/xbmc-xvba"

and make it

Code:
XBMC_PPA=""

Save it and run that script, choosing xinit upstart script as a autostart method for xbmc and whatever else you want, then for xbmc use this script, when this one is done you should see xbmc.

For other tweaks for your Asrock 330HT (I have same machine) see my signature.

uNi
(This post was last modified: 2013-04-17 14:42 by uNiversal.)
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #33
Thank you for all your help. Will restart everything right now.. Smile

Regards
/Dashiva
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #34
Halfway there. Done all minimal installation and starting to install with your script.

Downloaded scripts are not working. No such file or directory.
Creating an empty file and copying the code in your first post comes a little further...
line with git command doesn't work any longer....

Never mind.. when using swedish mirrirs git wasn't installed at all.


Regards
/Dashiva
(This post was last modified: 2013-04-17 16:59 by Dashiva.)
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #35
... thinking of making my system into a bookstand...
Got new errors after 2 clean installs. Any clues to the following error messages..

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libshairport-dev : Depends: libshairport1 (= 1.2.1~git20120110.aeb4987-2) but 1:1.2.1~git20121216.16395d8-0~ppa1~quantal is to be installed
E: Unable to correct problems, you have held broken packages.
mkdir: cannot create directory `/home/setup': File exists
mkdir: cannot create directory `/home/setup/xbmc': File exists
fatal: destination path 'xbmc' already exists and is not an empty directory.
make: Entering directory `/home/setup/xbmc/lib/libnfs'
/usr/bin/curl -Ls --create-dirs --output ./libnfs-1.3.0.tar.gz http://mirrors.xbmc.org/build-deps/darwi...3.0.tar.gz
make: /usr/bin/curl: Command not found
make: *** [libnfs-1.3.0.tar.gz] Error 127
make: Leaving directory `/home/setup/xbmc/lib/libnfs'
autoreconf -vif .
make: autoreconf: Command not found
make: *** [configure] Error 127
Warning: No doxygen installed. The Api will not have any docstrings.
mkdir -p xbmc/interfaces/python/generated/doxygenxml
Java not found, it will be used if found after configure.
This is not necessarily an error.
make: *** [java-not-found] Error 1
start: Unknown job: xbmc-live
start: Unknown job: xbmc

Fingers crossed... removed libshair* together with a lot more and then restarted the script.. looks good so far Smile

Regards
/Dashiva
(This post was last modified: 2013-04-17 20:52 by Dashiva.)
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #36
idk what your doing but given your last post I can only assume something is not installed and something is broken.

What is not installed is likely the dependencies given libsharport and java errors.
Also if this is clean install you wouldnt get

Code:
mkdir: cannot create directory `/home/setup': File exists
mkdir: cannot create directory `/home/setup/xbmc': File exists
Unless your running the git compile script wrong for e.g. sudo ./gcs.sh upgrade twice in a row

So try this.

Code:
sudo apt-get install -f
sudo dpkg-reconfigure -a

sudo apt-get install --reinstall python-software-properties pkg-config libvdpau-dev ccache autopoint libltdl-dev git-core build-essential gawk pmount libtool nasm yasm automake cmake gperf zip 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 libasound2-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-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 libenca-dev libxt-dev libxmu-dev libpng-dev libjpeg-dev mesa-utils libcdio-dev libsamplerate-dev libmpeg3-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs python-dev libyajl-dev libboost-thread-dev libplist-dev libusb-dev libudev-dev libtinyxml-dev libcap-dev curl swig default-jre libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbluetooth-dev libbluray-dev libbluray1 libcec-dev libcec1 libcrystalhd-dev libcrystalhd3 libcurl4-gnutls-dev libcwiid-dev libcwiid1 libnfs-dev libpostproc-dev libshairport-dev libswscale-dev libva-dev libva-egl1 libva-tpi1 libmp3lame-dev libtiff-dev libtiff5-dev -y -q
.
After that run the git compile script with

Code:
sudo ./gcs.sh update

uNi
(This post was last modified: 2013-04-17 20:59 by uNiversal.)
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #37
Thank you for all support.

I noticed that the script is missing mkdir /home/setup/xbmc, but that was able to solve Smile
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #38
Actually its not missing anything.

its does indeed create it so your doing something wrong.
Code:
mkdir /home/setup
cd /home/setup
git clone git://github.com/xbmc/xbmc.git

The 3lines which are part or the ./gcs.sh upgrade portion git clone git://github.com/xbmc/xbmc.git creates the xbmc dir inside the previously created /home/setup

But yea, whatever works for you Wink

uNi
(This post was last modified: 2013-04-17 21:48 by uNiversal.)
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #39
Almost there Smile

Got the remote working, but now HDMI sound is giving me some trouble. Following the link in your sig.. crossing fingers again. Wink
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #40
good.
find quote
scdo Offline
Junior Member
Posts: 11
Joined: Feb 2012
Reputation: 0
Post: #41
When I try this script I get...

sudo: unable to execute ./gcs.sh: No such file or directory

Are there some dependencies I must install first?

Update: I was able to get the script to run by ensuring the file is not saved as MS-DOS type in nano. However, it still doesn't work correctly...


Code:
scott@XBMCLive:~$ sudo ./gcs.sh upgrade
xbmc-live stop/waiting
stop: Unknown job: xbmc
Hit http://archive.ubuntu.com lucid Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://archive.ubuntu.com lucid-backports Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-backports/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-backports/universe Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-backports/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-updates Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com lucid-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Hit http://www.lonelycoder.com hts Release.gpg
Ign http://www.lonelycoder.com/debian/ hts/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-backports Release
Hit http://security.ubuntu.com lucid-security Release
Hit http://security.ubuntu.com lucid-updates Release
Hit http://www.lonelycoder.com hts Release
Hit http://archive.ubuntu.com lucid-updates Release
Ign http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-backports/main Packages
Hit http://archive.ubuntu.com lucid-backports/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Packages
Ign http://www.lonelycoder.com hts/main Packages
Hit http://ppa.launchpad.net lucid Release
Hit http://archive.ubuntu.com lucid-backports/universe Packages
Hit http://archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-updates/main Packages
Hit http://archive.ubuntu.com lucid-updates/main Packages
Hit http://archive.ubuntu.com lucid-updates/restricted Packages
Hit http://archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://www.lonelycoder.com hts/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://security.ubuntu.com lucid-updates/restricted Packages
Hit http://security.ubuntu.com lucid-updates/universe Packages
Hit http://security.ubuntu.com lucid-updates/multiverse Packages
Hit http://www.lonelycoder.com hts/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
python-software-properties is already the newest version.
Package autopoint is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package autopoint has no installation candidate
mkdir: cannot create directory `/home/setup': File exists
fatal: destination path 'xbmc' already exists and is not an empty directory.
make: Entering directory `/home/setup/xbmc/lib/libnfs'
rm -rf libnfs-1.3.0
tar xf ./libnfs-1.3.0.tar.gz
echo libnfs-1.3.0 > .gitignore
cd libnfs-1.3.0;./bootstrap;./configure CFLAGS=-D_FILE_OFFSET_BITS=64 --prefix=/usr
./bootstrap: line 3: autoreconf: command not found
/bin/sh: ./configure: not found
make: *** [libnfs-1.3.0] Error 127
make: Leaving directory `/home/setup/xbmc/lib/libnfs'
autoreconf -vif .
make: autoreconf: Command not found
make: *** [configure] Error 127
Warning: No doxygen installed. The Api will not have any docstrings.
mkdir -p xbmc/interfaces/python/generated/doxygenxml
Swig not found, it will be used if found after configure.
This is not necessarily an error.
make: *** [swig-not-found] Error 1
xbmc-live start/running, process 1814
start: Unknown job: xbmc
(This post was last modified: 2013-05-09 07:27 by scdo.)
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #42
It wont work in Lucid. You will need to install boost 1.40 and other stuff which I cant remember anymore. Because XBMC dependencies depend on library versions which are newer than the ones provided in Lucid.

Package autopoint is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package autopoint has no installation candidate

I wont be just one library, you will need Ubuntu 12.04 or upgrade the dependencies versions which is a will mess your system for sure.

uNi
(This post was last modified: 2013-05-09 14:15 by uNiversal.)
find quote
scdo Offline
Junior Member
Posts: 11
Joined: Feb 2012
Reputation: 0
Post: #43
So is there no simple way to install this on top of Dharma?
find quote
uNiversal Offline
Out of Memory
Posts: 5,617
Joined: Oct 2012
Reputation: 138
Location: Binary pulsar
Post: #44
Theres some thread with instructions on how to from dharma somewhere, you would have to go look

uNi
find quote
sleky Offline
Junior Member
Posts: 3
Joined: May 2011
Reputation: 0
Post: #45
I'm installing xbmc from source onto Debian (yea... I know now... LOL) I must say, your post helped me sooo much find the missing libraries. I honestly can attribute getting it installed thanks to you! Um... TY TY TY TY TYTY!!!! Here's a virtual beer for you! Big Grin
find quote