How do I build phoenix? (nt)

Discussion about official Mozilla Firefox builds
Post Reply
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

How do I build phoenix? (nt)

Post by sig »

nt
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

I can't download the Mozilla source via CVS.

My company's firewall has the CVS port blocked.
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

so grab a source tarball

and do

make -f client.mk build

with a .mozconfig like

Code: Select all

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --enable-debug
ac_add_options --enable-optimize=-O2
#ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
#
ac_add_options --enable-xft
#
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

Well, they have it available via ftp, but I don't know how closely it matches the cvs in terms of updates.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

cdn wrote:so grab a source tarball

and do

make -f client.mk build

with a .mozconfig like

Code: Select all

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --enable-debug
ac_add_options --enable-optimize=-O2
#ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
#
ac_add_options --enable-xft
#


I tried that, but it appears that the mozilla build did not follow the options that I specified in the ~/.mozconfig

Maybe it's because I ran the build while logged in as root, but the .mozconfig was in my /home/sig directory?
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

sig wrote:Maybe it's because I ran the build while logged in as root, but the .mozconfig was in my /home/sig directory?


highly likely, it would have looked for (and not found) /root/.mozconfig
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

Ok, now it is working.

After the build is finished, will I need to do anything else?
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

I don't think so

I have the dist/bin directory of my source tree(s) in my path, so I just type phoenix -P 'profile', and I'm running what I just built
rwall
Posts: 32
Joined: November 5th, 2002, 6:19 am
Location: Ireland
Contact:

Post by rwall »

sig wrote:After the build is finished, will I need to do anything else?


As cdn says, you can run phoenix directly from the dist/bin directory. However you may want to save particular builds for running and rebuild phoenix with updated source and if the update doesn't compile/crashes etc. you'll still have your original build which you can continue using until the source is stable again.

I always build a tarball for installation in ~/apps/phoenix, this directory is in my path and I can continue to change/build my tree without fear of my browser being broken.

This thread describes how you can easily build a tarball from your newly built phoenix.
<a href="http://backprop.net/mozilla/bonsaibugs/">Bonsai Bugs</a> - Track bugs referenced in CVS checkins to the Mozilla Trunk, Phoenix, Camino and other interesting branches
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

I am getting a make error when I try to build mozilla/phoenix. Here is my ~/.mozconfig:

export MOZ_PHOENIX=1
export MOZ_CALENDER=0
export MOZ_ENABLE_XFT=1

mk_add_options MOZ_PHOENIX=1

# standard options
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-calender

# enable stuff
ac_add_options --enable-xft
ac_add_options --enable-freetype2

# use system libraries
ac_add_options --with-x
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng

# disable
ac_add_options --disable-xinerama
ac_add_options --disable-pedantic
ac_add_options --disable-ldap
ac_add_options --disable-xprint
ac_add_options --disable-installer
ac_add_options --disable-jsd
ac_add_options --disable-accessibility
ac_add_options --disable-auto-deps
ac_add_options --disable-dtd-debug
ac_add_options --disable-ipv6
ac_add_options --disable-logging
ac_add_options --disable-svg

# toolkit
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-gtk


And here is the make error:

