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

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Sun, 2008-10-19 18:48. :: Fedora | Desktop

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

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
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 stef@via.ecp.fr}$>$
?

... 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 stef@via.ecp.fr}$>$ - replace the é in the name with a normal e so that it looks as follows:

[...]
\item[Author:]Stephane Borel $<${\tt stef@via.ecp.fr}$>$
[...]

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.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Kikyz1313 (not registered) on Tue, 2009-07-28 14:52.

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?

Submitted by Anonymous (not registered) on Sat, 2009-06-27 04:00.

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? 

 

Submitted by Anonymous (not registered) on Wed, 2009-07-29 03:12.

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?

Submitted by Jim Shank (not registered) on Fri, 2009-05-15 01:08.

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

yum install libsamplerate-devel libcdio-devel

resolved the missing dependency.

Submitted by justiz (not registered) on Thu, 2009-05-14 15:47.

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!

Submitted by Anonymous (not registered) on Tue, 2009-03-24 05:33.

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!

Submitted by Anonymous (not registered) on Wed, 2009-04-22 11:54.
yum install libmad-devel
Submitted by BrotherMan38 (not registered) on Sat, 2009-01-17 19:29.

Worked great, I built it on fedora 10.

Thanks alot.

Submitted by Ticker (not registered) on Mon, 2009-02-09 08:12.

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


 

Submitted by toan (not registered) on Wed, 2008-10-22 10:11.

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?

Submitted by Gman (not registered) on Mon, 2009-01-12 03:27.
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.