Android Compile for Android fails at configure - 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) +--- Thread: Android Compile for Android fails at configure (/showthread.php?tid=136049) |
Compile for Android fails at configure - PersiansOwn - 2012-07-14 Apparently the --with-toolchain option appears to be broken in configure. (Unless I'm doing something wrong, which is probably the case) Here is my input. kmobs@ubuntu:~/xbmc-android/tools/android/depends$ ./configure --with-toolchain /home/kmobs/android-toolchain/android-14/bin/arm-linux-androideabi configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: /home/kmobs/android-toolchain/android-14/bin/arm-linux-androideabi checking for /home/kmobs/android-toolchain/android-14/bin/arm-linux-androideabi-gcc... no configure: WARNING: host was not specified. guessing. checking for gcc... no however, kmobs@ubuntu:~/xbmc-android/tools/android/depends$ ls /home/kmobs/android-toolchain/android-14/bin/arm-linux-androideabi-gcc /home/kmobs/android-toolchain/android-14/bin/arm-linux-androideabi-gcc The file is there, but for some reason it will not build with the toolchain. Any idea why? Thanks. RE: Compile for Android fails at configure - Anssi - 2012-07-14 Use: Code: ./configure --with-toolchain=/home/kmobs/android-toolchain/android-14 I.e. don't add the "/bin/arm-linux-androideabi" and use a '=' between the path and "--with-toolchain". RE: Compile for Android fails at configure - SylencedOne - 2012-07-14 Just curious if you have been able to compile XBMC successfully. During compilation I get the following error: Code: checking sys/inotify.h usability... yes In the config.log, I see the following: Code: conftest.cpp:88:32: fatal error: boost/shared_ptr.hpp: No such file or directory RE: Compile for Android fails at configure - Anssi - 2012-07-14 Run make for depends without '-j N', to see if there was some error there. On parallel builds you may sometimes not see the error. RE: Compile for Android fails at configure - s7mx1 - 2012-07-14 @Anssi I am experiencing a lot compiling/configuration errors. I had them all squashed thanks to google. Did all the developers compile them under OSX or older SDK/NDK? RE: Compile for Android fails at configure - Montellese - 2012-07-14 Support for building on OSX was added only a few weeks ago. The rest of the development was all done on Linux. It would be helpful to know what NDK you are using how you built the standalone toolchain etc. RE: Compile for Android fails at configure - s7mx1 - 2012-07-14 Installed the latest SDK and NDK: NDK android-9 SDK platform 10 OS: Ubuntu 12.04 64bit Toolchain used the prebuilt that comes with NDK. Here is my patch http://db.tt/2ECJY3b4 (2012-07-14, 16:50)Montellese Wrote: Support for building on OSX was added only a few weeks ago. The rest of the development was all done on Linux. It would be helpful to know what NDK you are using how you built the standalone toolchain etc. RE: Compile for Android fails at configure - Anssi - 2012-07-14 Did you read docs/README.android? docs/README.android Wrote:Because the Android NDK is lacking support for wide characters (wchar_t) Sounds to me like you used the regular NDK. RE: Compile for Android fails at configure - shadow - 2012-07-14 I just finished successfully compiling this with zero experience on compiling Android software before. Here are some notes based on using Linux as the compile environment The following command saved quite a bit of dependency problems that I had before running it sudo apt-get build-dep xbmc I also had to install curl to get the tarballs which the compile output cut off the name so I had a hard time figuring out Also since I never compiled before and never used eclipse to auto generate it I had the create my own keystore using this command keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US" PS for when it was done and working it took a little to figure how to get the full menu on a source to do stuff like edit it. In the end it was long press the folder then slide my finger off it to leave it selected but not opened, then hit the menu button. Finally I just want to thank the devs for this great software. RE: Compile for Android fails at configure - Anssi - 2012-07-14 For the record, I've never needed to do any keytool stuff manually, and I don't use eclipse. That step shouldn't be necessary. RE: Compile for Android fails at configure - shadow - 2012-07-14 (2012-07-14, 18:58)Anssi Wrote: For the record, I've never needed to do any keytool stuff manually, and I don't use eclipse. That step shouldn't be necessary. According to the place I got that command it is generated by either Eclipse or ant debug, maybe you did the latter. Either way I needed to run it since I got a error that the debug.keystore didn't exist and it stopped the "make apk" step, so some people may need it and that is good enough reason to add it. RE: Compile for Android fails at configure - SylencedOne - 2012-07-14 (2012-07-14, 15:08)Anssi Wrote: Run make for depends without '-j N', to see if there was some error there. On parallel builds you may sometimes not see the error. Thank you, that was my issue. (2012-07-14, 18:56)shadow Wrote: I just finished successfully compiling this with zero experience on compiling Android software before. Here are some notes based on using Linux as the compile environment This is very helpful. I was able to get compiled on API level 14. Installed on a GSM Galaxy Nexus. Looks and runs great so far. Thanks to everyone who contributed to this project (and everyone who will in the future). RE: Compile for Android fails at configure - PersiansOwn - 2012-07-14 Thanks for all your help everyone. I have it compiling as we speak RE: Compile for Android fails at configure - sn0wmis3r - 2012-07-14 I managed to get a clean compile but it crashes when it tries to start. I'm on a T989 Galaxy S2 (hercules) running cm9. Here is my logcat output (might include some noise from other apps, the filter on xbmc restricts too much of the logs): http://pastebin.com/nRJVvv1Q RE: Compile for Android fails at configure - Memphiz - 2012-07-14 Anssi it was needed on osx too. We have it in the readme too iirc. |