andreasgal/B2G — Issue #84: Configure Error: Snipped NDROID_NDK variable 
Author: arky
Created: 2011-12-12 10:22:36+00:00
State: open

$make fails with following error.
Error:
Adding client.mk options from /home/arky/src/B2G/gecko/mozconfig:
MOZ_OBJDIR=$(TOPSRCDIR)/objdir-prof-android
MOZ_MAKE_FLAGS=-s -j16
cd /home/arky/src/B2G/gecko/objdir-prof-android
/home/arky/src/B2G/gecko/configure
Adding configure options from /home/arky/src/B2G/gecko/mozconfig:
--with-android-sdk=NDROID_SDK/platforms/android-13
--with-android-ndk=NDROID_NDK
--with-android-toolchain=NDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86
--with-android-platform=NDROID_NDK/platforms/android-5/arch-arm
--target=arm-linux-androideabi
--with-endian=little
--enable-raw
--enable-application=b2g
--disable-elf-hack
--enable-debug-symbols
--enable-profiling
--with-ccache
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... arm-linux-android
checking build system type... i686-pc-linux-gnu
checking for mawk... mawk
checking for perl5... no
checking for perl... /usr/bin/perl
configure: error: The path in --with-android-sdk isn't valid (source.properties hasn't been found).
*** Fix above errors and then restart with "make -f client.mk build"
make[3]: *** [configure] Error 1
make[2]: *** [/home/arky/src/B2G/gecko/objdir-prof-android/Makefile] Error 2
make[1]: *** [build] Error 2
make: *** [gecko] Error 2

###########
mozconfig
###########

$ cat gecko/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-prof-android

# XXX our build system doesn't seem to respect toplevel -j ...
# hard-coding this sucks
mk_add_options MOZ_MAKE_FLAGS="-s $MAKE_FLAGS"

# XXX need a plan for toolchain and multi-dev-platform support
topdir="`pwd`/../.."
gonk="$topdir/glue/gonk"
sys=`uname -s | tr "[[:upper:]]" "[[:lower:]]"`

# XXX need to figure out how to deal with SDKs ... this sucks.
ac_add_options --with-android-sdk="$ANDROID_SDK/platforms/$ANDROID_SDK_PLATFORM"
ac_add_options --with-android-ndk="$ANDROID_NDK"
ac_add_options --with-android-toolchain="$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86"
ac_add_options --with-android-platform="$ANDROID_NDK/platforms/android-5/arch-arm"
ac_add_options --target=arm-linux-androideabi
ac_add_options --with-endian=little
ac_add_options --enable-raw

ac_add_options --enable-application=b2g
ac_add_options --disable-elf-hack

ac_add_options --enable-debug-symbols
ac_add_options --enable-profiling
ac_add_options --with-ccache
arky@Arky-Think:~/src/B2G$ echo $ANDROID_NDK
/opt/android-ndk-r7/
arky@Arky-Think:~/src/B2G$ echo $ANDROID_SDK
/opt/android-sdk-linux/