/usr/bin/perl ../build/autoconf/make-makefile -t .. -d .. cleanup/Makefile
creating xpinstall/cleanup/Makefile
make[4]: Entering directory `/home/jphillips/mozilla/xpinstall/public'
Creating ../../dist/include/xpinstall
../../config/nsinstall -R -m 644 nsIDOMInstallTriggerGlobal.h nsIDOMInstallVersion.h nsSoftwareUpdateIIDs.h nsISoftwareUpdate.h ../../dist/include/xpinstall
/usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/xpinstall/.headerlist nsIDOMInstallTriggerGlobal.h nsIDOMInstallVersion.h nsSoftwareUpdateIIDs.h nsISoftwareUpdate.h
../../config/nsinstall -R -m 644 xpinstall.js ../../dist/bin/defaults/pref
../../config/nsinstall -R -m 644 nsIXPIDialogService.idl nsIXPIProgressDialog.idl nsIXPINotifier.idl nsPIXPIProxy.idl nsPIXPIStubHook.idl ../../dist/idl
Creating _xpidlgen/.done
nsIXPIDialogService.idl
../../dist/bin/xpidl -m header -w -I ../../dist/idl -I. -o _xpidlgen/nsIXPIDialogService nsIXPIDialogService.idl
nsIXPIProgressDialog.idl
../../dist/bin/xpidl -m header -w -I ../../dist/idl -I. -o _xpidlgen/nsIXPIProgressDialog nsIXPIProgressDialog.idl
nsIXPINotifier.idl
../../dist/bin/xpidl -m header -w -I ../../dist/idl -I. -o _xpidlgen/nsIXPINotifier nsIXPINotifier.idl
nsPIXPIProxy.idl
../../dist/bin/xpidl -m header -w -I ../../dist/idl -I. -o _xpidlgen/nsPIXPIProxy nsPIXPIProxy.idl
nsPIXPIStubHook.idl
../../dist/bin/xpidl -m header -w -I ../../dist/idl -I. -o _xpidlgen/nsPIXPIStubHook nsPIXPIStubHook.idl
../../config/nsinstall -R -m 644 _xpidlgen/nsIXPIDialogService.h _xpidlgen/nsIXPIProgressDialog.h _xpidlgen/nsIXPINotifier.h _xpidlgen/nsPIXPIProxy.h _xpidlgen/nsPIXPIStubHook.h ../../dist/include/xpinstall
/usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/xpinstall/.headerlist nsIXPIDialogService.h nsIXPIProgressDialog.h nsIXPINotifier.h nsPIXPIProxy.h nsPIXPIStubHook.h
make[4]: Leaving directory `/home/jphillips/mozilla/xpinstall/public'
make[4]: Entering directory `/home/jphillips/mozilla/xpinstall/res'
make[4]: Nothing to be done for `export'.
make[4]: Leaving directory `/home/jphillips/mozilla/xpinstall/res'
make[4]: Entering directory `/home/jphillips/mozilla/xpinstall/src'
Creating .deps
../../config/nsinstall -R -m 644 nsXPITriggerInfo.h ../../dist/include/xpinstall/usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/xpinstall/.headerlist nsXPITriggerInfo.h
make[4]: Leaving directory `/home/jphillips/mozilla/xpinstall/src'
make[4]: Entering directory `/home/jphillips/mozilla/xpinstall/stub'
Creating .deps
make[4]: Leaving directory `/home/jphillips/mozilla/xpinstall/stub'
make[4]: Entering directory `/home/jphillips/mozilla/xpinstall/cleanup'
Creating .deps
../../config/nsinstall -R -m 644 InstallCleanupDefines.h ../../dist/include/xpinstall
/usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/xpinstall/.headerlist InstallCleanupDefines.h
make[4]: Leaving directory `/home/jphillips/mozilla/xpinstall/cleanup'
make[3]: Leaving directory `/home/jphillips/mozilla/xpinstall'
make[3]: Entering directory `/home/jphillips/mozilla/l10n'
make[4]: Entering directory `/home/jphillips/mozilla/l10n/langpacks'
make[4]: Nothing to be done for `export'.
make[4]: Leaving directory `/home/jphillips/mozilla/l10n/langpacks'
make[3]: Leaving directory `/home/jphillips/mozilla/l10n'
make[3]: Entering directory `/home/jphillips/mozilla/toolkit'
make[3]: *** No rule to make target `export'. Stop.
make[3]: Leaving directory `/home/jphillips/mozilla/toolkit'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/home/jphillips/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/jphillips/mozilla'
make: *** [build] Error 2
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

What version of Perl?
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

Running Red Hat 8.0.

Code: Select all

[sig@hawk sig]$perl

This is perl, v5.8.0 built for i386-linux-thread-multi

Copyright 1987-2002, Larry Wall
Post Reply