[ug-bosug] Build instructions for Mozilla on Solaris (Fwd: Is my checklist for building Firefox/Mozilla correct ?)

Sriram Narayanan sriramnrn at gmail.com
Tue Mar 13 21:02:19 PDT 2007


I'd used the following to build Firefox 1.5.0.7 on Solaris. I couldn't
get this right with Firefox 2.0 and above.

-- Sriram

---------- Forwarded message ----------
From: Alfred Peng <Alfred.Peng at sun.com>
Date: Jan 21, 2007 9:53 AM
Subject: Re: Is my checklist for building Firefox/Mozilla correct ?
To: Sriram Narayanan <sriramnrn at gmail.com>
Cc: mozorg-builds at sun.com


Forward Ginn's instructions.

-Alfred

Sriram Narayanan wrote:
> Hi:
>
> I wish to build FireFox on Solaris, and perhaps even patch the build
> scripts such that FireFox can be build out of the box on Solaris.
> Please validate my checklist below.
>
> 1. Install Solaris 10
> 2. Install the Sun Studio Compilers
> 3. Download the FF sources from Mozilla
> 4. Use the about:buildconfig in the FireFox build taken from the site
> ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.1/contrib/solaris_tar_ball/
> 5. Follow Masaki's advice given at
> http://groups.google.com/group/mozilla.dev.builds/browse_thread/thread/4edcf532760cdb09/f140f47d46231bee#f140f47d46231bee
>
> Are the above correct ?
>
> Any advice is appreciated, especially because I have limited bandwidth
> at home to download source from Mozilla (or anywhere else)
>
> -- Sriram
>



---------- Forwarded message ----------
From: Ginn Chen <Ginn.Chen at Sun.COM>
To: Rick Mach <rmach at arlut.utexas.edu>
Date: Fri, 12 Jan 2007 13:49:05 +0800
Subject: Re: Firefox build instructions
Hi Rick,

You can find documents at
http://developer.mozilla.org/en/docs/Build_Documentation

Here're some special setting for Solaris.

You'd better use Sun Studio 11. You can download it from sun website for free.
Here're my setting in bash.rc (on Solaris 10).

export ForteHome=/opt/SUNWspro
export PATH=$ForteHome/bin:/usr/bin:/usr/local/bin:/opt/sfw/bin:/usr/sfw/bin:/sbin:/usr/sbin:/usr/ccs/bin:$PATH
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/sfw/lib
export CC="$ForteHome/bin/cc"
export CXX="$ForteHome/bin/CC"
export CFLAGS="-xlibmil"
export CXXFLAGS="-xlibmil -xlibmopt -features=tmplife -norunpath"
export LDFLAGS="-R'\$\$ORIGIN:\$\$ORIGIN/..' -R/usr/sfw/lib
-R/opt/sfw/lib -R/usr/local/lib -lXft -lfontconfig"

Now check out the code or download it from mozilla.org.
cvs -d :pserver:anonymous at cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
cd mozilla
make -f client.mk checkout MOZ_CO_PROJECT=browser

Create a file name .mozconfig in the mozilla source directory.
Put these in the file:
ac_add_options --enable-xft
ac_add_options --disable-freetype2
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-svg
ac_add_options --disable-canvas
ac_add_options --enable-optimize
ac_add_options --disable-auto-deps
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-application=browser
. $topsrcdir/browser/config/mozconfig

For Solaris 8/9, you can use
ac_add_options --enable-default-toolkit=gtk
ac_add_options --disable-xft
ac_add_options --disable-freetype2
instead.

If you're building Firefox 2 or  earlier, you can use
ac_add_options --enable-svg
ac_add_options --enable-canvas
(I have to disable them, because cairo-gtk2 toolkit is not stable on
Solaris 10 yet)

The last step is
./configure
gmake

You can find your build in dist/bin

If you want a tar ball, cd xpinstall/packager and run gmake.
(an error may occur here, use gtar instead of tar will be fine.)

Let us know if you meet a problem.
Please send detail information of your machine and the error log.

Thanks,

Ginn


On Jan 12, 2007, at 6:27 AM, Rick Mach wrote:
 I have a need to build my own copy of Firefox for Solaris.  Do you
have instructions/makefile/etc that you could share that I could use
as a starting point for utilizing the Firefox source code and getting
it to compile for Solaris?

 Thanks,
 Rick Mach
 Applied Research Laboratories,
 The University of Texas at Austin
 512-835-3644


--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: x82869 / +86-10-62673869
Fax:   +86-10-62780969



More information about the ug-bosug mailing list