Blog Marcina Bojko

Linux,Windows,serwer, i tak dalej ;)

XBMC a openSuSE 11.1

XBMC

Tak. Wiem.

Jest w repozytorium Packmana, można sobie dodać, odświeżyć i zainstalować edycję binarki dla openSUSE. Fajnie, problem polega na tym, że jest to prehistoryczna edycja 8.10 Atlantis z października 2008 roku.

Dla projektu tej klasy to prawie eon – nie mówiąc o tym że edycja ta do najstabilniejszych nie należy. Warto więc zastanowić się nad kompilacją ze źródeł svn

Co robimy?

Zaczynamy od ściagnięcia źródeł z SVN’a
# zypper install subversion
# cd /home/docent
# svn checkout https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC

Dociagamy wszystkie brakujące pakiety – jezeli mamy już jakiś zainstalowany, nie przejmować się.

# zypper install make cmake autoconf automake gcc gcc-c++ boost-devel python-devel python-sqlite2 dbus-1-devel gperf gcc-fortran unzip zip unrar nasm
# zypper install SDL-devel SDL_image-devel SDL_mixer-devel jpegint-devel audiofile-devel fontconfig-devel freetype2-devel fribidi-devel glibc-devel hal-devel
# zypper install libbz2-devel libstdc++-devel libexpat-devel glib2-devel libjasper-devel libjpeg-devel mad-devel libmikmod-devel libmms-devel libogg-devel
# zypper install libopenssl-devel sqlite3-devel libstdc++-devel libpng-devel libtre-devel e2fsprogs-devel libvorbis-devel lzo-devel pcre-devel libenca-devel
# zypper install 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

Na wszelki wypadek zaktualizować system:
# zypper refresh
# zypper update
Dla posiadaczy 32-bitowego systemu sprawa jest prosta:
# cd /home/docent/linuxport/XBMC
# ./configure –enable-halmount –disable-debug –prefix=/usr
# make
# sudo make install
Czysto sucho i pewnie 😉 Posiadacze wersji 64-bitowej muszą nieco pokombinować.
# cd /home/docent/linuxport/XBMC
# CFLAGS=”-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include”
# export CFLAGS
# ./configure –enable-halmount –disable-debug –prefix=/usr –libdir=/lib64
# CFLAGS=”-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include” make
# make install
Jeżeli napotkamy błąd:
In file included from /usr/include/dbus-1.0/dbus/dbus-address.h:30,
from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-types.h:33: error: ‚dbus_uint32_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-types.h:35: error: ‚dbus_uint32_t’ does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus-address.h:31,
from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-errors.h:74: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-errors.h:76: error: ‚dbus_bool_t’ does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-address.h:43: error: ‚dbus_bool_t’ does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus-connection.h:32,
from /usr/include/dbus-1.0/dbus/dbus-bus.h:30,
from /usr/include/dbus-1.0/dbus/dbus.h:31,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-message.h:55: error: ‚dbus_uint32_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:91: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:94: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:96: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:99: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:101: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:104: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:106: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:109: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:112: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:117: error: ‚dbus_bool_t’ has not been declared
/usr/include/dbus-1.0/dbus/dbus-message.h:118: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:119: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:122: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:125: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:127: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:129: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:131: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:133: error: ‚dbus_uint32_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:134: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:136: error: ‚dbus_uint32_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:139: error: ‚dbus_bool_t’ has not been declared
/usr/include/dbus-1.0/dbus/dbus-message.h:140: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:142: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:145: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:148: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:151: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:155: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:161: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:163: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:164: error: ‚dbus_bool_t’ does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:185: error: ‚dbus_bool_t’ does not name a type
to przed kompilacją musimy dorobić link symboliczny:

ln -s /usr/lib64/dbus-1.0/include/dbus/dbus-arch-deps.h /usr/include/dbus-1.0/dbus

Uruchamiamy – najprościej wykonac aktywator z linkiem prowadzącym do xbmc.bin lub za pomocą polecenia
# xbmc

Voila 😉

Poradnik w dużej mierze skompilowany z WIKI i forum XBMC: http://xbmc.org/wiki/?title=HOW_TO_install_XBMC_on_openSUSE_Linux

Written by marcinbojko

Kwiecień 29, 2009 @ 14:08

Napisane w Bez kategorii

Tagged with , ,

%d bloggers like this: