XBMC on Gentoo
#1
I'm trying to get XBMC to work on my Gentoo distribution.

The first problem I encountered was related to libmms (mms_seek compile error). It was because of gentoo's libmms version (0.3) doesn't support mms_seek, so I was lucky to find the solution, which came thru updating to version 0.4 (http://forum.xbmc.org/showthread.php?p=162159 and http://bugs.gentoo.org/show_bug.cgi?id=203647).

After that I found another problem in NetworkLinux.cpp: IWEVGENIE, IWEVCUSTOM and IW_EV_POINT_OFF not declared in this scope. I found it has something to do with Wifi and since I don't use Wifi in this box I commented out those lines just to try if it worked.

So this way I was able to compile and produce the XboxMediaCenter executable.

But now I'm clueless on how to get xbmc-xrandr.c to compile. The compilation produced this output:

gcc -g -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lXrender -lX11
xbmc-xrandr.c:79: error: 'RR_HSyncPositive' no se declaró aquí (no en una función)
xbmc-xrandr.c:80: error: 'RR_HSyncNegative' no se declaró aquí (no en una función)
xbmc-xrandr.c:81: error: 'RR_VSyncPositive' no se declaró aquí (no en una función)
xbmc-xrandr.c:82: error: 'RR_VSyncNegative' no se declaró aquí (no en una función)
xbmc-xrandr.c:83: error: 'RR_Interlace' no se declaró aquí (no en una función)
xbmc-xrandr.c:84: error: 'RR_DoubleScan' no se declaró aquí (no en una función)
xbmc-xrandr.c:85: error: 'RR_CSync' no se declaró aquí (no en una función)
xbmc-xrandr.c:86: error: 'RR_CSyncPositive' no se declaró aquí (no en una función)
xbmc-xrandr.c:87: error: 'RR_CSyncNegative' no se declaró aquí (no en una función)
xbmc-xrandr.c:1467: error: expected ')' before '*' token
xbmc-xrandr.c:1480: error: expected ')' before '*' token
xbmc-xrandr.c: En la función 'pick_crtcs':
xbmc-xrandr.c:1549: error: 'output_t' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c:1549: error: (Cada identificador no declarado solamente se reporta una vez
xbmc-xrandr.c:1549: error: ara cada funcion en la que aparece.)
xbmc-xrandr.c:1549: error: 'output' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c:1549: error: operadores inválidos para el binario *
xbmc-xrandr.c:1554: error: 'outputs' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c:1554: error: 'const struct <anonymous>' no tiene un miembro llamado 'next'
xbmc-xrandr.c:1556: error: 'const struct <anonymous>' no tiene un miembro llamado 'changes'
xbmc-xrandr.c:1556: error: 'const struct <anonymous>' no tiene un miembro llamado 'mode_info'
xbmc-xrandr.c:1556: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1558: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1559: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1572: error: 'const struct <anonymous>' no tiene un miembro llamado 'next'
xbmc-xrandr.c:1573: error: 'const struct <anonymous>' no tiene un miembro llamado 'current_crtc_info'
xbmc-xrandr.c:1573: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1575: error: 'const struct <anonymous>' no tiene un miembro llamado 'next'
xbmc-xrandr.c:1577: error: 'const struct <anonymous>' no tiene un miembro llamado 'mode_info'
xbmc-xrandr.c:1577: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1578: error: 'const struct <anonymous>' no tiene un miembro llamado 'output'
xbmc-xrandr.c:1578: error: petición del miembro 'string' en algo que no es una estructura o unión
xbmc-xrandr.c:1579: error: 'const struct <anonymous>' no tiene un miembro llamado 'changes'
xbmc-xrandr.c:1579: error: 'const struct <anonymous>' no tiene un miembro llamado 'crtc_info'
xbmc-xrandr.c:1579: error: 'const struct <anonymous>' no tiene un miembro llamado 'current_crtc_info'
xbmc-xrandr.c:1580: error: 'const struct <anonymous>' no tiene un miembro llamado 'changes'
xbmc-xrandr.c:1580: error: 'changes_crtc' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c: En la función 'main':
xbmc-xrandr.c:1640: error: 'dryrun' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c:1992: error: 'setit_1_2' no se declaró aquí (primer uso en esta función)
xbmc-xrandr.c:1993: error: 'query_1' no se declaró aquí (primer uso en esta función)
make[1]: *** [xbmc-xrandr] Error 1
make[1]: Leaving directory `/mnt/120gb/XBMC'
make: *** [all] Error 2
make: Leaving directory `/mnt/120gb/XBMC'


If i try to execute the XboxMediaCenter exucutable it complains about not being able to find xbmc-xrandr and the screen goes black.

Could anyone shed some light on this?
Reply
#2
I have the same problem on Gentoo. It ran without problems until a day ago.Sad
Reply
#3
You need to install libxrandr-dev.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#4
libxrandr is installed. You don't need dev packages on Gentoo.
Reply
#5
molten_universe Wrote:I have the same problem on Gentoo. It ran without problems until a day ago.Sad

Could you fix the problem with NetworkLinux.cpp?
Reply
#6
molten_universe Wrote:libxrandr is installed. You don't need dev packages on Gentoo.

Cool!!!

I upgraded libXrandr from version 1.1.1 to 1.2.1 and now xbmc-xrandr.c as compiled without a problem.

Thank you very much for your fast response.
Reply
#7
Worked for me too!

emerge -u world && revdep-rebuild did the trick!

Schould do that more frequentlyWink
Reply
#8
I'm always looking for things myself when making new installations of XBMC on gentoo, so I though we could collect our experiences about it here.

Required in package.use
media-libs/alsa-lib debug

Required in package.keywords
media-libs/libmms **

From revision 13716, libboost is required.
XBMC on Gentoo is as good as it gets! :o
Reply
#9
hm how long does it take you to compile everything? from a to Z

btw i believed that libmms had a patch @ ubuntu that wasn't in the mainstream package?
Reply
#10
gryzor - do you run any type of desktop with your gentoo build or is xbmc your desktop?
althekiller Wrote:I like how this thread went from "specifically sound" to "overclocking." It was a good attempt guys, almost a thread that could be useful in the future.

I really miss althekiller :(
Reply
#11
icekiller Wrote:hm how long does it take you to compile everything? from a to Z
After first compile, Build.sh usually takes 5 minutes to recompile everything with ccache and autoclean active.

blubyu Wrote:gryzor - do you run any type of desktop with your gentoo build or is xbmc your desktop?

I use gnome.
XBMC on Gentoo is as good as it gets! :o
Reply
#12
Would not recommend going over rev 13711.

2008-06-24 13716 changed: Use boost:Confusedhared_ptr in CFileItemLists...

This breaks opening of media inside .rar-files, svn update -r 13715 and NOUPDATE to build.sh does the trick.
XBMC on Gentoo is as good as it gets! :o
Reply
#13
Just thought I'd chip in...

I'm running gentoo as well, x64 kde here. Here are the packages needed to compile (shamelessly stolen from an ebuild google found)

fribidi
libpcre
lzo
tre
pysqlite
alsa-lib
freetype
glew
jasper
libmad
libmms
libogg
ibvorbis
sdl-gfx
sdl-image
sdl-mixer
sdl-sound
curl
dbus
hal
opengl
pmount
libXinerama
libXrandr
libXrender
xineramaproto
mysql

A few other quirks for x64:
for now, ImageLib needs to be rebuilt:
svn co https://xbmc.svn.sourceforge.net/svnroot...es/cximage cximage
XBMCTex doesn't compile iirc, but isn't critical to XBMC running.
Reply
#14
Anyone managed to play any media inside .rar-files in later builds (or rather, after the libboost-switch)?
XBMC on Gentoo is as good as it gets! :o
Reply
#15
i believed it was broken . ..
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC on Gentoo1