Hi,
I'm trying to build Firefox for Android following instructions on the
Wiki, but failing
https://wiki.mozilla.org/Mobile/Fennec/Android
I'm running a virtual machine built from scratch with Ubuntu 14.04LTS
(VMWare Fusion), I followed step by step the "Quick Script" section, but
when I run "./mach build" I get
0:06.69 configure:16650: checking for zipalign
0:06.69 configure:16699: checking for dx
0:06.69 configure:16748: checking for aapt
0:06.69 configure:16797: checking for aidl
0:06.69 configure:16846: checking for adb
0:06.69 configure: error: The program zipalign was not found. Use
--with-android-sdk={android-sdk-dir}.
In fact, if I try
$ find ~/opt -iname 'zipalign*'
I find only an help file
(adt-bundle-linux/sdk/docs/tools/help/zipalign.html). So I run the
Android SDK GUI updater
$ ~/opt/adt-bundle-linux/sdk/tools/android
Deselect all the new stuff that he wants me to download, install 3
updates for installed packages plus "Android SDK Build-tools" (API 20)
which was not previously selected/installed (I think that should be
added to the Wiki). At this point I have at least an executable:
$ find ~/opt -iname 'zipalign*'
/home/user/opt/adt-bundle-linux/sdk/build-tools/20.0.0/zipalign
/home/user/opt/adt-bundle-linux/sdk/docs/tools/help/zipalign.html
But this doesn't fix the error. I even added the path to .bashrc (adding
/20.0.0 to the path suggested on the wiki)
export
PATH=$PATH:$HOME/opt/adt-bundle-linux/sdk/tools:$HOME/opt/adt-bundle-linux/sdk/build-tools/20.0.0/:$HOME/opt/adt-bundle-linux/sdk/platform-tools
So "zipalign" is recognized when run in terminal, but "./mach build"
still fails.
My .mozconfig looks like this
ac_add_options --with-android-ndk="$HOME/opt/android-ndk-r8e"
ac_add_options
--with-android-sdk="$HOME/opt/adt-bundle-linux/sdk/platforms/android-19"
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi
ac_add_options --with-ccache
mk_add_options MOZ_OBJDIR="$HOME/mozbuild/objdir-fennec"
I searched around and found this bug, which should actually make the
problem less frequent.
https://bugzilla.mozilla.org/show_bug.cgi?id=1032756
What am I doing wrong? Are the instructions out of date?
Francesco
Note: I have repeated the entire process twice, building a new VM, and
got the same results.
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev