红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Build firefox 3 trunk on ubuntu

Build firefox 3 trunk on ubuntu

Here are the steps I used:

1. get client.ml
$ cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk

2. sync firefox code

$ cd mozilla
$ make -f client.mk checkout MOZ_CO_PROJECT=browser

3. create .mozconfig

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-static
ac_add_options --enable-optimize
ac_add_options --disable-debug
#ac_add_options --enable-static
#ac_add_options --disable-shared
#ac_add_options --disable-libxul
ac_add_options --disable-tests

4.  install build dependency libs

sudo apt-get build-dep firefox

5. install curl
sudo apt-get install libcurl3-dev

6. install libdbus-glib-1-dev
sudo apt-get install libdbus-glib-1-dev

5 & 6 must be done, or else the build script will report error on missing curl.h or dbus-glib is too old

7. kick off build

make -f client.mk build

TOP

发新话题