Solved [Android] - Error 2 building on Mac OS X
#16
thx for confirmation Smile
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)
Reply
#17
Once this pull request is merged - the needed adaptions will be available in mainline:

https://github.com/xbmc/xbmc/pull/6275
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)
Reply
#18
Hi RBWare,
Please help me...!!! I am also building xbmc in Mac.

Can explain in details after step 5.1 what you have done. because i have already waste my 4 days. I am following the https://github.com/xbmc/xbmc/blob/master...ME.android doc.

I am sure, there is problem in building dependencies.
Reply
#19
Another error while make "make" command.

make[3]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C liblzo2
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libzip
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C freetype2
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C fontconfig
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C i686-linux-android-android-17
make[3]: *** No targets specified and no makefile found. Stop.
make[2]: *** [i686-linux-android-android-17/src/.libs/libfontconfig.a] Error 2
make[1]: *** [fontconfig] Error 2
make: *** [target/.installed-i686-linux-android-android-17] Error 2
Indras-Mac-mini-2:depends Indra$
Reply
#20
Another error while make "make" command


/Applications/Xcode.app/Contents/Developer/usr/bin/make -C bzip2
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C i686-linux-android-android-17 PREFIX=/Volumes/android-dev/opt/xbmc-depends/i686-linux-android-android-17 CC="/Volumes/android-dev/opt/x86-linux-4.8-vanilla/android-17/bin/i686-linux-android-gcc" CFLAGS="-DANDROID -Os -fexceptions -I/Volumes/android-dev/opt/xbmc-depends/i686-linux-android-android-17/include/android-17 -isystem /Volumes/android-dev/opt/xbmc-depends/i686-linux-android-android-17/include" LDFLAGS="-L/Volumes/android-dev/opt/xbmc-depends/i686-linux-android-android-17/lib -L/Volumes/android-dev/opt/xbmc-depends/i686-linux-android-android-17/lib/android-17 " AR="/Volumes/android-dev/opt/x86-linux-4.8-vanilla/android-17/bin/i686-linux-android-ar"
make[3]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C liblzo2
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libzip
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C freetype2
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C fontconfig
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C i686-linux-android-android-17
make[3]: *** No targets specified and no makefile found. Stop.
make[2]: *** [i686-linux-android-android-17/src/.libs/libfontconfig.a] Error 2
make[1]: *** [fontconfig] Error 2
make: *** [target/.installed-i686-linux-android-android-17] Error 2
Indras-Mac-mini-2:depends Indra$
Reply
#21
Those errors are the same. fontconfig package is in a broken state (maybe because a download failed). First command cleans out the broken fontconfig state. Second command "continues" the depends build process. Do this for each package which errors out until you got through.

Code:
make -C target/fontconfig distclean
make
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)
Reply
#22
Thanks for the help. I successfully built the APK :-)
Reply
#23
I ran into the following issue:

Code:
/usr/bin/libtool -o libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: adler32.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: crc32.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: deflate.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: infback.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: inffast.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: inflate.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: inftrees.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: trees.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: zutil.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: compress.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: uncompr.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: gzclose.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: gzlib.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: gzread.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: gzwrite.o is not an object file (not allowed in a library)
make[3]: *** [libz.a] Error 1
make[2]: *** [arm-linux-androideabi-android-21/zlib.a] Error 2
make[1]: *** [zlib] Error 2
make: *** [target/.installed-arm-linux-androideabi-android-21] Error 2

Is there anything i can do or do i have to setup a linux vm? distclean did not help, same error moments later
Reply

Logout Mark Read Team Forum Stats Members Help
[Android] - Error 2 building on Mac OS X0