Archive:Compile Kodi on openSUSE: Difference between revisions
>Anubisg1 |
>Anubisg1 |
||
Line 3: | Line 3: | ||
==Prerequisites== | ==Prerequisites== | ||
In order to successful install XBMC, even by source or by rpms you need the following Repositories to be added in Yast: | In order to successful install XBMC, even by source or by rpms you need the following Repositories to be added in Yast (change "11.0" with "11.1" to have openSUSE 11.1 repositories): | ||
*OSS | *OSS |
Revision as of 21:42, 8 May 2009
Template:GoToParent Template:Current event
Prerequisites
In order to successful install XBMC, even by source or by rpms you need the following Repositories to be added in Yast (change "11.0" with "11.1" to have openSUSE 11.1 repositories):
- OSS
http://download.opensuse.org/distribution/11.0/repo/oss/
- Packman
http://ftp.skynet.be/pub/packman/suse/11.0/
You can easly add them by YaST (package manager) --> repositories --> repositories manager --> add --> community repositories""
Installation
Installation with RPMs
Use YaST or zypper to install XBMC:
$ sudo zypper in XBMC
Installation from Source Code
Getting the source code
For the first time:
$ sudo zypper in subversion
$ cd $HOME
$ svn checkout https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC
In order to update the source code (and clean old make files):
$ cd $HOME/XBMC
$ svn up
$ make clean
Install All Building Dependencies
Type that in a terminal (you may want to copy and paste)
$ sudo zypper in make cmake autoconf automake gcc gcc-c++ boost-devel python-devel python-sqlite2 dbus-1-devel gperf gcc-fortran unzip zip unrar nasm libavahi-devel
$ sudo zypper in SDL-devel SDL_image-devel SDL_mixer-devel jpegint-devel audiofile-devel fontconfig-devel freetype2-devel fribidi-devel glibc-devel hal-devel
$ sudo zypper in libbz2-devel libstdc++-devel libexpat-devel glib2-devel libjasper-devel libjpeg-devel mad-devel libmikmod-devel libmms-devel libogg-devel nvidia-vdpau-devel
$ sudo zypper in libopenssl-devel sqlite3-devel libstdc++-devel libpng-devel libtre-devel e2fsprogs-devel libvorbis-devel lzo-devel pcre-devel libenca-devel libpulse-devel
$ sudo zypper in libfaac-devel ccache xorg-x11-devel Mesa-devel dbus-1-devel glew-devel alsa-devel libmysqlclient-devel libcurl-devel zlib-devel xmms-devel ftgl-devel libcdio-devel
Compile Source
To Compile respecting openSUSE Filesystem structure please do the following:
32bit (i586)
$ cd $HOME/XBMC
$ ./configure --enable-mid --disable-debug --prefix=/usr
$ make
$ sudo make install
64bit (x86_64)
x86_64 users need to export CFLAGS and apply a patch because a non standard libdir ( http://forum.xbmc.org/showthread.php?t=34527 ) on ubuntu (the only one supported)
create a text file called for example "missing-cflags.patch" a paste inside it the following lines:
than put it in your folder and type the following:
$ cd $HOME/XBMC
$ mv ../missing-cflags.patch .
$ patch -p1 < missing-cflags.patch
$ CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include"
$ export CFLAGS
$ ./configure --enable-mid --disable-debug --prefix=/usr
$ CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include" make
$ sudo make install
Run It!
Now Open a shell and type xbmc to launch it.
Have fun Anubisg1