OS X Building Kodi for Android Box on Mac
#1
Hello Guys,

I am newbiee, I am posting my query here to get some help, I am trying to rebuilt the xmbc (Kodi 13.2.Gotham), I am using Mac machine 10.10 Yosemite
My Issues is i am getting the following error if anyone can help me resolving the issue then please do let me know, or if anyone has a some other guide that I can refer then the one on the Kodi's Site, then do please let me know.

The Error i am facing is this.
----------------------------------------------------------------------------------------------------------------------------
/opt/arm-linux-androideabi-4.8-vanilla/android-14/bin/arm-linux-androideabi-gcc -L/opt/xbmc-depends/arm-linux-androideabi-android-14/lib -L/opt/xbmc-depends/arm-linux-androideabi-android-14/lib/android-14 -bundle -bundle_loader /opt/xbmc-depends/arm-linux-androideabi-android-14/bin/python2.6 -L/opt/xbmc-depends/arm-linux-androideabi-android-14/lib -L/opt/xbmc-depends/arm-linux-androideabi-android-14/lib/android-14 build/temp.macosx-10.10-x86_64-2.6/_imaging.o build/temp.macosx-10.10-x86_64-2.6/decode.o build/temp.macosx-10.10-x86_64-2.6/encode.o build/temp.macosx-10.10-x86_64-2.6/map.o build/temp.macosx-10.10-x86_64-2.6/display.o build/temp.macosx-10.10-x86_64-2.6/outline.o build/temp.macosx-10.10-x86_64-2.6/path.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Access.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Antialias.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Bands.o build/temp.macosx-10.10-x86_64-2.6/libImaging/BitDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Blend.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Chops.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Convert.o build/temp.macosx-10.10-x86_64-2.6/libImaging/ConvertYCbCr.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Copy.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Crc32.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Crop.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Dib.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Draw.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Effects.o build/temp.macosx-10.10-x86_64-2.6/libImaging/EpsEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/File.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Fill.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Filter.o build/temp.macosx-10.10-x86_64-2.6/libImaging/FliDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Geometry.o build/temp.macosx-10.10-x86_64-2.6/libImaging/GetBBox.o build/temp.macosx-10.10-x86_64-2.6/libImaging/GifDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/GifEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/HexDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Histo.o build/temp.macosx-10.10-x86_64-2.6/libImaging/JpegDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/JpegEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/LzwDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Matrix.o build/temp.macosx-10.10-x86_64-2.6/libImaging/ModeFilter.o build/temp.macosx-10.10-x86_64-2.6/libImaging/MspDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Negative.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Offset.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Pack.o build/temp.macosx-10.10-x86_64-2.6/libImaging/PackDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Palette.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Paste.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Quant.o build/temp.macosx-10.10-x86_64-2.6/libImaging/QuantHash.o build/temp.macosx-10.10-x86_64-2.6/libImaging/QuantHeap.o build/temp.macosx-10.10-x86_64-2.6/libImaging/PcdDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/PcxDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/PcxEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Point.o build/temp.macosx-10.10-x86_64-2.6/libImaging/RankFilter.o build/temp.macosx-10.10-x86_64-2.6/libImaging/RawDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/RawEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Storage.o build/temp.macosx-10.10-x86_64-2.6/libImaging/SunRleDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/TgaRleDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/Unpack.o build/temp.macosx-10.10-x86_64-2.6/libImaging/UnpackYCC.o build/temp.macosx-10.10-x86_64-2.6/libImaging/UnsharpMask.o build/temp.macosx-10.10-x86_64-2.6/libImaging/XbmDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/XbmEncode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/ZipDecode.o build/temp.macosx-10.10-x86_64-2.6/libImaging/ZipEncode.o -L/opt/xbmc-depends/arm-linux-androideabi-android-14/lib -ljpeg -lz -o build/lib.macosx-10.10-x86_64-2.6/_imaging.so
arm-linux-androideabi-gcc: error: unrecognized command line option '-bundle'
arm-linux-androideabi-gcc: error: unrecognized command line option '-bundle_loader'
error: command '/opt/arm-linux-androideabi-4.8-vanilla/android-14/bin/arm-linux-androideabi-gcc' failed with exit status 1
make[2]: *** [arm-linux-androideabi-android-14/dist/PIL-1.1.7-py2.6-android-armeabi-v7a.egg] Error 1
make[1]: *** [pythonmodule-pil] Error 2
make: *** [target/.installed-arm-linux-androideabi-android-14] Error 2

--------------------------------------------------------------------------------------------------------------------------------------------------------

Please let me know guys !!!

Thanks in advance for all your help.
#2
when you complied frist time at kodi-android/tools/depends
use make,not use make -j
#3
ok thanks i will try and update the status with the suggestion you made to me.

Thanks again .

UPDATE:-

This is what i get if i did the make.

