Archive:Compile Kodi on openSUSE: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Openelec.tv
No edit summary
 
(39 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<div class="messagebox merge">[[Image:Merge-arrow.gif|left]] It has been suggested that this article or section be merged into ''[[:{{NAMESPACE}}HOW-TO compile XBMC for Linux from source code]]''. ([[{{{2|:{{NAMESPACE}} talk:HOW-TO compile XBMC for Linux on openSUSE Linux}}}|Discuss]])</div>
{{mininav|[[Development]]}}
{{redv|Warning:|This page is '''deprecated'''.<br />Starting with Kodi v18 "Leia", Kodi's build guides are kept '''[https://github.com/xbmc/xbmc/blob/master/docs/README.md alongside the code]''', where it is much easier to keep them up-to-date with current code.}}


{{GoToParent|Parent=Installing XBMC for Linux}}
{{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):
[[Category:How-to]]
 
[[Category:Linux]]
*openSUSE-11.2-Oss (this is already enabled in a standard installation)
[[Category:Compiling]]
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:
 
<source lang=bash>$ sudo zypper in XBMC</source>
'''NOTE:''' XBMC 9.11 is now in the Packman repository, however, the Packman version did not work for me.
 
===Installation from Source Code===
 
====Getting the source code====
The first time:
 
<source lang=bash>$ sudo zypper in subversion
$ cd $HOME
$ mkdir xbmc
$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/9.11_Camelot/ xbmc/</source>
(For the latest stable release)
<source lang=bash>$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/Camelot_rc1/ xbmc/</source>
(For the RC1 from the current release - note: This is the only version that works for me)
<source lang=bash>$ svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ xbmc/</source>
(For the latest development version
 
 
 
In order to update the source code (and clean old make files):<br>
<source lang=bash>$ cd $HOME/xbmc
$ svn up
$ make clean</source>
 
====Install All Building Dependencies====
 
Type that in a terminal (you may want to copy and paste)
 
<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
$ 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
$ sudo zypper in libtool libsamplerate-devel libfaad-devel flac-devel libsmbclient-devel libtiff-devel enca-devel</source>
 
====Compile Source====
To compile respecting openSUSE Filesystem structure please do the following:
 
=====32bit (i586)=====
<source lang=bash>$ cd $HOME/xbmc
$ ./bootstrap
$ ./configure --enable-mid --disable-debug --disable-pulse --prefix=/usr
$ make
$ sudo make install</source>
 
If you receive this error during configure:
 
<source lang=bash>~/xbmc/xbmc/lib/libass ~/xbmc
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
~/xbmc
configure: error: Submodule xbmc/lib/libass failed to configure</source>
 
You can try this: (quick solution is: use external libass and use option --enable-external-libass with configure)
 
<source lang=bash>$ sudo zypper in libass-devel
$ ./configure --enable-external-libass --enable-mid --disable-debug --disable-pulse --prefix=/usr</source>
 
 
=====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:
 
<source lang=bash>$ 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</source>
 
==Run It!==
 
Now Open a shell and type <source lang=bash>xbmc</source> to launch it.
 
'''Notice:''' on system without CD/DVD device XBMC hang with 100% CPU on start (before GUI): error in <=libcdio-0.81-2
.. libcdio10-0.81-8.1.i586.rpm from OBS multimedia:libs/openSUSE_11.2 - same situation, hanged ..
 
Continue with [[Media_Sources|How to Add Content (Media Sources)]] to your XBMC and/or [[General_Usage|General Usage tips]].
 
Have fun
[http://developer.novell.com/wiki/index.php/User:Anubisg1 Anubisg1]
 
[[category: how to]]
[[category: linux]]

Latest revision as of 10:47, 19 May 2020

Home icon grey.png   ▶ Development ▶ Compile Kodi on openSUSE
Warning: This page is deprecated.
Starting with Kodi v18 "Leia", Kodi's build guides are kept alongside the code, where it is much easier to keep them up-to-date with current code.