Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184) +---- Thread: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" (/showthread.php?tid=174186) Pages:
1
2
|
Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-24 Hi I have been trying to compile xbmc for android jellybeans for a few days now. But I am unable to fix this error. I ran "sudo make" as for regular make I kept getting File Permission errors. I have added last few lines of the make to paste bin. Please have a look and tell me what I need to do. PasteBin Dump Thanks RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - Koying - 2013-09-24 Aren't you out of disk space? Anyway, remove "/tmp/xbmc-android/pcre-7.9.tar.gz" which seems corrupted RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-24 (2013-09-24, 13:20)Koying Wrote: Aren't you out of disk space? Well removing the corrupted file did the trick but now I am getting a new error: Code: checking for gcc... /usr/bin/gcc Any ideas? RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - Koying - 2013-09-24 Did you follow the docs/README.android? It seems it is trying to compile the arm lib with the x86 gcc compiler... Did you correctly run "configure" in "tools/depends"? With what parameters? RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-24 I did run all processes in README.android file. But the issue was that configure command examples that were given in "tools/depends/README" were for ndk r7 crystax release, so I had to change some parameters. This is the configure command that I ran: Code: sudo ./configure --with-toolchain=/home/jehanzeb-malik/Documents/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7 --prefix=/opt/xbmc-deps --host=arm-linux-androideabi --with-sdk-path=/home/jehanzeb-malik/Documents/android-sdk-linux --with-ndk=/home/jehanzeb-malik/Documents/android-ndk-r8e --with-sdk=android-14 --with-tarballs=/tmp/xbmc-android This is the final response I got for configure command: Code: configure: creating ./config.status RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - Koying - 2013-09-24 Mmm... Did you do the Code: ./make-standalone-toolchain.sh --ndk-dir=../../ \ "--with-toolchain" in configure should point to the "--install-dir" above. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-24 I am pretty sure I did that. Well I am re-working on a fresh copy of source code. I will keep the record of things that I do. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-24 Strange I did not get this before. I ran the following commands to create the Android NDK toolchain(changed the location for toolchain): Code: ./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=/home/jehanzeb-malik/Documents/android-toolchain-r8e/android-14 --platform=android-14 --toolchain=arm-linux-androideabi-4.7 But it throwed this at me Code: Host system 'linux-x86' is not supported by the source NDK! I apologize for bugging for these small issues, but its been a long time since I last worked on Linux. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - HenryFord - 2013-09-25 Did you try passing the parameter as requested? Code: ./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=/home/jehanzeb-malik/Documents/android-toolchain-r8e/android-14 --platform=android-14 --toolchain=arm-linux-androideabi-4.7 --system=linux-x86_64 RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-25 Yes I did that, and it is currently in the process of make. But it is maybe cloning addons from git and that is taking too long. My internet connection is pretty good, but first time it tried, the server request timed out. I am trying again though. Code: cd /tmp/xbmc-android; git clone --bare git://github.com/opdenkamp/xbmc-pvr-addons.git RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - HenryFord - 2013-09-25 Did it fail at that operation? Because that certainly should not happen - cloning the xbmc-pvr-addons repo bare should result in around 6MB of data - so the connection should not break down over that little bit of data. Have you tried to clone it manually? Does the "server request timed out"-error pop up there as well? However: This confuses me - this is part of the build process of XBMC, not part of the build process of the toolchain (that's where we were stuck, weren't we?) RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-25 I had to cancel the make and manually had to clone the git repo I mentioned in my previous comment. After that I re-did the things and it well. Now I am having a new error. This time it is when I ran the make apk command. Before this everything was successful. Code: sudo make apk Now I am getting this error. Code: cd xbmc/assets/addons; rm -rf screensaver.rsxs.euphoria visualization.dxspectrum visualization.milkdrop visualization.projectm Could it be that the process is requiring too much memory? In that case is there a way to increase it. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - HenryFord - 2013-09-25 No, that's not the case - the problem is the make file. The location of aapt changed quite a while ago. My suggestion would be linking the proper aapt to platform-tools. For example for Android 4.2.2: Code: ln -s /home/jehanzeb-malik/Documents/android-sdk-linux/build-tools/android-4.2.2/aapt /home/jehanzeb-malik/Documents/android-sdk-linux/platform-tools/aapt That should do the trick. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - JehanzebMalik - 2013-09-28 Sorry for replying so late to this thread. I got a little dis-hearted with my progress and took a break. Thanks HenryFord for the answer. I did that and I got the link to file. But I have sdk version 22.2.1 and the aapk files that I have in the package are on the path Code: ~/Documents/android-sdk-linux/build-tools/18.0.1/aapk But then I got new warnings and errors. I have shared the last few lines here. I think I should go to a previous version/revision of sdk. Would it work? If yes than to what version do I need to get? Thanks for getting me this far. A little push and I think I will be through. RE: Android: Compiling In Linux Mint 15 Cinnamon "Error 2" - HenryFord - 2013-09-28 Which version of Java are you using? This problem can arise when you're using Java7 instead of Java6 to compile. |