melonkernel
Posts: 1
Joined: Mon Sep 17, 2012 7:03 pm

Re: Instructions for building XBMC for Raspbian

Mon Sep 17, 2012 7:07 pm

matbos wrote:I have a problem:

[email protected]:/home/pi/xbmc-rbp# make -C tools/rbp/depends/xbmc/
make: Entering directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
cd ../../../../; ./bootstrap
./bootstrap: 5: ./bootstrap: autoreconf: not found
make: *** [configure] Error 127
make: Leaving directory `/home/pi/xbmc-rbp/tools/rbp/depends/xbmc'
[email protected]:/home/pi/xbmc-rbp#
I had the same problem.
i needed to install autoreconf which is part of dh-autoreconf according to http://packages.debian.org/sid/dh-autoreconf

Code: Select all

sudo apt-get install dh-autoreconf
(I also needed to install Git.
I followed the tutorial on a fresh install of raspbian. )

blackthroat
Posts: 1
Joined: Sun Sep 23, 2012 1:38 pm

Re: Instructions for building XBMC for Raspbian

Sun Sep 23, 2012 1:53 pm

dmpalmer wrote:I tried compiling, and it runs into an internal compiler error:
  • libavcodec/h264.c:4078:21: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
    arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
I even tried installing gcc-4.7 inplace of the stock 4.6 and it gives the same error.

Anyone else run into this?
dmpalmer,

I'm getting the same error. I just put on a fresh install of 2012-09-18-wheezy-raspbian. I saw earlier in this thread suggesting that it may have crashed due to a memory issue. I'm running with 224M memory split and have rebooted but no luck.

Have to head into work soon so I don't have time to tinker with it until I'm off. Please let me know if you find anything else about it. Thanks!

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Sun Sep 23, 2012 5:32 pm

I was seeing this issue too so I popped in my old SD cad and just updated it to have the new turbo options. On the highest setting my XBMC just froze as soon as it loaded. It's possible that if you're using turbo settings that your pi simply can't handle it thus you're getting errors. I might try turning down the turbo or just building it on the no overclock setting to see what happens.
Dear forum: Play nice ;-)

MarrsAttax
Posts: 25
Joined: Fri Jun 01, 2012 2:39 pm

Re: Instructions for building XBMC for Raspbian

Thu Sep 27, 2012 12:36 pm

MarrsAttax wrote:Many thanks for these build instructions. My build went very smoothly and I now have a working system. The one issue I have is that any video or mp3 I play causes a fluttering sound to come through the speakers.

I canplay an mp3 via the command line with mpg123 without problem so it does seem to be an issue with XBMC.

I'm using analog PC speakers rather than the hdmi output.

Has anyone else had this issue?
Tracked the problem to the cheap charger I was using to power the raspberry pi :)

darda
Posts: 9
Joined: Sun Sep 09, 2012 1:31 pm

Re: Instructions for building XBMC for Raspbian

Thu Sep 27, 2012 8:51 pm

I just typed

git clone --depth 1 git://github.com/xbmc/xbmc-rbp.git

and got

bash: git: command not found

I'm a real noob, so help would be much appreciated..
Thanks..

silas
Posts: 28
Joined: Sat Jan 14, 2012 11:02 am

Re: Instructions for building XBMC for Raspbian

Thu Sep 27, 2012 8:58 pm

darda wrote:I just typed

git clone --depth 1 git://github.com/xbmc/xbmc-rbp.git

and got

bash: git: command not found

I'm a real noob, so help would be much appreciated..
Thanks..
Try typing

Code: Select all

sudo apt-get install git-core
and then try again :)

darda
Posts: 9
Joined: Sun Sep 09, 2012 1:31 pm

Re: Instructions for building XBMC for Raspbian

Thu Sep 27, 2012 9:35 pm

thank you sir, you are awesome

darda
Posts: 9
Joined: Sun Sep 09, 2012 1:31 pm

Re: Instructions for building XBMC for Raspbian

Thu Sep 27, 2012 9:51 pm

I have another problem....
when I type

make

I get

no rule to make target XBMC stop.

I tried sudo, make XBMC, all kinds of commands, no-go whatsoever.

User avatar
LDighera
Posts: 44
Joined: Wed Aug 29, 2012 1:04 am
Location: Santa Barbara, California, USA

Re: Instructions for building XBMC for Raspbian

Fri Sep 28, 2012 12:41 am

Is this the proper place to obtain the XBMC source? http://www.deb-multimedia.org/dists/tes ... ary-armel/

If so, which package should be used with your build method?

262. x264 video encoder for the H.264/MPEG-4 AVC standard
263. xbmc XBMC Media Center (full metapackage)
264. xbmc-data XBMC Media Center (arch-independent data package)
265. xbmc-eventclients-common XBMC Media Center (Event Client Common package)
266. xbmc-eventclients-dev XBMC Media Center (Event Client Dev package)
267. xbmc-eventclients-j2me XBMC Media Center (Event Client J2ME package)
268. xbmc-eventclients-ps3 XBMC Media Center (Event Client PS3 package)
269. xbmc-skin-confluence XBMC Media Center (Confluence HD skin)
270. xbmc-skin-focus XBMC skin
271. xbmc-skin-rapier XBMC skin - Rapier.
272. xbmc-skin-xeebo Boxee style skin for XBMC.
273. xbmc-standalone XBMC Media Center (standalone program)


Is there anything else required to build XBMC on the Raspberry Pi?

Please also e-mail your response to me: [email protected]

Many thanks.

L. Dighera
There is no expedient to which a man will not resort
to avoid the real labor of thinking.
-- Sir Joshua Reynolds

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Fri Sep 28, 2012 1:16 am

darda wrote:I have another problem....
when I type

make

I get

no rule to make target XBMC stop.

I tried sudo, make XBMC, all kinds of commands, no-go whatsoever.
Are you following the steps located here?

http://www.raspbian.org/RaspbianXBMC

There are some steps you need to do before you do make
Dear forum: Play nice ;-)

darda
Posts: 9
Joined: Sun Sep 09, 2012 1:31 pm

Re: Instructions for building XBMC for Raspbian

Fri Sep 28, 2012 12:46 pm

of course I did... still not working....

Will a log help to diagnose the problem?

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Fri Sep 28, 2012 1:07 pm

darda wrote:of course I did... still not working....

Will a log help to diagnose the problem?
I ask because it sounds like you missed one of the steps ;-)

A log is always helpful, but also what size is your SD card? if it's more than 2GB can you confirm that you expanded your rootfs to take advantage of the entire card's space?
Dear forum: Play nice ;-)

parrothead
Posts: 4
Joined: Tue Aug 28, 2012 7:45 pm

Re: Instructions for building XBMC for Raspbian

Mon Oct 01, 2012 5:59 pm

dom wrote:
Darkness wrote:
dom wrote: Might be this:
http://www.raspberrypi.org/phpBB3/viewt ... 9&p=161414

The instructions are wrong. mesa egl and gl libs should not be installed.
that could be indeed related. I had seen reference to that earlier in this thread but I did not see which packages exactly to uninstall.
I'll try this tonight. However, I do not have issues building it like he did.
sudo apt-get remove libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev
Any changes to step 6 (all the "ln" commands)?

Thanks

wwwolti
Posts: 1
Joined: Thu Oct 04, 2012 9:05 am

Re: Instructions for building XBMC for Raspbian

Thu Oct 04, 2012 9:15 am

blackthroat wrote:
dmpalmer wrote:I tried compiling, and it runs into an internal compiler error:
  • libavcodec/h264.c:4078:21: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
    arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
I even tried installing gcc-4.7 inplace of the stock 4.6 and it gives the same error.

Anyone else run into this?
dmpalmer,

I'm getting the same error. I just put on a fresh install of 2012-09-18-wheezy-raspbian. I saw earlier in this thread suggesting that it may have crashed due to a memory issue. I'm running with 224M memory split and have rebooted but no luck.

Have to head into work soon so I don't have time to tinker with it until I'm off. Please let me know if you find anything else about it. Thanks!
I also have got the same error. No solution I have . Did someone figured it out? Compilation stops while compiling 264 library. This happens on new 2012-09-18-wheezy-raspbian. I like this raspbian because it perfectly deals with my wifi dongle.

Someone knows fow to fix this?

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Instructions for building XBMC for Raspbian

Thu Oct 04, 2012 12:34 pm

I also have got the same error. No solution I have . Did someone figured it out? Compilation stops while compiling 264 library. This happens on new 2012-09-18-wheezy-raspbian. I like this raspbian because it perfectly deals with my wifi dongle.
I did not get this problem and I'm on the 2012-09-18 version as well.

I did have a problem with library files not being found though while trying to run my compiled version
/usr/lib/xbmc/xbmc.bin: error while loading shared libraries: libEGL.so.1: cannot open shared object file: No such file or directory
Had to create the following soft links and my compiled version is running now :D

Code: Select all

ln -s /usr/lib/libEGL.so /usr/lib/libEGL.so.1
ln -s /usr/lib/libEGL.so /opt/vc/lib/libEGL.so.1

cblazick
Posts: 1
Joined: Sun Oct 07, 2012 12:10 am

Re: Instructions for building XBMC for Raspbian

Sun Oct 07, 2012 12:16 am

nummy wrote:
sotris99 wrote:Hello i have some problems to make the build...

Code: Select all

CC      libavcodec/adpcm_data.o
CC      libavcodec/adx.o
CC      libavcodec/adx_parser.o
CC      libavcodec/adxdec.o
CC      libavcodec/alac.o
CC      libavcodec/allcodecs.o
CC      libavcodec/alsdec.o
CC      libavcodec/amrnbdec.o
CC      libavcodec/amrwbdec.o
CC      libavcodec/anm.o
CC      libavcodec/ansi.o
libavcodec/ansi.c: In function βdecode_frameβ:
libavcodec/ansi.c:224:35: warning: βheightβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/ansi.c:162:24: note: βheightβ was declared here
libavcodec/ansi.c:224:35: warning: βwidthβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/ansi.c:162:17: note: βwidthβ was declared here
CC      libavcodec/apedec.o
AS      libavcodec/arm/ac3dsp_arm.o
AS      libavcodec/arm/ac3dsp_armv6.o
CC      libavcodec/arm/ac3dsp_init_arm.o
CC      libavcodec/arm/dcadsp_init_arm.o
AS      libavcodec/arm/dsputil_arm.o
AS      libavcodec/arm/dsputil_armv6.o
CC      libavcodec/arm/dsputil_init_arm.o
CC      libavcodec/arm/dsputil_init_armv5te.o
CC      libavcodec/arm/dsputil_init_armv6.o
CC      libavcodec/arm/dsputil_init_vfp.o
AS      libavcodec/arm/dsputil_vfp.o
CC      libavcodec/arm/fft_fixed_init_arm.o
CC      libavcodec/arm/fft_init_arm.o
CC      libavcodec/arm/fmtconvert_init_arm.o
AS      libavcodec/arm/fmtconvert_vfp.o
CC      libavcodec/arm/h264dsp_init_arm.o
CC      libavcodec/arm/h264pred_init_arm.o
AS      libavcodec/arm/jrevdct_arm.o
AS      libavcodec/arm/mpegaudiodsp_fixed_armv6.o
CC      libavcodec/arm/mpegaudiodsp_init_arm.o
CC      libavcodec/arm/mpegvideo_arm.o
CC      libavcodec/arm/mpegvideo_armv5te.o
AS      libavcodec/arm/mpegvideo_armv5te_s.o
AS      libavcodec/arm/simple_idct_arm.o
AS      libavcodec/arm/simple_idct_armv5te.o
AS      libavcodec/arm/simple_idct_armv6.o
CC      libavcodec/arm/vp56dsp_init_arm.o
AS      libavcodec/arm/vp8_armv6.o
AS      libavcodec/arm/vp8dsp_armv6.o
CC      libavcodec/arm/vp8dsp_init_arm.o
CC      libavcodec/ass.o
CC      libavcodec/ass_split.o
CC      libavcodec/assdec.o
CC      libavcodec/asv1.o
CC      libavcodec/atrac.o
CC      libavcodec/atrac1.o
libavcodec/atrac1.c: In function βatrac1_decode_frameβ:
libavcodec/atrac1.c:322:47: warning: to be safe all intermediate pointers in cast from βfloat **β to βconst float **β must be βconstβ qualified [-Wcast-qual]
CC      libavcodec/atrac3.o
libavcodec/atrac3.c: In function βatrac3_decode_frameβ:
libavcodec/atrac3.c:879:38: warning: to be safe all intermediate pointers in cast from βfloat **β to βconst float **β must be βconstβ qualified [-Wcast-qual]
libavcodec/atrac3.c:883:47: warning: to be safe all intermediate pointers in cast from βfloat **β to βconst float **β must be βconstβ qualified [-Wcast-qual]
CC      libavcodec/audioconvert.o
CC      libavcodec/aura.o
CC      libavcodec/avfft.o
CC      libavcodec/avpacket.o
libavcodec/avpacket.c: In function βav_dup_packetβ:
libavcodec/avpacket.c:130:5: warning: βav_destruct_packet_nofreeβ is deprecated (declared at libavcodec/avpacket.c:27) [-Wdeprecated-declarations]
CC      libavcodec/avs.o
libavcodec/avs.c: In function βavs_decode_frameβ:
libavcodec/get_bits.h:278:8: warning: βchange_map.size_in_bits_plus8β may be used uninitialized in this function [-Wuninitialized]
libavcodec/avs.c:60:19: note: βchange_map.size_in_bits_plus8β was declared here
libavcodec/get_bits.h:261:26: warning: βchange_map.bufferβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/avs.c:60:19: note: βchange_map.bufferβ was declared here
CC      libavcodec/bethsoftvideo.o
CC      libavcodec/bfi.o
CC      libavcodec/bgmc.o
CC      libavcodec/bink.o
libavcodec/bink.c: In function βbinkb_decode_planeβ:
libavcodec/bink.c:860:17: warning: passing argument 4 of βread_dct_coeffsβ from incompatible pointer type [enabled by default]
libavcodec/bink.c:593:12: note: expected βconst int32_t (*)[64]β but argument is of type βint32_t (*)[64]β
libavcodec/bink.c:893:17: warning: passing argument 4 of βread_dct_coeffsβ from incompatible pointer type [enabled by default]
libavcodec/bink.c:593:12: note: expected βconst int32_t (*)[64]β but argument is of type βint32_t (*)[64]β
CC      libavcodec/binkaudio.o
libavcodec/binkaudio.c: In function βdecode_blockβ:
libavcodec/binkaudio.c:269:43: warning: to be safe all intermediate pointers in cast from βfloat **β to βconst float **β must be βconstβ qualified [-Wcast-qual]
libavcodec/binkaudio.c:271:48: warning: to be safe all intermediate pointers in cast from βfloat **β to βconst float **β must be βconstβ qualified [-Wcast-qual]
CC      libavcodec/binkdsp.o
CC      libavcodec/bintext.o
libavcodec/bintext.c:92:13: warning: βhscrollβ defined but not used [-Wunused-function]
CC      libavcodec/bitstream.o
CC      libavcodec/bitstream_filter.o
libavcodec/bitstream_filter.c: In function βav_bitstream_filter_filterβ:
libavcodec/bitstream_filter.c:62:15: warning: cast discards β__attribute__((const))β qualifier from pointer target type [-Wcast-qual]
CC      libavcodec/bmp.o
libavcodec/bmp.c: In function βbmp_decode_frameβ:
libavcodec/bmp.c:177:22: warning: βrgb[2]β may be used uninitialized in this function [-Wuninitialized]
libavcodec/bmp.c:177:22: warning: βrgb[1]β may be used uninitialized in this function [-Wuninitialized]
libavcodec/bmp.c:172:21: warning: βrgb[0]β may be used uninitialized in this function [-Wuninitialized]
CC      libavcodec/bmv.o
CC      libavcodec/c93.o
CC      libavcodec/cabac.o
CC      libavcodec/cavs.o
CC      libavcodec/cavs_parser.o
CC      libavcodec/cavsdec.o
CC      libavcodec/cavsdsp.o
CC      libavcodec/cdgraphics.o
CC      libavcodec/celp_filters.o
CC      libavcodec/celp_math.o
CC      libavcodec/cga_data.o
CC      libavcodec/chomp_bsf.o
libavcodec/chomp_bsf.c: In function βchomp_filterβ:
libavcodec/chomp_bsf.c:34:16: warning: cast discards β__attribute__((const))β qualifier from pointer target type [-Wcast-qual]
CC      libavcodec/cinepak.o
CC      libavcodec/cljr.o
CC      libavcodec/cook.o
HOSTCC  libavcodec/cos_tablegen.o
HOSTCC  libavcodec/cos_tablegen
GEN     libavcodec/cos_fixed_tables.c
CC      libavcodec/cos_fixed_tables.o
GEN     libavcodec/cos_tables.c
CC      libavcodec/cos_tables.o
CC      libavcodec/cscd.o
CC      libavcodec/cyuv.o
CC      libavcodec/dca.o
CC      libavcodec/dca_parser.o
CC      libavcodec/dcadsp.o
CC      libavcodec/dct.o
CC      libavcodec/dct32_fixed.o
CC      libavcodec/dct32_float.o
CC      libavcodec/dfa.o
CC      libavcodec/dirac.o
CC      libavcodec/dirac_arith.o
CC      libavcodec/dirac_parser.o
CC      libavcodec/diracdec.o
CC      libavcodec/diracdsp.o
CC      libavcodec/dnxhd_parser.o
CC      libavcodec/dnxhddata.o
CC      libavcodec/dnxhddec.o
CC      libavcodec/dpcm.o
CC      libavcodec/dpx.o
CC      libavcodec/dsicinav.o
CC      libavcodec/dsputil.o
CC      libavcodec/dump_extradata_bsf.o
HOSTCC  libavcodec/dv_tablegen.o
HOSTCC  libavcodec/dv_tablegen
GEN     libavcodec/dv_tables.h
CC      libavcodec/dv.o
libavcodec/dv.c: In function βdvvideo_decode_frameβ:
libavcodec/dv.c:1097:12: warning: assignment discards βconstβ qualifier from pointer target type [enabled by default]
libavcodec/dv.c: At top level:
libavcodec/dv.c:350:34: warning: βdvvideo_init_encoderβ defined but not used [-Wunused-function]
libavcodec/dv.c:930:12: warning: βdv_encode_video_segmentβ defined but not used [-Wunused-function]
CC      libavcodec/dvbsub_parser.o
CC      libavcodec/dvbsubdec.o
libavcodec/dvbsubdec.c: In function βdvbsub_parse_region_segmentβ:
libavcodec/dvbsubdec.c:1034:9: warning: variable βversionβ set but not used [-Wunused-but-set-variable]
CC      libavcodec/dvdata.o
CC      libavcodec/dvdsub_parser.o
CC      libavcodec/dvdsubdec.o
CC      libavcodec/dwt.o
libavcodec/dwt.c: In function βspatial_compose_dd97i_dyβ:
libavcodec/dwt.c:1080:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1081:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βspatial_compose_dirac53i_dyβ:
libavcodec/dwt.c:1104:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1105:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βspatial_compose_dd137i_dyβ:
libavcodec/dwt.c:1127:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1128:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βspatial_compose_haari_dyβ:
libavcodec/dwt.c:1152:46: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βspatial_compose_fidelityβ:
libavcodec/dwt.c:1168:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1169:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βspatial_compose_daub97i_dyβ:
libavcodec/dwt.c:1193:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1194:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1195:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1196:49: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/dwt.c: In function βff_spatial_idwt_init2β:
libavcodec/dwt.c:1303:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1304:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1310:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1311:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1317:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1318:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1325:29: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1334:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1335:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1340:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1341:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1342:32: warning: assignment from incompatible pointer type [enabled by default]
libavcodec/dwt.c:1343:32: warning: assignment from incompatible pointer type [enabled by default]
CC      libavcodec/dxa.o
CC      libavcodec/dxtory.o
CC      libavcodec/eac3_data.o
CC      libavcodec/eac3dec.o
CC      libavcodec/eacmv.o
CC      libavcodec/eaidct.o
CC      libavcodec/eamad.o
libavcodec/eamad.c: In function βdecode_frameβ:
libavcodec/eamad.c:97:44: warning: βmv_yβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/eamad.c:198:15: note: βmv_yβ was declared here
libavcodec/eamad.c:97:97: warning: βmv_xβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/eamad.c:198:9: note: βmv_xβ was declared here
CC      libavcodec/eatgq.o
CC      libavcodec/eatgv.o
CC      libavcodec/eatqi.o
CC      libavcodec/error_resilience.o
CC      libavcodec/escape124.o
CC      libavcodec/escape130.o
CC      libavcodec/faandct.o
CC      libavcodec/faanidct.o
CC      libavcodec/faxcompr.o
CC      libavcodec/fft_fixed.o
CC      libavcodec/fft_float.o
CC      libavcodec/ffv1.o
libavcodec/ffv1.c:238:13: warning: βfind_best_stateβ defined but not used [-Wunused-function]
libavcodec/ffv1.c:327:39: warning: βput_symbolβ defined but not used [-Wunused-function]
libavcodec/ffv1.c: In function βdecode_frameβ:
libavcodec/ffv1.c:1674:29: warning: βcontext_countβ may be used uninitialized in this function [-Wuninitialized]
libavcodec/ffv1.c:1544:15: note: βcontext_countβ was declared here
CC      libavcodec/ffwavesynth.o
CC      libavcodec/flac.o
CC      libavcodec/flac_parser.o
libavcodec/flac_parser.c: In function βflac_parseβ:
libavcodec/flac_parser.c:572:50: warning: cast discards β__attribute__((const))β qualifier from pointer target type [-Wcast-qual]
CC      libavcodec/flacdata.o
CC      libavcodec/flacdec.o
CC      libavcodec/flashsv.o
CC      libavcodec/flicvideo.o
CC      libavcodec/flvdec.o
CC      libavcodec/fmtconvert.o
CC      libavcodec/fraps.o
CC      libavcodec/frwu.o
CC      libavcodec/g722.o
CC      libavcodec/g722dec.o
CC      libavcodec/g723_1.o
CC      libavcodec/g726.o
CC      libavcodec/g729dec.o
libavcodec/g729dec.c: In function βdecode_frameβ:
libavcodec/g729dec.c:423:14: warning: assignment from incompatible pointer type [enabled by default]
CC      libavcodec/g729postfilter.o
CC      libavcodec/gifdec.o
CC      libavcodec/golomb.o
CC      libavcodec/gsm_parser.o
CC      libavcodec/gsmdec.o
CC      libavcodec/gsmdec_data.o
CC      libavcodec/h261.o
CC      libavcodec/h261_parser.o
CC      libavcodec/h261dec.o
CC      libavcodec/h263.o
CC      libavcodec/h263_parser.o
CC      libavcodec/h263dec.o
CC      libavcodec/h264.o
libavcodec/h264.c: In function βdecode_slice_headerβ:
libavcodec/h264.c:2925:35: warning: to be safe all intermediate pointers in cast from βuint8_t **β to βconst uint8_t **β must be βconstβ qualified [-Wcast-qual]
libavcodec/h264.c: In function βfill_filter_caches_interβ:
libavcodec/h264.c:3282:34: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/h264.c:3297:38: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/h264.c:3330:30: warning: initialization from incompatible pointer type [enabled by default]
libavcodec/h264.c: In function βdecode_frameβ:
libavcodec/h264.c:4078:21: warning: initialization discards βconstβ qualifier from pointer target type [enabled by default]
arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[2]: *** [libavcodec/h264.o] Error 4
make[2]: Leaving directory `/home/pi/xbmc-rbp/lib/ffmpeg'
make[1]: *** [ffmpeg] Error 2
make[1]: Leaving directory `/home/pi/xbmc-rbp/lib'
make: *** [dvdpcodecs] Error 2
I get the same errors as you when I try to make :(
I was getting this too. rebooted. DIDN'T launch x11vnc (simply logged in with ssh). Now everything's shiny

Kenji
Posts: 2
Joined: Sun Oct 07, 2012 9:58 am

Re: Instructions for building XBMC for Raspbian

Sun Oct 07, 2012 2:24 pm

Hello,

I've got a problem building xbmc-rpi using precisely the guide above:

Code: Select all

CPP     xbmc/threads/SystemClock.o
CPP     xbmc/threads/platform/Implementation.o
AR      xbmc/threads/threads.a
LD      xbmc.bin
xbmc/filesystem/filesystem.a: member xbmc/filesystem/filesystem.a(SmartPlaylistDirectory.o) in archive is not an object
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1
Unfortunately, I don't know C/C++ to debug this on my own :-/
Any sugestions?

Thanks

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Mon Oct 08, 2012 12:15 am

wwwolti wrote:
blackthroat wrote:
dmpalmer wrote:I tried compiling, and it runs into an internal compiler error:
  • libavcodec/h264.c:4078:21: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
    arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
I even tried installing gcc-4.7 inplace of the stock 4.6 and it gives the same error.

Anyone else run into this?
dmpalmer,

I'm getting the same error. I just put on a fresh install of 2012-09-18-wheezy-raspbian. I saw earlier in this thread suggesting that it may have crashed due to a memory issue. I'm running with 224M memory split and have rebooted but no luck.

Have to head into work soon so I don't have time to tinker with it until I'm off. Please let me know if you find anything else about it. Thanks!
I also have got the same error. No solution I have . Did someone figured it out? Compilation stops while compiling 264 library. This happens on new 2012-09-18-wheezy-raspbian. I like this raspbian because it perfectly deals with my wifi dongle.

Someone knows fow to fix this?
It's "just" a memory issue, the compiler simply went out of memory and killed itself. You can try using the 240MB split and kill all processes you don't need. (X-Server for example)

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Instructions for building XBMC for Raspbian

Sun Oct 14, 2012 8:21 pm

SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

User avatar
LDighera
Posts: 44
Joined: Wed Aug 29, 2012 1:04 am
Location: Santa Barbara, California, USA

Re: Instructions for building XBMC for Raspbian

Mon Oct 15, 2012 8:42 pm

Many thanks. Unfortunately:

"Not available for Debian wheezy yet "
There is no expedient to which a man will not resort
to avoid the real labor of thinking.
-- Sir Joshua Reynolds

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Thu Oct 18, 2012 8:24 pm

It's been a long time since I've seen activity on this thread, is this

http://www.raspbian.org/RaspbianXBMC

still the best way to build XBMC for raspbian? Is there any benefit to building it yourself over using the package listed a little above. The only thing I could imagine would be if the package isn't update very frequently.
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Instructions for building XBMC for Raspbian

Fri Oct 19, 2012 4:29 pm

abishur wrote:It's been a long time since I've seen activity on this thread, is this

http://www.raspbian.org/RaspbianXBMC

still the best way to build XBMC for raspbian? Is there any benefit to building it yourself over using the package listed a little above. The only thing I could imagine would be if the package isn't update very frequently.
Just tested it out and they work great, the only thing is the last step says to run it with

Code: Select all

/usr/lib/xbmc/xbmc.bin
you need to use

Code: Select all

/usr/lib/xbmc/xbmc.bin --standalone --fs
Dear forum: Play nice ;-)

mongrol
Posts: 76
Joined: Wed Aug 01, 2012 2:43 am

Re: Instructions for building XBMC for Raspbian

Mon Oct 22, 2012 9:49 am

Hi all,
The instructions on raspbian.org site seem to be for xbmc-rbp which as I understand it has now been rolled into the main xbmc git. So, in order to compile xbmc with PVR support so I can test the latest libcmyth merges I've been trying to compile the main xbmc tree.

Following the same instructions I get until the .configure when I get this odd error.

Code: Select all

checking for SAMPLERATE... yes
checking for FREETYPE2... yes
checking for TAGLIB... yes
checking for main in -ldl... no
configure: error: Could not find a required library. Please see the README for your platform.
libdl.so is on my system as it comes with libc6 (of course I have it!). I've also get libc6-dev installed. Has anyone came across this before?

n9ntje
Posts: 5
Joined: Thu Oct 18, 2012 5:42 pm

Re: Instructions for building XBMC for Raspbian

Mon Oct 22, 2012 3:03 pm

The instructions for building XBMC from mainline tree are not (yet?) here, afaik. I did a lot of searching to find the correct instructions. Problem: They are all over the place. :roll:
I think I will try the builds from NlerSify. He has compiled images on his sourceforge site.

Link to the thread

:!: I just stumbled over this post form fraz0815 in the thread posted above. :geek: mode on
Haven't tried the instuctions yet but i'll give it a go this evening.

Here's the pastebin link: [http://pastebin.com/jLzEZiXg :)

Code: Select all

1.
First of all we have to compile taglib (it's a dependecy for XBMC) to do this:

 2.
1. git clone git://github.com/taglib/taglib.git

 3.
2. cd taglib

 4.
3. cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_RELEASE_TYPE=Release

 5.
4. make

 6.
5. sudo make install

 7.
 

 8.
 

 9.
 

 10.
Now we can start with XBMC

 11.
1. Clone XBMC from the XBMC git : git clone git://github.com/xbmc/xbmc.git

 12.
 

 13.
2. wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update

 14.
 

 15.
3. rpi-update 240

 16.
 

 17.
4. sudo apt-get update

 18.
 

 19.
5. sudo apt-get upgrade

 20.
 

 21.
6. sudo apt-get install build-essential autoconf ccache gawk gperf mesa-utils zip unzip

 22.
 

 23.
7. sudo apt-get install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev \

 24.
    libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev \

 25.
    libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev \

 26.
    libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev \

 27.
    libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev \

 28.
    libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev \

 29.
    libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev libegl1-mesa-dev \

 30.
    libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf \

 31.
    libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev \

 32.
    libgcrypt11-dev libgdk-pixbuf2.0-dev libgl1-mesa-dev libgles2-mesa-dev \

 33.
    libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev \

 34.
    libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev \

 35.
    libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev \

 36.
    libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev \

 37.
    libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev \

 38.
    libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev \

 39.
    libncurses5-dev libnspr4-dev libnss3-dev libogg-dev:armhf libopenal-dev:armhf \

 40.
    libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev libpcre++-dev libpcre3-dev \

 41.
    libpixman-1-dev libpng12-dev libprotobuf-dev libpthread-stubs0-dev:armhf \

 42.
    libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf \

 43.
    libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf \

 44.
    libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf \

 45.
    libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev \

 46.
    libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev \

 47.
    libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf \

 48.
    libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev \

 49.
    libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf \

 50.
    libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf \

 51.
    libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev \

 52.
    libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev \

 53.
    libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev \

 54.
    libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf \

 55.
    libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf \

 56.
    lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev \

 57.
    x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev \

 58.
    x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev \

 59.
    x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev \

 60.
    x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev \

 61.
    libnfs-dev libplist-dev libshairport-dev avahi-daemon

 62.
    zlib1g-dev:armhf

 63.
 

 64.
8. sudo apt-get clean

 65.
 

 66.
9. sudo cp -R /opt/vc/include/* /usr/include

 67.
   sudo cp /opt/vc/include/interface/vcos/pthreads/* /usr/include/interface/vcos

 68.
 

 69.
10. sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/libEGL.so

 70.
    sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so

 71.
    sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1

 72.
    sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/libEGL_static.a

 73.
    sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/arm-linux-gnueabihf/libEGL_static.a

 74.
    sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/libGLESv2.so

 75.
    sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so

 76.
    sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2

 77.
    sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/libGLESv2_static.a

 78.
    sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/arm-linux-gnueabihf/libGLESv2_static.a

 79.
    sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/libbcm_host.so

 80.
    sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/arm-linux-gnueabihf/libbcm_host.so

 81.
    sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/libvchiq_arm.a

 82.
    sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/arm-linux-gnueabihf/libvchiq_arm.a

 83.
    sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so

 84.
    sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/arm-linux-gnueabihf/libvchiq_arm.so

 85.
    sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/libvcos.a

 86.
    sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/arm-linux-gnueabihf/libvcos.a

 87.
    sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/libvcos.so

 88.
    sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/arm-linux-gnueabihf/libvcos.so

 89.
 

 90.
11. git clone git://github.com/xbmc/xbmc.git

 91.
 

 92.
12. cd xbmc

 93.
 

 94.
13. nano configure.in , set use_texturepacker_native=yes to use_texturepacker_native=no @ line 668

 95.
 

 96.
14. sed -i 's/USE_BUILDROOT=1/USE_BUILDROOT=0/' tools/rbp/setup-sdk.sh

 97.
    sed -i 's/TOOLCHAIN=\/usr\/local\/bcm-gcc/TOOLCHAIN=\/usr/' tools/rbp/setup-sdk.sh

 98.
    sudo sh tools/rbp/setup-sdk.sh

 99.
    sed -i 's/cd $(SOURCE); $(CONFIGURE)/#cd $(SOURCE); $(CONFIGURE)/' tools/rbp/depends/xbmc/Makefile

 100.
 

 101.
15. make -C tools/rbp/depends/xbmc/

 102.
 

 103.
16. ./configure --prefix=/usr --localstatedir=/var/lib --with-platform=raspberry-pi --disable-gl --enable-gles \

 104.
    --disable-x11 --disable-sdl --enable-ccache --enable-optimizations \

 105.
    --enable-external-libraries --disable-goom --disable-hal --disable-pulse \

 106.
    --disable-vaapi --disable-vdpau --disable-xrandr --enable-airplay \

 107.
    --disable-alsa --enable-avahi --disable-libbluray --enable-dvdcss \

 108.
    --disable-debug --disable-joystick --enable-mid --enable-nfs --disable-profiling \

 109.
    --disable-projectm --enable-rsxs --enable-rtmp --disable-vaapi \

 110.
    --disable-vdadecoder --disable-external-ffmpeg  --enable-optical-drive

 111.
 

 112.
17. make (THIS WILL TAKE LOOOONG! +- 14 hours)

 113.
 

 114.
18. sudo make install

 115.
 

 116.
 

 117.
Many thanks to http://www.raspbian.org/RaspbianXBMC !
I would love to have comments from the experienced devs on this one. Perhaps time to update the raspxmbc tutorial? ;)

Edit: there are mentions in the thread that the above instructions are not complete. Read through the thread carefully!

n9ntje
Posts: 5
Joined: Thu Oct 18, 2012 5:42 pm

Re: Instructions for building XBMC for Raspbian

Mon Oct 22, 2012 10:42 pm

Tried building the xbmc with above instructions. Failed. :?:

Return to “Raspbian”