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

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mikebzh44 Offline
Posting Freak
Posts: 1,751
Joined: Nov 2011
Reputation: 47
Location: Nantes - France
Post: #16
Thanks.

Yes, as I develop some mod or script, I need to test it under Eden and Frodo and under different OS.

For windows, it's very easy with portable mode.

Too bad that linux did not provide such a mode.

I will try compile Frodo with your script with --prefix=/usr/local

And I think I will make an other script to start XBMC Eden or Frodo (depending on parameter) and copy/rename userdata folder.

Sorry for my english, but, you know, I'm French so ...

find quote
ab5031 Offline
Junior Member
Posts: 4
Joined: Dec 2012
Reputation: 0
Post: #17
Thanks for the great job. It's working for me. I upgraded ASROCK ION-3D 525 + Ubuntu 10.10 + XBMC from ppa to XBMC 12.0 RC1 . Only one problem. XBMC did not autostart. I insert /etc/init.d script (from here: http://wiki.xbmc.org/index.php?title=HOW..._for_Linux) but when it start xbmc could not find any sound device. But when I manual start script by command from keyboard (sudo /etc/init.d/xbmc start) everything working fine. Any idea to fix this?
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #18
I dont get any result on that link you posted to wiki, but I would presume its a old script. Try this:

xbmc autostart via upstart/xinit http://forum.xbmc.org/showthread.php?tid...pid1225202

If your page you followed was http://wiki.xbmc.org/index.php?title=HOW..._for_Linux you need to undo all the things you did before using new one That is way unnecessary way to autostart xbmc anyway and you probbably made a mistake somewhere or those are wrong, I wouldn't know either way since I use what I pointed you towards.

uNi
(This post was last modified: 2012-12-19 16:07 by uNiversal.)
find quote
ab5031 Offline
Junior Member
Posts: 4
Joined: Dec 2012
Reputation: 0
Post: #19
Many thanks for so quick reply.
Yes - it's working. again BUT - in this case not working "power-off system" only "exit", "suspend' and 'hibernate" were appear. This happen also if I indicate user: RUN_AS=root (not xbmc) in wiki Init Script. Wiki script is better for me due to all previouse XBMC settings stay in forse in this case.
Also simlink to xbmc-live present in /etc/init.d. May be this is a problem?
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #20
No idea xbmc-live is no longer used and I dont use it anymore, Everything works for me with what I use. Including hibernate suspend shutdown etc. etc.

There is no need in any scenario to run as root, so I have no idea what it is that you are trying to do, but Im sure you cant be doing it properly if you have so many problems.

In the link I posted it includes proper user groups/permission for the user running xbmc and this is needed for proper operation of XBMC.

Code:
sudo usermod --group adm,sudo,cdrom,audio,video,plugdev,fuse xbmc
sudo adduser xbmc users

Where xbmc above is the user running xbmc, in my case the user is called xbmc for both simplicity and because the HTPC is only running XBMC.

To have proper xbmc power functions you also need in addition.

make a custom-actions.pkla in /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla

Code:
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.power.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

Given that I dont think you installed and configured your system properly my suggestion is to use this

Minimal Ubuntu install + XBMC -Script-

And then remove xbmc and compile ontop, which is basically what you need to do.

Or continue banging your head.

uNi
(This post was last modified: 2012-12-19 20:51 by uNiversal.)
find quote
ab5031 Offline
Junior Member
Posts: 4
Joined: Dec 2012
Reputation: 0
Post: #21
Thanks again for your reply. Yes I will follow your advice and install Ubuntu minimal + XBMC. Just last question - is it any way to transfer XBMC setting to the new installation?
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #22
You can backup your userdata folder.

http://wiki.xbmc.org/index.php?title=userdata

uNi
find quote
ab5031 Offline
Junior Member
Posts: 4
Joined: Dec 2012
Reputation: 0
Post: #23
Hello again!

I solved my previouse issue were XBMC could not find audo device. I just reinstall alsa-utils by apt-get. So now everything working perfect. Also I forgot indicate that I using NVIDIA provided (from here) video driver which give as for me better picture and libbluray I installed from git (from here)

Thanks again for script

Regards, Alex
(This post was last modified: 2012-12-21 22:00 by ab5031.)
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #24
Glad you solved your problem FYI

Nvidia drivers should be from x-swat ppa https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

And libbruray you just add --enable-libbluray to the ./configure options in the script (its on the main post all the useful ./configure options, there is absolutely no need to compile it from videolan all dependencies are already installed via script.

uNi
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #25
Updated to work with xbmcbuntu

uNi
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #26
God this thread is so popular I need my own subforums just fro this.

uNi
find quote
tesona1977 Offline
Member
Posts: 91
Joined: Dec 2012
Reputation: 0
Post: #27
hey uNiversal...

what about a to wrap this up in a "real" debian package?

all the dependencies goes into the control file...all the makes goes into the rules file...and thats it.

reproducable...clean...and a good way to hand your own xbmc version to a friend. and its also pretty easy and clean to uninstall all this stuff if you need to.

EDIT:

something i forgot. you can use git-buildpackage to automatically fetch git and built the package....very smart....isnt it Wink

http://packages.debian.org/squeeze/git-buildpackage

"I use the coolest mediaplayer in the world....with the crappiest name ever"
(This post was last modified: 2013-04-13 04:53 by tesona1977.)
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #28
Feel free to do it and post it. Wink

uNi
find quote
Dashiva Offline
Junior Member
Posts: 7
Joined: Apr 2013
Reputation: 0
Post: #29
Something bad happened during upgrade. Started with a fresh install from http://forum.xbmc.org/showthread.php?tid=141369 post 1. After that i followed the guide here in post 1.
Everything starts ok, but after a while it halts with the following error message.
checking for main in -ljpeg... yes
checking for main in -ltiff... no
configure: error: Could not find a required library. Please see the README for your platform.
start: Unknown job: xbmc-live

I'm lost.... how to proceed?
The system I'm using is an Asrock 330HT with 64Gb ssd and 4 Gb RAM

Thanks in advance!

Regards
/Dashiva
find quote
uNiversal Offline
Out of Memory
Posts: 5,266
Joined: Oct 2012
Reputation: 132
Location: Binary pulsar
Post: #30
ah sorry about that its missing libtiff-dev which was added recently but somehow I missed it.

do:

Code:
sudo apt-get install libtiff-dev libtiff5-dev libtiff4-dev -y
and run script
Code:
sudo ./gcs.sh update
that last libtiff5-dev or libtiff4-dev maybe because its named different in you version of ubuntu or whatever variant your using though libtiff-dev should be enough.

Main post will be updated shortly.

--**edit.

Done its should be all right now

Code:
wget http://pastebin.com/raw.php?i=jMYunGNE -O ~/gcs.sh is the latest.

note, you need to have run the previous script but have edited out the ppa so that xbmc doesnt get installed from ppa, however this script will overrite those files, I removed the ppa from the minimal install script and when it came to xbmc used this instead.
The point is, you need to run the minimal ubuntu install script because at least the autostart of xbmc (via xinit in my case) and other tweaks will be done that this doesnt do.

uNi
(This post was last modified: 2013-04-17 12:03 by uNiversal.)
find quote