1998-06-18 23:41:22 +00:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
1998-11-05 20:55:43 +00:00
|
|
|
<TITLE>Building the Mozilla client on unix platforms</TITLE>
|
1998-06-18 23:41:22 +00:00
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
|
|
|
|
ALINK="#FF0000">
|
|
|
|
<HR>
|
1998-11-05 20:55:43 +00:00
|
|
|
<H1>Building the Mozilla client on Unix platforms</H1>
|
1998-06-18 23:41:22 +00:00
|
|
|
|
|
|
|
<H2>
|
1998-11-05 20:55:43 +00:00
|
|
|
Daniel Nunes, <TT><A HREF="mailto:leaf@mozilla.org">leaf@mozilla.org</A></TT></H2>
|
|
|
|
v 1.2, 1998-11-02
|
1998-06-18 23:41:22 +00:00
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR><I>How to build Mozilla on a Unix System.</I>
|
|
|
|
<HR>
|
|
|
|
<H2>1. <A HREF="#s1">Introduction</A></H2>
|
|
|
|
|
|
|
|
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
|
|
|
|
|
|
|
|
<UL>
|
|
|
|
<LI>
|
|
|
|
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
|
|
|
|
|
|
|
|
<LI>
|
|
|
|
<A HREF="#ss2.2">2.2 Requirements</A></LI>
|
|
|
|
|
|
|
|
<LI>
|
1998-11-05 20:55:43 +00:00
|
|
|
<A HREF="#ss2.3">2.3 Build the Lizard</A></LI>
|
1998-06-18 23:41:22 +00:00
|
|
|
|
|
|
|
<LI>
|
1998-11-05 20:55:43 +00:00
|
|
|
<A HREF="#ss2.4">2.4 After the Build</A></LI>
|
1998-06-18 23:41:22 +00:00
|
|
|
</UL>
|
|
|
|
|
|
|
|
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<H2><A NAME="s1">1. Introduction</A></H2>
|
|
|
|
|
1998-11-05 20:55:43 +00:00
|
|
|
<P>
|
|
|
|
Perhaps you are interested in building classic Mozilla, before the
|
|
|
|
fall of the old layout engine, and the rise of the new. If so, the
|
|
|
|
<B><A HREF="classic-unix.html">Classic Mozilla Build document</A></B>
|
|
|
|
is what you're looking for.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
1998-06-18 23:41:22 +00:00
|
|
|
<P>
|
|
|
|
What this document is: A guide to building the Mozilla application.
|
|
|
|
<BR>
|
|
|
|
This includes:
|
|
|
|
<OL>
|
|
|
|
<LI> A listing of the development tools you will need to build Mozilla. </LI>
|
1998-11-05 20:55:43 +00:00
|
|
|
<LI> A sample set of commands to build Mozilla using the Autoconf
|
|
|
|
build system. </LI>
|
1998-06-18 23:41:22 +00:00
|
|
|
</OL>
|
|
|
|
<P>
|
|
|
|
If you're looking for documentation on developing features or fixing bugs,
|
|
|
|
the Mozilla
|
1998-11-05 20:55:43 +00:00
|
|
|
<A HREF="../tplist.html">Technical Documents</A> or
|
|
|
|
<A HREF="../../../library.html"> Library </A>
|
1998-06-18 23:41:22 +00:00
|
|
|
are probably what you're looking for.
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
|
|
<H2><A NAME="s2">2. Building Mozilla </A></H2>
|
|
|
|
<P>
|
|
|
|
<UL>Each of the following subsections describes, or gives references to
|
|
|
|
descriptions of, the steps necessary to build Mozilla.
|
|
|
|
</UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
<UL>
|
1998-06-18 23:41:22 +00:00
|
|
|
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
|
|
|
|
<P>
|
|
|
|
<UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
|
|
|
|
Eventually, there will be two principal ways of getting the code,
|
|
|
|
<A HREF="../../../download.html"> ftp</A> and
|
|
|
|
<A HREF="../../../cvs.html"> CVS</A>.
|
|
|
|
CVS will provide the most current code for building, but is
|
|
|
|
slower than ftp. Ftp drops are generally produced once per month,
|
|
|
|
and are known to compile on some machine, somewhere.
|
|
|
|
|
|
|
|
<B>For now</B>, however, you must do the following to obtain the newest
|
|
|
|
browser source:
|
|
|
|
<BR>
|
|
|
|
<CODE>
|
|
|
|
cvs co mozilla/nglayout.mk<BR>
|
|
|
|
cd mozilla<BR>
|
|
|
|
gmake -f nglayout.mk pull_all<BR>
|
|
|
|
</CODE>
|
|
|
|
<BR>
|
|
|
|
This should pull all the right source.
|
1998-06-18 23:41:22 +00:00
|
|
|
</UL>
|
|
|
|
<P>
|
|
|
|
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
|
|
|
|
<UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
The following should be installed:
|
1998-06-18 23:41:22 +00:00
|
|
|
<UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
<LI>Motif 1.2
|
|
|
|
<LI>The native C/C++ compiler (or GNU C/C++ compiler 2.7.2 in lieu of the
|
|
|
|
native compiler)
|
1998-06-18 23:41:22 +00:00
|
|
|
<LI>GNU make 3.74 or better
|
1998-11-05 20:55:43 +00:00
|
|
|
<LI>Perl5
|
|
|
|
<LI><A HREF="../../../projects/autoconf/">Autconf</A> requirements,
|
|
|
|
including NSPR.
|
|
|
|
<LI><CODE>LD_LIBRARY_PATH</CODE> must include the path to the NSPR
|
|
|
|
shared objects.<BR>
|
|
|
|
For most people, this means adding <CODE>/usr/local/nspr/lib</CODE>
|
|
|
|
to <CODE>LD_LIBRARY_PATH</CODE>
|
|
|
|
(either:
|
|
|
|
<BR>
|
|
|
|
<CODE>setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/nspr/lib</CODE>
|
|
|
|
<BR>
|
|
|
|
or
|
|
|
|
<BR>
|
|
|
|
<CODE>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nspr/lib</CODE>
|
|
|
|
.<BR>
|
|
|
|
If you get an error like "No such variable" then omit the
|
|
|
|
<CODE>${LD_LIBRARY_PATH}:</CODE> part
|
|
|
|
)
|
1998-06-18 23:41:22 +00:00
|
|
|
</UL>
|
|
|
|
<P>
|
|
|
|
Your hardware should be equal to, or better than:
|
|
|
|
<UL>
|
|
|
|
32 MB RAM, 128 MB swap (64 MB RAM recommended)
|
|
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<P>
|
1998-11-05 20:55:43 +00:00
|
|
|
<H2><A NAME="ss2.3">2.3 Build the Lizard</A></H2>
|
1998-06-18 23:41:22 +00:00
|
|
|
<P>
|
|
|
|
<UL>
|
|
|
|
<CODE>
|
1998-11-05 20:55:43 +00:00
|
|
|
autoconf<BR>
|
|
|
|
mkdir obj-`./build/autoconf/config.guess`<BR>
|
|
|
|
cd obj-`./build/autoconf/config.guess`<BR>
|
|
|
|
../configure --with-nspr=/usr/local/nspr --enable-toolkit=motif<BR>
|
|
|
|
gmake depend<BR>
|
|
|
|
gmake<BR>
|
1998-06-18 23:41:22 +00:00
|
|
|
</CODE>
|
|
|
|
</UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
<H2><A NAME="ss2.4">2.4 After the build </A></H2>
|
|
|
|
<UL>
|
|
|
|
|
|
|
|
<LI> <CODE>cd dist/bin</CODE> and you should see links to the objects you
|
|
|
|
need to run <CODE>main</CODE>.
|
|
|
|
|
|
|
|
<LI>On most unixen LD_LIBRARY_PATH must be set to wherever the necessary
|
|
|
|
libraries are.
|
1998-06-18 23:41:22 +00:00
|
|
|
|
|
|
|
<UL>
|
1998-11-05 20:55:43 +00:00
|
|
|
<LI>On HP-UX, the equivalent environment variable is <CODE>SHLIB_PATH</CODE>.
|
|
|
|
<LI>On AIX, the equivalent environment variable is <CODE>LIBPATH</CODE>.
|
|
|
|
</UL>
|
|
|
|
</UL>
|
1998-06-18 23:41:22 +00:00
|
|
|
</UL>
|
|
|
|
<HR>
|
|
|
|
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
|
1998-11-05 20:55:43 +00:00
|
|
|
<LI>I'm sure there are bound to be some. Send
|
|
|
|
<A HREF="mailto:leaf@mozilla.org"> me</A> mail.
|
1998-06-18 23:41:22 +00:00
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|