Page 1 of 1
[SOLVED] Help building XBMC eden-pre

Posted:
Jan 25th, '12, 21:26
by zeke
Can anyone help me build XBMC 11.0?
I am trying to follow instructions here:
http://wiki.xbmc.org/index.php?title=HO ... ource_codeI have the current version from git.
$git pull <---returns 'Already up to date'
$make clean
make: *** No rule to make target `clean'. Stop.
Also,
$ ./bootstrap
./bootstrap: line 5: autoreconf: command not found
Re: Help building XBMC eden-pre

Posted:
Jan 25th, '12, 22:06
by martinw
zeke wrote:Can anyone help me build XBMC 11.0?
I am trying to follow instructions here:
http://wiki.xbmc.org/index.php?title=HO ... ource_codeI have the current version from git.
$git pull <---returns 'Already up to date'
$make clean
make: *** No rule to make target `clean'. Stop.
These are the instructions for updating. You are presumably doing a fresh install.
Also,
$ ./bootstrap
./bootstrap: line 5: autoreconf: command not found
You need to install the autoconf package.
- Code: Select all
urpmi autoconf
(as root) should fix this. You may find you need to install other packages - urpmf helps find the package name if you only know the missing file name.
Re: Help building XBMC eden-pre

Posted:
Jan 25th, '12, 22:08
by doktor5000
You missed an important step, installing all required dependencies:
http://wiki.xbmc.org/index.php?title=HO ... u_packagesThe easiest wqy to do this would be to download the src.frpm, f.ex. from
ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/cauldron/SRPMS/core/release/xbmc-10.1-1.pvr.4.mga2.src.rpmand then in a terminal change to the folder where you've downloaded it, and as root do
- Code: Select all
urpmi --buildrequires ./xbmc-10.1-1.pvr.4.mga2.src.rpm
Re: Help building XBMC eden-pre

Posted:
Jan 25th, '12, 22:23
by zeke
I already have 10.1 installed from the mageia repo, so I think this is in fact an upgrade?
Doktor, would using the link you provided work even though I am trying to upfgrade to 11.0, rather than 10.1?
Shouldn't I already have all of these packages (for 10.1) since I already have the 10.1 rpm installed and working?
Re: Help building XBMC eden-pre

Posted:
Jan 25th, '12, 23:19
by martinw
zeke wrote:I already have 10.1 installed from the mageia repo, so I think this is in fact an upgrade?
No - you haven't built from source before, so this is a first time build.
Shouldn't I already have all of these packages (for 10.1) since I already have the 10.1 rpm installed and working?
No - what you have installed is a pre-built (binary) package. You are now trying to build from source, which means you need to install all the tools required to build the package.
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 00:49
by zeke
OK, so far so good,
Still cant execute
$make clean
make: *** No rule to make target `clean'. Stop.
But I did get all the dependencies installed as well as autoconf and automake
and then I fail here:
$ ./bootstrap
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.in:439: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
I found in the wiki that a libtool error can be fixed by running autoreconf...but that fails:
$ autoreconf
configure.in:12: required file `build-aux/config.guess' not found
configure.in:12: `automake --add-missing' can install `config.guess'
configure.in:12: required file `build-aux/config.sub' not found
configure.in:12: `automake --add-missing' can install `config.sub'
configure.in:11: required file `build-aux/install-sh' not found
configure.in:11: `automake --add-missing' can install `install-sh'
configure.in:11: required file `build-aux/missing' not found
configure.in:11: `automake --add-missing' can install `missing'
autoreconf: automake failed with exit status: 1
So this is the advice from the wiki:
libtool issues
Libtool archives (*.la) contain a list of the used libraries, recursively. Default libtool specificies all those libraries explicitly, even for dynamic linking. This is fixed using a patch from debian.
However, usually software bundles their own libtool. One way to update it is to run "autoreconf" before configure. But it sometimes fail, so Mandriva has a script "fix-libtool-overlinking" called in %configure and %configure2_5x
I have nop idea what that even means....
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 15:03
by doktor5000
Try to run autoreconf -isfv, then ./bootstrap, then ./configure, and if that succeeds, continue with make.
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 15:51
by zeke
$ autoreconf -isfv
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.in:439: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 17:12
by doktor5000
Works fine here. Maybe you need to install libtool?
BTW: Would be nice if you could use Code-Tags, that's the Code-button above the forum editor.
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 17:59
by zeke
doktor5000 wrote:Works fine here. Maybe you need to install libtool?
BTW: Would be nice if you could use Code-Tags, that's the Code-button above the forum editor.
Ok, I will use the Code button from now on.
I did need to install libtool, and that got me to the ./configure step. But this is failing because of of a missing library:
the yaj library.
So I installed argyllcms-1.1.0-3.mga1.x86_64.rpm (and it's dependency, lib64icc2-2.12-1.1.mga1.x86_64.rpm) because it says it provides lib64yaj.so.0, but ./configure still fails with the same error. How do I get this library?
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 18:30
by doktor5000
lib64yaj.so.0 != lib64yajl.so which you'd need. You would need to rebuild yajl from cauldron, as f.ex.:
- Code: Select all
wget ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/cauldron/SRPMS/core/release/yajl-2.0.4-1.mga2.src.rpm <-- (as normal user)
urpmi --buildrequires yajl-2.0.4-1.mga2.src.rpm <-- (as root)
rpmbuild --rebuild yajl-2.0.4-1.mga2.src.rpm <-- (as normal user)
and then install the resulting packages, libyajl and libyajl-devel, they should be in /home/username/rpmbuild/RPMS/i586 (or x86_64)
Re: Help building XBMC eden-pre

Posted:
Jan 27th, '12, 20:56
by zeke
Once again, thank you so much!
Got it built with your help.
SOLVED!