android compiled on Mac OS issue - 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 compiled on Mac OS issue (/showthread.php?tid=313011) |
android compiled on Mac OS issue - kraka40 - 2017-04-23 Hey folks, been trying to troubleshoot builds for Android on MacOS Failing out with this error while making depends/target/zlib Quote:/Library/Developer/CommandLineTools/usr/bin/make -C zlib I noticed the configure file for zlib hardcoded AR to /usr/bin/libtool Is this a mistake, shouldn't I use the libtool in my toolchain? Thanks, RE: android compiled on Mac OS issue - kraka40 - 2017-04-24 Some specs if it helps anyone help pinpoint what either I'm doing wrong or where there is an issue in configuration: - platform MacOS Sierra 10.12.4 - I've compiled with same error with both Android 10e and 12b NDKs - target platform android-21 configure parameters... ./configure --with-tarballs=/Volumes/android-dev/kodi/kodi-depends/tarballs --host=arm-linux-androideabi --with-sdk-path=/Volumes/android-dev/android/sdk --with-ndk=/Volumes/android-dev/android/android-ndk-r10e --with-toolchain=/Volumes/android-dev/android/android-21 --prefix=/Volumes/android-dev/kodi/kodi-depends Anyone have any success with this config? RE: android compiled on Mac OS issue - kraka40 - 2017-04-25 had some success ... in the target/zlib/arm-linux-androideabi-android-21-debug directory reran the configure command with the appropriate cross compiler variables: Code: LD=/Volumes/android-dev/android/android-21.12b/bin/arm-linux-androideabi-ld CC=/Volumes/android-dev/android/android-21.12b/bin/arm-linux-androideabi-gcc AR=/Volumes/android-dev/android/android-21.12b/bin/arm-linux-androideabi-ar LIBTOOL=/Volumes/android-dev/kodi/kodi-depends/x86_64-darwin16.5.0-native/bin/libtool ./configure Any recommendations on how to modify source to pickup right cross-compiler options? RE: android compiled on Mac OS issue - Memphiz - 2017-04-25 Zlib compiles on linux while picking up the cross platform flags fine i guess (else the compile would fail on jenkins as well). I have no idea what the current state of compiling droid on osx is. Its a long time ago that i added it to the readme but atm i just don't have the time to verify it again RE: android compiled on Mac OS issue - kraka40 - 2017-04-26 (2017-04-25, 07:52)Memphiz Wrote: Zlib compiles on linux while picking up the cross platform flags fine i guess (else the compile would fail on jenkins as well). I have no idea what the current state of compiling droid on osx is. Its a long time ago that i added it to the readme but atm i just don't have the time to verify it again Yep get it .. time is tough to come by .. any pointers and I'll do some digging .. working on restoring my muscle memory for coding/compiling/freeware development. RE: android compiled on Mac OS issue - Memphiz - 2017-04-26 Can you try with this branch and report back? I got it to compile successfully with ndk 12b and the current SDK and my changes in that branch (using macos sierra): https://github.com/Memphiz/xbmc/commits/osx_droid RE: android compiled on Mac OS issue - kraka40 - 2017-04-27 will try and get back to you... RE: android compiled on Mac OS issue - kraka40 - 2017-04-27 (2017-04-26, 19:52)Memphiz Wrote: Can you try with this branch and report back? I got it to compile successfully with ndk 12b and the current SDK and my changes in that branch (using macos sierra): trying to debug further .. but got odd error during configuration Code: configure: error: "/Volumes/android-dev/android/android-ndk-r12b is not an NDK directory" i'll rebuild ndk but no problem with other ./configure runs RE: android compiled on Mac OS issue - kraka40 - 2017-04-27 compiling now ... looks like line 5663 of tools/depends/configure needs to change from if ! test -f "$use_ndk/RELEASE.TXT" ; then to if (! test -f "$use_ndk/source.properties" && ! test -f "$use_ndk/RELEASE.TXT") ; then RE: android compiled on Mac OS issue - kraka40 - 2017-04-27 ok so got past zlib but still having issues.. Code: ... still researching RE: android compiled on Mac OS issue - kraka40 - 2017-04-27 reran configure adding Code: --with-sdk=android-21 resulted in a better compile run, but failed in libintl.a .. before getting to zlib Code: libtool: compile: /Volumes/android-dev/android/android-21.12b/bin/arm-linux-androideabi-gcc -c -DLOCALEDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/share/locale\" -DLOCALE_ALIAS_PATH=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/share/locale\" -DLIBDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -DANDROID -Os -fexceptions -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include/android-21 -isystem /Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -DANDROID -Os -fexceptions -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include/android-21 -isystem /Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -fvisibility=hidden ./localename.c -o localename.o android compiled on Mac OS issue - Memphiz - 2017-04-27 Start from scratch and doe the make without -j{number of processes} - its most likely a parallel,building issue. I come around this by doing a make until it fails - then make -C tools/depends/target/{failing lib} distclean and run make again in tools/depends until you get through. There are no further changes needed in my branch. Everything you encounter has to be related to wrongly setup ndk or sdk packages or configure lines. RE: android compiled on Mac OS issue - kraka40 - 2017-04-28 (2017-04-27, 08:12)Memphiz Wrote: Start from scratch and doe the make without -j{number of processes} - its most likely a parallel,building issue. I come around this by doing a make until it fails - then make -C tools/depends/target/{failing lib} distclean and run make again in tools/depends until you get through. ok will redo both builds w/o parallel make and report back. RE: android compiled on Mac OS issue - kraka40 - 2017-04-28 still not working here's the error Code: libtool: compile: /Volumes/android-dev/android/android-21.12b/bin/arm-linux-androideabi-gcc -c -DLOCALEDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/share/locale\" -DLOCALE_ALIAS_PATH=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/share/locale\" -DLIBDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -DANDROID -Os -fexceptions -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include/android-21 -isystem /Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -DANDROID -Os -fexceptions -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -I/Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include/android-21 -isystem /Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21/include -fvisibility=hidden ./localename.c -o localename.o here's my configure Code: ./configure --with-tarballs=/Volumes/android-dev/kodi/kodi-depends-osxdroid/tarballs --host=arm-linux-androideabi --with-sdk-path=/Volumes/android-dev/android/sdk --with-ndk=/Volumes/android-dev/android/android-ndk-r12b --with-toolchain=/Volumes/android-dev/android/android-21.12b --prefix=/Volumes/android-dev/kodi/kodi-depends-osxdroid --with-sdk=android-21 my sdk Code: grep "Revision" source.properties my ndk Code: grep "Revision" source.properties android compiled on Mac OS issue - Memphiz - 2017-04-28 That --with-toolchain in your configure has to point to the toolchain ( /Volumes/android-dev/kodi/kodi-depends-osxdroid/arm-linux-androideabi-android-21 i think) start over from scratch again (git clean -xfd in kodi src dir will get the tree cleaned 100%) |