test -z "/opt/xbmc-depends/x86_64-darwin14.0.0-native/include/SDL" || ./install-sh -c -d "/opt/xbmc-depends/x86_64-darwin14.0.0-native/include/SDL"
/usr/bin/install -c -m 644 'SDL_image.h' '/opt/xbmc-depends/x86_64-darwin14.0.0-native/include/SDL/SDL_image.h'
touch .installed-x86_64-darwin14.0.0-native
/Volumes/Storage/IPhone_Development/Xcode.app/Contents/Developer/usr/bin/make -C liblzo2-native
make[2]: Nothing to be done for `all'.
/Volumes/Storage/IPhone_Development/Xcode.app/Contents/Developer/usr/bin/make -C distribute-native
make[2]: Nothing to be done for `all'.
/Volumes/Storage/IPhone_Development/Xcode.app/Contents/Developer/usr/bin/make -C distutilscross-native
make[2]: Nothing to be done for `all'.
Dependencies built successfully.
/Volumes/Storage/IPhone_Development/Xcode.app/Contents/Developer/usr/bin/make -C target
/Volumes/Storage/IPhone_Development/Xcode.app/Contents/Developer/usr/bin/make -C pcre
rm -rf arm-linux-androideabi-android-14/*; mkdir -p arm-linux-androideabi-android-14
cd arm-linux-androideabi-android-14; /usr/bin/tar --strip-components=1 -xf /opt/xbmc-tarballs/pcre-8.33.tar.gz
cd arm-linux-androideabi-android-14; cp -f /opt/xbmc-depends/x86_64-darwin14.0.0-native/share/automake-1.11/config.sub /opt/xbmc-depends/x86_64-darwin14.0.0-native/share/automake-1.11/config.guess .; ./configure --prefix=/opt/xbmc-depends/arm-linux-androideabi-android-14 --disable-shared --disable-stack-for-recursion --enable-pcre8 --disable-pcre16 --disable-pcre32 --enable-jit --enable-utf --enable-unicode-properties --enable-newline-is-anycrlf
configure: loading site script /opt/xbmc-depends/arm-linux-androideabi-android-14/share/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for strip... /usr/bin/strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/Volumes/Storage/xbmc-project/xbmc/xbmc-13.2-Gotham/tools/depends/target/pcre/arm-linux-androideabi-android-14':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [arm-linux-androideabi-android-14] Error 77
make[1]: *** [pcre] Error 2
make: *** [target/.installed-arm-linux-androideabi-android-14] Error 2

Please let me know if you have any more suggestions.

Thanks
#4
post /opt/xbmc-depends/arm-linux-androideabi-android-14/share/config.site to pastebin.com and put the link in here...

also post tools/depends/config.log please.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
#5
/opt/xbmc-depends/arm-linux-androideabi-android-14/share/config.site
pastebin link : http://pastebin.com/kYFd8WrL

tools/depends/config.log
pastebin link : http://pastebin.com/GfQM2Xm6

Please let me know if any more info is needed.

Just for an update i am building xmbc for android using Mac machine.

Thanks
#6
its doesn't find the android toolchain at all. Make sure /opt/arm-linux-androideabi-4.8-vanilla/android-14 exists and is set up correctly. This is the "create standalone toolchain" step from the README
#7
I am following the https://github.com/xbmc/xbmc/blob/master...ME.android and the /opt/arm-linux-androideabi-4.8-vanilla/android-14 exists and is setup correctly,

Though i think the stuff is working perfectly on Linux, the only problem which i am having is on Mac.
Any inputs that i can try and do resolve this would help, thanks..

Also if you can guide me to use any other guide will also do !!! thanks.

Thanks
#8
no sorry. no OSX here and its not something we support. So you'll have to figure it out yourself.
#9
Well as said - it worked at one point for me ... but also +1 on wsnipex - you are on your own here - we don't support it officially and have no ressources to keep it working. (as you see its already broken obviously...)

Also see here:

http://forum.kodi.tv/showthread.php?tid=215588

A guy whoe made it way further already (by using the same instructions as you did i guess...)
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
#10
(2015-01-20, 15:23)Memphiz Wrote: Well as said - it worked at one point for me ... but also +1 on wsnipex - you are on your own here - we don't support it officially and have no ressources to keep it working. (as you see its already broken obviously...)

Also see here:

http://forum.kodi.tv/showthread.php?tid=215588

A guy whoe made it way further already (by using the same instructions as you did i guess...)

Heh, I fell for that one too (sudo-ing stuff).

The OP might have a permissions problem since the C compiler can't create executables. Probably /opt/... is either owned by root or something of the sort.
(not much point in a C compiler that can't create executables :-)
(yes, technically that's ld but you get it..)
#11
continue here:

http://forum.kodi.tv/showthread.php?tid=215588

closed
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)

Logout Mark Read Team Forum Stats Members Help
Building Kodi for Android Box on Mac0