XBMC PKGBUILD for raspberry pi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: XBMC PKGBUILD for raspberry pi

Postby tgc » Sat Jul 21, 2012 10:34 pm

Nice work with the advancesetting.xml-file! I wondered about the cpu usage myself, but didn't do much about it.
Anybody has a good idea as to how to include advancesetting.xml in the PKG? As I understand it, it will only be read from the users "userdata" folder, so that makes it difficult to install it for all users.
tgc
 
Posts: 66
Joined: Sun May 20, 2012 8:05 am

Re: XBMC PKGBUILD for raspberry pi

Postby xouillet » Wed Jul 25, 2012 11:21 am

Hi everyone,

I've managed to compile xbmc-rpb-git on a x86 computer with a cross-compilation toolchain thanks to a minor patch on the PKGBUILD. With this setup, the build take only 20min.

Here is a tutorial I wrote to replay the steps : http://www.xouillet.info/dokuwiki/doku. ... c-rpb_arch

Feel free to test/comment it if you are interested.

As said at the end, the package has the wrong architecture, and I didn't find a clean way to generate a true arm package with cross-compilation, so if some of you are aware of that, please tell me :)
xouillet
 
Posts: 1
Joined: Wed Jul 25, 2012 11:13 am

Re: XBMC PKGBUILD for raspberry pi

Postby WarheadsSE » Wed Jul 25, 2012 12:31 pm

You're best off using the CROSS_COMPILE= environment variable to allow for cross-builds, having that toolchain in your path. CARCH for the target arch. As for why your resultant package reads x86-64 .. I'm not sure on that myself so I won't comment.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: XBMC PKGBUILD for raspberry pi

Postby MattScherbatsky » Sat Aug 04, 2012 11:07 am

I try to compile xbmc from aur (xbmc-rbp-git) and I have these errors:

$this->bbcode_second_pass_code('', 'libavcodec/h264.c: In function ‘decode_frame’:
libavcodec/h264.c:4078:21: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]

cc1: out of memory allocating 16917208 bytes after a total of 76763136 bytes
make[2]: *** [libavcodec/h264.o] Errore 1
make[2]: Leaving directory `/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/lib/ffmpeg'
make[1]: *** [ffmpeg] Errore 2
make[1]: Leaving directory `/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/lib'
make: *** [dvdpcodecs] Errore 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
==> ERRORE: Makepkg non è riuscito a compilare xbmc-rbp-git.
==> Riavviare la compilazione di xbmc-rbp-git [s/N]
==> -----------------------------------------------
==> ')

Can you help me?
MattScherbatsky
 
Posts: 34
Joined: Sat Aug 04, 2012 11:04 am

Re: XBMC PKGBUILD for raspberry pi

Postby pepedog » Sat Aug 04, 2012 1:54 pm

You need a swap file, search forum for swapon
Try to avoid doing this on flash type memory
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: XBMC PKGBUILD for raspberry pi

Postby MattScherbatsky » Tue Aug 07, 2012 7:53 am

$this->bbcode_second_pass_quote('pepedog', 'Y')ou need a swap file, search forum for swapon
Try to avoid doing this on flash type memory


Thank you!!! I've compile it! ;)
MattScherbatsky
 
Posts: 34
Joined: Sat Aug 04, 2012 11:04 am

Re: XBMC PKGBUILD for raspberry pi

Postby MattScherbatsky » Wed Aug 08, 2012 7:00 am

$this->bbcode_second_pass_quote('pepedog', 'Y')ou need a swap file, search forum for swapon
Try to avoid doing this on flash type memory


Oops sorry, I have an error in compilation. I post you the error:
$this->bbcode_second_pass_code('', 'ize=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfp -mabi=aapcs-linux -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -I. -I/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/lib -I/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/xbmc -I/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/xbmc/linux md5.cpp SDL_anigif.cpp XBTFWriter.cpp XBMCTex.cpp /tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/xbmc/guilib/XBTF.cpp -L/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/lib/libsquish -lsquish-native -lSDL_image -lSDL -llzo2 -o TexturePacker
XBMCTex.cpp:35:27: fatal error: SDL/SDL_image.h: File o directory non esistente
compilation terminated.
make[1]: *** [TexturePacker] Errore 1
make[1]: Leaving directory `/tmp/yaourt-tmp-matt/aur-xbmc-rbp-git/src/xbmc-rbp/tools/TexturePacker'
make: *** [tools/TexturePacker/TexturePacker] Errore 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
==> ERRORE: Makepkg non è riuscito a compilare xbmc-rbp-git.
==> Riavviare la compilazione di xbmc-rbp-git [s/N]
==> -----------------------------------------------
==>
')
MattScherbatsky
 
Posts: 34
Joined: Sat Aug 04, 2012 11:04 am

Re: XBMC PKGBUILD for raspberry pi

Postby BasiK » Wed Aug 08, 2012 7:38 am

You have to install sdl and sdl_image. (It is indeed not in the prerequisites.)
BasiK
 
Posts: 7
Joined: Sun Jun 03, 2012 6:59 am

Re: XBMC PKGBUILD for raspberry pi

Postby MattScherbatsky » Wed Aug 08, 2012 10:19 am

sdl installed, sdl_image not. Now I installing it and retry! Thank you!
MattScherbatsky
 
Posts: 34
Joined: Sat Aug 04, 2012 11:04 am

Re: XBMC PKGBUILD for raspberry pi

Postby fake415 » Sat Aug 11, 2012 8:52 am

Hey guys!

I've got a problem building the new xbmc-rbp-git (2012-08-09). While configuring I'm getting the following error message:

checking for gcry_control in -lgcrypt... no
configure: error: Could not find a required library. Please see the README for your platform.

I've got libgcrypt 1.5.0-3 installed. It seems as if I need a libgcrypt-dev (at least that's what it's called for debian), but that doesn't seem to exist for arch.

Any ideas?
Thanks.
fake415
 
Posts: 2
Joined: Sat Aug 11, 2012 8:48 am

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 64 guests