Changes

Jump to: navigation, search

User:Backinblakk

2,369 bytes added, 14:39, 20 February 2007
new, complete Mac OS X trunk build info
=Building Firefox=
Just to jump in, ==On the PC==I am trying have yet to complete a build firefoxon the PC==Problems==
When I installed cygwin, I left the line endings as UNIX type (recommended) - and when I tried to check out I got the following error:
===The error (1) ===
===The solution (2) ===
To be continued...
 
==On the Mac==
Okay, so I'm on a Power PC Mac G5 Dual 2 GHz running OS X 10.4.7 (I can't update to 10.4.8 because it messes up the networked printer).
 
Following the instructions on [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites Mac OS X Build Prerequisites] was tremendously useful. Xcode installers were already on the system and downloading DarwinPorts was a speedy.
 
Once DarwinPorts was installed, I installed libIDL and GLib:
<pre>
$ sudo port sync
$ sudo port install libidl
</pre>
 
Following that I installed autoconf:
<pre>
$ sudo port install autoconf213
</pre>
 
I also changed my compiler:
<pre>
$ sudo gcc_select 3.3
</pre>
 
At this point, I tried to check out the source code, but I hadn't followed the directions closely enough, and didn't have a .mozconfig file set up and so I went back to the drawing board.
 
I set up a .mozconfig file based on the [http://lxr.mozilla.org/mozilla/source/browser/config/mozconfig default] and this is what it ended up being (includes the use of objdir based on [http://developer.mozilla.org/en/docs/Configuring_Build_Options#Using_a_.mozconfig_Configuration_File this page]:
<pre>
1 # This file specifies the build flags for Firefox. You can use it by adding:
2 # . $topsrcdir/browser/config/mozconfig
3 # to the top of your mozconfig file.
4
5 . $topsrcdir/browser/config/mozconfig
6 mk_add_options MOZ_CO_PROJECT=browser
7 ac_add_options --enable-application=browser
8 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
</pre>
 
Finally, I was able to check out the source code (once I remembered to be in the mozilla directory) using make:
<pre>
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/browser/config/mozconfig
$ cd mozilla
$ make -f client.mk checkout MOZ_CO_PROJECT=browser
</pre>
 
More time passes...then it's time to [http://developer.mozilla.org/en/docs/Build_and_Install build]:
<pre>
$ make -f client.mk build
</pre>
 
Hours go by before I get the message:
"make[4]: `tools/test-harness/Makefile' is up to date."
 
This is the moment I know you've been waiting for. With baited breath, I go into obj-powerpc-apple-darwin8.70/dist/Minefield.app, when I am told upon double clicking that I must close the 15 Firefox tabs before I can open it.
 
Ta-da:
[http://farm1.static.flickr.com/143/396757193_bf03cb5c9f_o.png Proof]
 
 
=Links=

Navigation menu