Thread Rating:
  • 0 Vote(s) - 0 Average
Android - Can xbmc-android be compiled for MIPS?
#1
hi everybody,
Can xbmc-android be compiled for MIPS?

under xbmc-android/tools/android/depends, I specify '--with-cpu=mips' when doing configure:
# ./configure --with-sdk=/home/zhanghui/opt/android-sdk --with-ndk=/home/zhanghui/opt/android-ndk --with-toolchain=/home/zhanghui/opt/android-toolchain/android-9 --with-tarballs=/home/zhanghui/opt/xbmc-android-tarballs --with-cpu=mips
and it succeeds.

After than, I do 'make', it reports error:
......
make -C libtool
make[1]: Entering directory `/home/zhanghui/project/xbmc-android/tools/android/depends/libtool'
rm -rf mips-native/*; mkdir -p mips-native
/bin/tar -C mips-native --strip-components=1 -xf /home/zhanghui/opt/xbmc-android-tarballs/libtool-2.2.6a.tar.gz
/bin/tar: This does not look like a tar archive

gzip: stdin: not in gzip format
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
make[1]: *** [mips-native] Error 2
make[1]: Leaving directory `/home/zhanghui/project/xbmc-android/tools/android/depends/libtool'
make: *** [libtool] Error 2

Reply
#2
Now xmbc-android maybe cannot be built for mips, since r7-crystax NDK doesn't support mips toolchain for the moment.

and the errors above are not releated to arch, maybe due to the file corruption of libtool-2.2.6a.tar.gz.

thanks for paying attention to this.
Reply
#3
For a mips build i think we need to wait for the crystax version based on ndk-r8, it should be avalible at anytime now.
Reply
#4
yes, according to http://www.crystax.net/trac/ndk/ticket/74#, "r8-crystax-1 release is on final testing stage now. Expect it soon, in few weeks".
just waiting for itSmile
Reply
#5
BTW, you where getting the staging tools when you attempted to build using the regular ndk-r8? i think i missed something in the toolchain...
Reply
#6
(2012-09-08, 17:42)Shivansps Wrote: BTW, you where getting the staging tools when you attempted to build using the regular ndk-r8? i think i missed something in the toolchain...

I did not pay special attention to "the staging tools", I just download the regular ndk-r8, and setup something like "build-target" to mips.

Reply
#7
I have been trying to build xbmc-android for MIPS but no success yet . I am Facing problems while building ncurses , gettext and many others.
Initially i used official ndk (ndk-r9c) and then switched to crystax-r8 but all in vain.
Did anyone get any success in building xbmc-android for MIPS?

Here are the steps I am following :
1) Making standalone toolchain
$ cd android-ndk-r9c/build/tool
$ ./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=<android-toolchain>/android-14/ --platform=android-14 --arch=mips --toolchain=mipsel-linux-android-4.6 --system=linux-x86_64
2) Building dependencies
$ cd xbmc/tool/android/depends
$ ./bootstrap
$ ./configure --with-sdk=<android-sdk-linux_x86> --with-ndk=<android-ndk-r9c> --with-toolchain=<android-toolchain>/android-14 --with-tarballs=<android-tarball> --with-cpu=mips
$ make
Reply
#8
Not tried compiling MIPS, but here are a few tips, though would recommend to posting a new thread in the subforum for Android Testing & Development

http://forum.xbmc.org/forumdisplay.php?fid=184

Crystax NDK which is no longer support to build XBMC master at all, (only to build Frodo), and neither is official Android NDK r9b or r9c as of yet. For more info see discussions in these two threads

http://forum.xbmc.org/showthread.php?tid=180078
http://forum.xbmc.org/showthread.php?tid=180299

Currently only official Android NDK r9 (Android NDK Revision 9) is supported as per latest README.android in master, and you want to compile master, not Frodo as it is really outdated for Android

https://github.com/xbmc/xbmc/blob/master...ME.android

Also suggest to checkout the tips to build of Android x86 and try to translate those tips to Android MIPS

http://forum.xbmc.org/showthread.php?tid=173313


Again, I would not even bother trying to compiling Frodo today as it is basically obsolete for Android, so now you really want to try to compile very latest master instead


PS: What MIPS hardware SoC / board exactly are you trying to compile for?
Reply
#9
android ndk r9 and gcc 4.8 ... you might have more luck with that (not tested though).
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
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Can xbmc-android be compiled for MIPS?00