Archive:Compile Kodi on openSUSE: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Monkeyman 67156
No edit summary
>Ripper17
(Updating installation instructions for openSUSE11.2 and Camelot Beta-1)
Line 5: Line 5:
==Prerequisites==
==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):
In order to successful install XBMC, even by source or by rpms you need the following Repositories to be added in Yast (change "11.2" with "11.1" or "11.0" to have openSUSE 11.1/11.0 repositories):


*OSS
*openSUSE-11.2-Oss (this is already enabled in a standard installation)
http://download.opensuse.org/distribution/11.0/repo/oss/
http://download.opensuse.org/distribution/11.2/repo/oss/


*Packman
*Packman Repository
http://ftp.skynet.be/pub/packman/suse/11.0/
http://ftp.skynet.be/pub/packman/suse/11.2/


You can easly add them by '''YaST (package manager) --> repositories --> repositories manager --> add --> community repositories""
You can easly add them by '''YaST (package manager) --> repositories --> repositories manager --> add --> community repositories'''


==Installation==
==Installation==
Line 20: Line 20:
Use YaST or zypper to install XBMC:
Use YaST or zypper to install XBMC:


<code><pre>$ sudo zypper in XBMC</pre></code>
<source lang=bash>$ sudo zypper in XBMC</source>
'''NOTE:''' XBMC is not yet (Nov-30th 2009) in the 11.2 Packman repository, so you will have to compile XBMC yourself on openSUSE 11.2.


===Installation from Source Code===
===Installation from Source Code===


====Getting the source code====
====Getting the source code====
For the first time:<br>
The first time:
<code>
 
<pre>$ sudo zypper in subversion
<source lang=bash>$ sudo zypper in subversion
$ cd $HOME
$ cd $HOME
$ svn checkout http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC</pre></code>
$ mkdir xbmc
$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ xbmc/</source>
(For the latest stable release)
 
''' OR '''
<source lang=bash>$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/Camelot-beta1/ xbmc/</source>
(For the current Camelot Beta-1 (2009-11))


In order to update the source code (and clean old make files):<br>
In order to update the source code (and clean old make files):<br>
<code>
<source lang=bash>$ cd $HOME/xbmc
<pre>$ cd $HOME/XBMC
$ svn up
$ svn up
$ make clean</pre>
$ make clean</source>
</code>


====Install All Building Dependencies====
====Install All Building Dependencies====
Line 42: Line 47:
Type that in a terminal (you may want to copy and paste)
Type that in a terminal (you may want to copy and paste)


<code>
<source lang=bash>$ 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
<pre>$ 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 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 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 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</pre></code>
$ 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</source>
 
For the current Camelot Beta-1 (2009-11) you will also need:
 
<source lang=bash>$ sudo zypper in libtool libsamplerate-devel libfaad-devel flac-devel libsmbclient-devel libtiff-devel enca-devel</source>


====Compile Source====
====Compile Source====
To Compile respecting openSUSE Filesystem structure please do the following:
To compile respecting openSUSE Filesystem structure please do the following:


=====32bit (i586)=====
=====32bit (i586)=====
<code>
<source lang=bash>$ cd $HOME/xbmc
<pre>$ cd $HOME/XBMC
$ ./bootstrap
$ ./bootstrap
$ ./configure --enable-mid --disable-debug --disable-pulse --prefix=/usr
$ ./configure --enable-mid --disable-debug --disable-pulse --prefix=/usr
$ make
$ make
$ sudo make install</pre>
$ sudo make install</source>
</code>


=====64bit (x86_64)=====
=====64bit (x86_64)=====
Line 72: Line 78:
than put it in your folder and type the following:
than put it in your folder and type the following:


<code>
<source lang=bash>$ cd $HOME/xbmc
<pre>$ cd $HOME/XBMC
$ mv ../missing-cflags.patch .
$ mv ../missing-cflags.patch .
$ patch -p1 < missing-cflags.patch
$ patch -p1 < missing-cflags.patch
Line 80: Line 85:
$ ./configure --enable-mid --disable-debug --disable-pulse --prefix=/usr
$ ./configure --enable-mid --disable-debug --disable-pulse --prefix=/usr
$ CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include" make
$ CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include" make
$ sudo make install</pre>
$ sudo make install</source>
</code>


==Run It!==
==Run It!==


Now Open a shell and type '''''xbmc''''' to launch it.
Now Open a shell and type <source lang=bash>xbmc</source> to launch it.
 
Continue with [[Media_Sources|How to Add Content (Media Sources)]] to your XBMC and/or [[General_Usage|General Usage tips]].


Have fun
Have fun

Revision as of 17:45, 30 November 2009

Merge-arrow.gif
It has been suggested that this article or section be merged into ArchiveHOW-TO compile XBMC for Linux from source code. (Discuss)

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.2" with "11.1" or "11.0" to have openSUSE 11.1/11.0 repositories):

  • openSUSE-11.2-Oss (this is already enabled in a standard installation)

http://download.opensuse.org/distribution/11.2/repo/oss/

  • Packman Repository

http://ftp.skynet.be/pub/packman/suse/11.2/

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

NOTE: XBMC is not yet (Nov-30th 2009) in the 11.2 Packman repository, so you will have to compile XBMC yourself on openSUSE 11.2.

Installation from Source Code

Getting the source code

The first time:

$ sudo zypper in subversion
$ cd $HOME
$ mkdir xbmc
$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ xbmc/

(For the latest stable release)

OR

$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/Camelot-beta1/ xbmc/

(For the current Camelot Beta-1 (2009-11))

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

For the current Camelot Beta-1 (2009-11) you will also need:

$ sudo zypper in libtool libsamplerate-devel libfaad-devel flac-devel libsmbclient-devel libtiff-devel enca-devel

Compile Source

To compile respecting openSUSE Filesystem structure please do the following:

32bit (i586)
$ cd $HOME/xbmc
$ ./bootstrap
$ ./configure --enable-mid --disable-debug --disable-pulse --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:

http://pastebin.com/f22b29f07

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 --disable-pulse --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.

Continue with How to Add Content (Media Sources) to your XBMC and/or General Usage tips.

Have fun Anubisg1