实践编译 Firefox Fennec

本文详细记录了在Linux环境下编译Firefox Fennec for Android的过程,包括需要的Android SDK、NDK版本,以及在64位系统中安装32位库的需求。编译时需确保Java版本为1.7,并设置好.mozconfig文件。使用.mozconfig指定Android NDK和SDK路径,然后通过运行`./mach build`和`./mach package`来编译和生成APK。当编译成功,系统显示'Your build was successful!'即完成。

编译 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

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值