Installing Xbox Media Center (XBMC) On Fedora 9 (i386)

Version 1.0
Author: Falko Timme
Last edited 10/06/2008

The Xbox Media Center (XBMC) is a media center application for Linux, Mac, and Windows that allows you to manage/watch/listen to/view your videos, music, and pictures. It has a nice interface, can be controlled from the desktop or a remote control or via its built-in web interface, and it can be extended by custom scripts. This guide shows how you can install XBMC on a Fedora 9 desktop (i386).

I do not issue any guarantee that this will work for you!

 

1 Installing XBMC

First, open a terminal (Applications > System Tools > Terminal):

Go to your home directory and become root:

cd ~
su

There's no pre-built XBMC package for Fedora 9, so we must build it ourselves. Before we can do so, we need to install a few prerequisites:

yum groupinstall 'Development Tools'

yum groupinstall 'Development Libraries'

yum install subversion

Then we check out the XBMC sources:

svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/

Now we add the Livna repository to our system...

rpm -Uvh http://rpm.livna.org/livna-release-9.rpm

... and install some further prerequisites (the command goes in one line!):

yum install fribidi* libogg libogg-devel SDL* glew glew-devel libvorbis libvorbis-devel gperf libmad-devel tre tre-devel boost boost-devel bzip2-devel bzip2-libs curl-devel lzo lzo-devel libXinerama-devel mysql-libs mysql-devel freetype-devel jasper jasper-devel sqlite-devel faac faac-devel enca enca-devel hal hal-devel hal-libs cmake nasm libXmu-devel fontconfig-devel pcre-devel gcc-c++

ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so

Now we can start building XBMC:

cd linuxport/XBMC/
./configure

After the ./configure command has succeeded, type

make

... and be patient - this can take some time.

It is possible that make stops with an error. If you get the following error...

In file included from GUIButtonControl.cpp:26:
../xbmc/utils/CharsetConverter.h:31:39: error: fribidi/fribidi_char_sets.h: No such file or directory

... do this...

cd xbmc
ln -s lib/libfribidi/ fribidi
cd ..

... and run

make

again.

If you get the following error...

LaTeX Warning: Reference `dvdcss_8h' on page 1 undefined on input line 5.

(/usr/share/texmf/tex/latex/base/t1cmtt.fd) [1]) [2]
Chapter 2.
(./files.tex

LaTeX Warning: Reference `dvdcss_8h' on page 3 undefined on input line 3.

) [3] [4]
Chapter 3.
(./dvdcss_8h.tex [5]

! Package inputenc Error: Unicode char \u8:�ph not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.49 \item[Author:]St�ph
                        ane Borel $<${\tt [email protected]}$>$
?

... cancel the build process by pressing CTRL+C and open xbmc/cores/dvdplayer/Codecs/libDVDCSS/doc/latex/dvdcss_8h.tex:

gedit xbmc/cores/dvdplayer/Codecs/libDVDCSS/doc/latex/dvdcss_8h.tex

In line 49 you should find the string \item[Author:]Stéphane Borel $<${\tt [email protected]}$>$ - replace the é in the name with a normal e so that it looks as follows:

[...]
\item[Author:]Stephane Borel $<${\tt [email protected]}$>$
[...]

Then run

make

again.

If you get the following error...

In file included from tif_ojpeg.c:35:
/usr/include/jpeglib.h:1096:55: error: jpegint.h: No such file or directory

... do this...

cp xbmc/lib/cximage-6.0/jpeg/jpegint.h /usr/include/

... and run

make

again.

After the make command has succeeded, run

make install

Afterwards, exit the root shell...

exit

... and start XBMC:

xbmc

If you don't want to start XBMC from the command line, then the next chapter is for you.

Share this page:

11 Comment(s)

Add comment

Comments

From: justiz at: 2009-05-14 14:47:34

On Fedora 10 (and possibly other Fedora & non-fedora distro's), I had to install an additional 2 packages to get the current XBMC version (9.04) to compile, libsamplerate-devel and libcdio-devel.

yum -y install libsamplerate-devel libcdio-devel

Hope that helps someone!

From: Jim Shank at: 2009-05-15 00:08:08

I got an error regarding samplerate.h. Finally found:

yum install libsamplerate-devel libcdio-devel

resolved the missing dependency.

From: Anonymous at: 2009-04-22 10:54:10

yum install libmad-devel

From: toan at: 2008-10-22 09:11:54

I unable to check out sourcode. svn: REPORT request failed on '/svnroot/xbmc/!svn/vcc/default' svn: REPORT of '/svnroot/xbmc/!svn/vcc/default': Could not read response body: Connection reset by peer (http://xbmc.svn.sourceforge.net) how can I resolve this?

From: Gman at: 2009-01-12 02:27:22

This happened to me as well since 4 months back. However, the problem is not on your side but on the server side. It could be a bandwidth problem or application error on the host. Anyway, try it again after some time and it would work. If I am not mistaken, I tried 4-5 times before it worked.

From: Anonymous at: 2009-03-24 04:33:50

Hi,

I am trying to install Boxee on Fedora 10, but when I tried ./configure, I got the following error. 

checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
configure: error: ERROR: Could not find a required library. Please see README.linux

Mad.h in the xmbc directory. Do I just need to specify where to find it?

[XBMC]# find . -name "mad.h" -print
./xbmc/cores/paplayer/MP3Codec/libmad-0.15.1b/msvc++/mad.h
./xbmc/cores/dvdplayer/DVDCodecs/Audio/libmad/mad.h
./xbmc/cores/dvdplayer/Codecs/libmad/msvc++/mad.h

Any help would be much appreciated.

 

Thank you!

From: BrotherMan38 at: 2009-01-17 18:29:28

Worked great, I built it on fedora 10.

Thanks alot.

From: Ticker at: 2009-02-09 07:12:00

I built it on fedora 10 too, but ran into some problems when doing below command:

yum install fribidi* libogg libogg-devel SDL* glew glew-devel libvorbis libvorbis-devel gperf libmad-devel tre tre-devel boost boost-devel bzip2-devel bzip2-libs curl-devel lzo lzo-devel libXinerama-devel mysql-libs mysql-devel freetype-devel jasper jasper-devel sqlite-devel faac faac-devel enca enca-devel hal hal-devel hal-libs cmake nasm libXmu-devel fontconfig-devel pcre-devel gcc-c++

The problem was that most packages had been moved from the Livna repository to RPM Fusion. So to enable access to the RPM Fusion repository, I did:

rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

After that I ran the yum command again and this time everything worked fine.

Thanx a lot for the great howto


 

From: Anonymous at: 2009-06-27 03:00:07

Everything goes smoothly until I run ./configure and then I get the error: 

"checking for samplerate.h... no
configure: error: Could not find a required library. Please see the README for your platform." 

Has anyone else encountered this? 

 

From: Anonymous at: 2009-07-29 02:12:00

I'm having the same problem. I Tried the install command gain.

    `yum install libmad`

     `yum install libmad-devel

 I then get the following error:

 Loaded plugins: refresh-packagekit               
Setting up Install Process                       
Parsing package install arguments                
No package libmad-devel available.               
Nothing to do 

Does anyone know (in detail) how to correct this?

From: Kikyz1313 at: 2009-07-28 13:52:09

hi! i've downloaded the missing updates and it seemed to worked, after downloaded them  i re-type: cd linuxport/XBMC/
./configure and now the problem is:

checking for main in -lmms... no
configure: error: Could not find a required library. Please see the README for your platform.

 someone had a solution please?