Installing XBMC in Fedora 13/CentOS/Red Hat Enterprise

Make sure you have the rpm-fusion repositories enabled. You can find how to do this over here.

Install the following packages

yum install SDL* glew glew-devel libmad-devel tre tre-devel libogg libogg-devel libvorbis libvorbis-devel boost  boost-devel bzip2-devel bzip2-libs fribidi* lzo lzo-devel mysql-libs mysql-devel jasper jasper-devel faac faac-devel  enca enca-devel hal hal-devel hal-libs cmake gperf nasm libXmu-devel fontconfig-devel freetype-devel libXinerama-devel  pcre-devel gcc-c++ sqlite-devel curl-devel mysql-devel libcdio-devel libmms-devel faad2-devel flac-devel libsmbclient-devel  libXtst-devel libsamplerate-devel libtiff-devel pulseaudio-libs-devel avahi-devel wavpack-devel libmpeg2-devel libtool  libmicrohttpd-devel libmodplug-devel redhat-lsb expat-devel subversion gettext gettext-libs gettext-devel

For NVIDIA Graphic cards also install libvdpau-devel.i686

sudo yum install libvdpau-devel

Get the xbmc repository

svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ XBMC

Now configure the application

sudo ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so
cd XBMC/
./bootstrap
./configure
make

Install XBMC

make install

Start XBMC by typing

xbmc

in a terminal. Of course you can create a shortcut for this.

Sometimes SELinux can prevent XBMC from starting. I always disable it, but you can run the following commands (as root) to let SELinux load the files.

 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so'
 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avformat-52-i486-linux.so'

Comments

  1. drctwi says:

    I was using the xbmc from rpmfusion but having problems with video playback. Uninstalled it, followed your steps and guess what ?
    It worked like a charm !
    Big thanks for this how to.

  2. Sergey says:

    On Fedora 14 it’s necessary to add
    gettext gettext-libs and gettext-devel
    to the first yum install command.
    ./bootstrap fails without these libs

  3. Thnx for the update. I’ve updated the post

  4. Michael says:

    Hi,

    I can’t compile XBMC under Centos5, I have scoured google for solutions and I’m not getting anywhere. I have followed all your steps and face the following exceptions:

    1. installing packages works, except for hal-libs, mysql-libs, gettext-libs. I assume the libs are part of the -devel packages (which install fine) because I can’t find these packages anywhere.

    2. when I run ./bootstrap I get this output:

    [root@localhost XBMC]# ./bootstrap
    autoreconf: Entering directory `.’
    autoreconf: configure.in: not using Gettext
    autoreconf: running: aclocal –force
    autoreconf: configure.in: tracing
    autoreconf: running: libtoolize –copy –force
    Putting files in AC_CONFIG_AUX_DIR, `build-aux’.
    autoreconf: running: /usr/bin/autoconf –force
    configure.in:28: error: possibly undefined macro: AC_MSG_ERROR
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    configure.in:36: error: possibly undefined macro: AC_SUBST
    configure.in:535: error: possibly undefined macro: PKG_CHECK_MODULES
    configure.in:552: error: possibly undefined macro: AC_DEFINE
    configure.in:581: error: possibly undefined macro: AS_CASE
    configure.in:1088: error: possibly undefined macro: AC_TYPE_INT8_T
    configure.in:1089: error: possibly undefined macro: AC_TYPE_INT16_T
    configure.in:1090: error: possibly undefined macro: AC_TYPE_INT32_T
    configure.in:1091: error: possibly undefined macro: AC_TYPE_INT64_T
    configure.in:1097: error: possibly undefined macro: AC_TYPE_SSIZE_T
    configure.in:1101: error: possibly undefined macro: AC_TYPE_UINT8_T
    configure.in:1102: error: possibly undefined macro: AC_TYPE_UINT16_T
    configure.in:1103: error: possibly undefined macro: AC_TYPE_UINT32_T
    configure.in:1104: error: possibly undefined macro: AC_TYPE_UINT64_T
    autoreconf: /usr/bin/autoconf failed with exit status: 1

    I would appreciate any kind of clue that would help me resolve this :-/

  5. gueug says:

    hi,

    I’ve done the whole under fedora 14 32 bits and u won’t believe here it runs

    [root@localhost XBMC]# sudo yum install gettext gettext-libs
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    Setting up Install Process
    Package gettext-0.18.1.1-4.fc14.i686 already installed and latest version
    Package gettext-libs-0.18.1.1-4.fc14.i686 already installed and latest version
    Nothing to do
    [root@localhost XBMC]# sudo yum install gettext-devel
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    Setting up Install Process
    Package gettext-devel-0.18.1.1-4.fc14.i686 already installed and latest version
    Nothing to do
    [root@localhost XBMC]# ./bootstrap
    bash: ./bootstrap: No such file or directory
    [root@localhost XBMC]# ./configure
    bash: ./configure: No such file or directory

    thanks

Trackbacks

  1. [...] 5.5 distribution to setup ah linux media server with XMBC. To do this I followed the steps on this blog when I want to execute the bootstrap script i receive following error: [root@SRV XBMC]# [...]

Speak Your Mind

*