crazyskeggy
Posts: 36
Joined: Mon Dec 17, 2012 4:02 pm

Building an app from Source

Sun Nov 10, 2013 3:43 pm

Because XBMC for Raspbian is missing the binary (xbmc-bin) files (see later posts in xbmc-bin not in default repositories), I'm trying to build by own from source. I've followed the instructions linked to from the XBMC wiki: http://www.raspbian.org/RaspbianXBMC, and installed all build dependencies (using the list at https://github.com/xbmc/xbmc-rbp/blob/m ... ADME.linux section 3)

However, when I run make, I ge4t the following errors:

Code: Select all

make -C xbmc/cores/DllLoader/exports wrapper.def
make[1]: Entering directory `/home/pi/xbmc-building/xbmc-rbp/xbmc/cores/DllLoader/exports'
make[1]: `wrapper.def' is up to date.
make[1]: Leaving directory `/home/pi/xbmc-building/xbmc-rbp/xbmc/cores/DllLoader/exports'
make -C lib
make[1]: Entering directory `/home/pi/xbmc-building/xbmc-rbp/lib'
make -C ffmpeg
make[2]: Entering directory `/home/pi/xbmc-building/xbmc-rbp/lib/ffmpeg'
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-building/xbmc-rbp/lib/ffmpeg'
make[1]: *** [ffmpeg] Error 2
make[1]: Leaving directory `/home/pi/xbmc-building/xbmc-rbp/lib'
make: *** [dvdpcodecs] Error 2
What do I do?
Running a Model B (256MB RAM) with Raspbian (in NOOBS 1.3) and a Model B (512MB RAM) with OpenELEC + CEC (No NOOBS, as it breaks CEC)

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Building an app from Source

Thu Nov 14, 2013 11:25 am

Could be a memory problem, reduce the memory for the GPU as much as you can. Do you try this on a 256MB or 512MB model ?

crazyskeggy
Posts: 36
Joined: Mon Dec 17, 2012 4:02 pm

Re: Building an app from Source

Thu Nov 14, 2013 6:37 pm

256MB RAM, I have already taken the GPU Memory down to 16 in raspi-config
Running a Model B (256MB RAM) with Raspbian (in NOOBS 1.3) and a Model B (512MB RAM) with OpenELEC + CEC (No NOOBS, as it breaks CEC)

Return to “General programming discussion”