Build Firefox 编译Firefox
2013-07-19 11:47 Paddle Zhou 阅读(1733) 评论(0) 编辑 收藏 举报-
准备
- 选择需要的firefox版本
- 选择最新的build工具
- 如果是windows系统的话,配置相应的环境(主要是安装vs版本)
-
编译
.mozconfig 中设置的参数是编译成功的关键
我设置的参数是
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_MAKE_FLAGS="-j1"
#mk_add_options MOZ_PACKAGE_NSIS=1
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-webgl
之前一直编译不成功,报如下错误:
/c/src/mozilla22/browser/build.mk:12: *** You are using GNU make to build Firefo
x with -jN on Windows. This will randomly deadlock. To compile a parallel build
on Windows run "python -OO build/pymake/make.py -f client.mk build". See https:/
/developer.mozilla.org/en/pymake for more details.. Stop.
是因为多核浏览器造成死锁,将编译参数设置成
mk_add_options MOZ_MAKE_FLAGS = "-j1"就可以了 参考:
- http://www.cnblogs.com/jianghust/archive/2010/06/14/1758234.html
- https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions?redirectlocale=en-US&redirectslug=Build_Documentation