Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7


RE: Compile for Android fails at configure - Memphiz - 2012-07-16

This is only a warning - its not fatal imho. Go on.


RE: Compile for Android fails at configure - davilla - 2012-07-16

For those compiling themselves, take the time to read and actually comprehend README.android, this is not your typical android build and you will miss important details regarding the build setup.

Aside from building Android from source code, this build is about the largest and most complex that Android will ever see and we have tried to make it easy and painless but you need to read and comprehend README.android or you WILL epic fail.



RE: Compile for Android fails at configure - manxam - 2012-07-16

Davilla, the only thing that would be worth noting in the README is that one needs JDK/JRE 6. Ubuntu 12.04 at least defaults to JDK 7 and you'll end up with errors trying to build the apk. The readme only states that to make sure you have a recent version of JDK/JRE installed.

Otherwise, your build instructions are PERFECT!

Cheers,
M


RE: Compile for Android fails at configure - s7mx1 - 2012-07-17

built @ 80985e9 and the non-ascii character-handling is fixed and flac now plays just fine. However I did notice that in xbmc.log lots of entries complaining about libxbvorbis.so not loaded.

(2012-07-15, 22:57)theuni Wrote: We aren't ready for bug reports yet (remember, we asked that only developers build/run for now).

The above problems are all known (except for flac, which was a small oversight. will push that up in a few min).

the libnfs author is actively working on an android port with his own rpc stuff. libnfs is currently the only lib that's not successfully built (which sucks, cause I share all my local media via nfs Smile. Watch progress here: https://github.com/sahlberg/libnfs/tree/zdr




RE: Compile for Android fails at configure - chetanzcool - 2012-07-20

I get the below error Building dependencies

----------------------------------------------------------------------
Libraries have been installed in:
$HOME/ANDROID_TOOL_CHAIN/android-14/staging/armeabi-v7a/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `$HOME/xbmc-android/tools/android/depends/libmicrohttpd/armeabi-v7a/src/daemon'
make[3]: Leaving directory `$HOME/xbmc-android/tools/android/depends/libmicrohttpd/armeabi-v7a/src/daemon'
make[2]: Leaving directory `$HOME/xbmc-android/tools/android/depends/libmicrohttpd/armeabi-v7a/src/daemon'
touch .installed-armeabi-v7a
make[1]: Leaving directory `$HOME/xbmc-android/tools/android/depends/libmicrohttpd'
make -C mysql
make[1]: Entering directory `$HOME/xbmc-android/tools/android/depends/mysql'
make -C armeabi-v7a/include
make[2]: Entering directory `$HOME/xbmc-android/tools/android/depends/mysql/armeabi-v7a/include'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `$HOME/xbmc-android/tools/android/depends/mysql/armeabi-v7a/include'
make[1]: *** [armeabi-v7a/libmysql/.libs/libmysqlclient.a] Error 2
make[1]: Leaving directory `$HOME/xbmc-android/tools/android/depends/mysql'
make: *** [mysql] Error 2


RE: Compile for Android fails at configure - Memphiz - 2012-07-20

make -C $HOME/xbmc-android/tools/android/depends/mysql distclean
make -C $HOME/xbmc-android/tools/android/depends/


RE: Compile for Android fails at configure - chetanzcool - 2012-07-20

thanks Memphiz ,

I did have a dependency to install sudo apt-get install autopoint , apart from what was required in the read me.

Looks like its all getting compiled now.


RE: Compile for Android fails at configure - chetanzcool - 2012-07-20

(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.


I had to do the keytool step manually as suggested .

keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"

else apk creation would fail.

Quick question , I successfully built the apk using API - 10 , however now i want to build for API - 15

Should i rebuild all ? after setting configure file to use the below ?

./configure --with-toolchain=$HOME/ANDROID_TOOL_CHAIN/android-14 --with-sdk-platform=android-15







RE: Compile for Android fails at configure - Memphiz - 2012-07-20

sure you should Smile


RE: Compile for Android fails at configure - chetanzcool - 2012-07-20

Running this on my HTC one X , I dont have any audio though , i can see the visualizers working but no audio output either while playing music or Videos. Any suggestions ?

i am on ICS


RE: Compile for Android fails at configure - Hack_kid - 2012-07-24

how do you edit bashrc so you dont have to put all the sdk ndk toolchain and tarball paths everytime? i know theres a way because i did it to compile AOSP roms


RE: Compile for Android fails at configure - Montellese - 2012-07-24

You open ~/.bashrc in your favourite editor and add the respective env vars you want to set. Then you save and run "source ~.bashrc" or you close all your open terminals and re-open them.
The names of the available env vars are available from ./configure --help in tools/android/depends.


RE: Compile for Android fails at configure - spiff - 2012-07-24

We are not your local bash course.


RE: Compile for Android fails at configure - Hack_kid - 2012-07-24

so just like XBMC_ANDROID_TOOLCHAIN=path/to/tool/chain?


RE: Compile for Android fails at configure - davilla - 2012-07-25

http://tldp.org/LDP/abs/html/sample-bashrc.html