编译 Firefox的官方link在 https://wiki.mozilla.org/Mobile/Fennec/Android, 我只是记录下实践过程而已
Linux 下的 Firefox 是用gcc/g++ 基于glibc编译的
编译Android 下的 Firefox 需要使用 Android SDK 和Android NDK
Android 的 SDK/NDK tools 使用了32 libs, 所以在 64位 Linux下,还要安装若干32位的libs
If you're using a 64-bit Linux, you'll need to install 32 bit libs to allow the toolchain binaries to run. Otherwise you may get a "bash: file not found" error when trying to use any of the SDK/NDK tools.
确保 java javac都是1.7, 我的版本不一致,就遇到问题了
对于Android SDK的要求
Members of the Fennec team are successfully building Fennec with SDK Build Tools version 21, SDK Platform Tools 21, and Android SDK Tools 23.0.5. You will also need the "Android Support Library" and "Google Play Services"