Difference between revisions of "Development:Building:Mozilla 1.9.0 Branch"
(Added link to Build_Errors page) |
(just paste in the old page, and make the h2s work for easy part-editing) |
||
Line 1: | Line 1: | ||
+ | =Stuff to Fix= | ||
+ | |||
Our existing developer documentation currently covers the build process and is in pretty good shape. There are, however, things we should improve. | Our existing developer documentation currently covers the build process and is in pretty good shape. There are, however, things we should improve. | ||
Line 4: | Line 6: | ||
*: also, best -j flag for Core Duos | *: also, best -j flag for Core Duos | ||
*: delliott's [[Development:Building:Intel]] | *: delliott's [[Development:Building:Intel]] | ||
+ | * The stuff on [[Talk:Development:Building:Intel]] | ||
* Link to MDC's [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS CVS], [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites Mac build], [http://developer.mozilla.org/en/docs/Mac_OS_X_Universal_Binaries Uni build] articles | * Link to MDC's [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS CVS], [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites Mac build], [http://developer.mozilla.org/en/docs/Mac_OS_X_Universal_Binaries Uni build] articles | ||
* Link to wkik.m.o's constantly updated [http://wiki.mozilla.org/Mac:Build_Requirements Mac Build Matrix] | * Link to wkik.m.o's constantly updated [http://wiki.mozilla.org/Mac:Build_Requirements Mac Build Matrix] | ||
Line 9: | Line 12: | ||
* Set up for OBJDIRs by default, since everyone is using them | * Set up for OBJDIRs by default, since everyone is using them | ||
* src tarball link: ftp://ftp.mozilla.org/pub/mozilla.org/camino/source | * src tarball link: ftp://ftp.mozilla.org/pub/mozilla.org/camino/source | ||
− | * Common build errors [[Development:Building:Build_Errors]] | + | * Common build errors [[Development:Building:Build_Errors]] and how to solve |
+ | |||
+ | =Scratchpad for doing the fixing= | ||
+ | |||
+ | <div class="note"> | ||
+ | <p><strong>The purpose of this page is to guide you through building and running Camino™. Camino is a stand-alone web browser powered by the Gecko rendering engine. It shouldn't be confused with Cocoazilla (a separate project to implement the full Mozilla suite using Cocoa), or CHBrowserView, which is just one piece of Camino. If you are new to Camino development, please see our <a href="/development/">developer introduction</a> for an overview of project conventions and the tools you'll need.</strong></p> | ||
+ | </div> | ||
+ | |||
+ | <p>These instructions assume that you are familiar with basic UNIX command-line functionality, such as <code>cd</code> and <code>mkdir</code>. For an introduction to the UNIX command line, please see this <a href="http://www.macobserver.com/tips/macosxcl101/index.html">tutorial</a>.</p> | ||
+ | |||
+ | ==Preparing to build: Xcode== | ||
+ | <p>Panther (Mac OS X version 10.3.x) and Xcode (version 1.1 or later) are now required for building Camino. (Note that this is not a requirement to build Mozilla.) Xcode is included on a separate disk with the purchase of a new Mac or a copy of Panther, and is available as a free download from Apple.</p> | ||
+ | |||
+ | <p>Camino requires a custom Xcode installation to build properly: during installation, click the "Customize" button and turn on the "Cross Development" section. If you have previously installed Xcode without this option, run the installer again to add Cross Development before attempting to build Camino.</p> | ||
+ | |||
+ | ==Fink== | ||
+ | <p>Follow the instructions on the <a href="http://www.mozilla.org/build/mac.html#Installing_required_software">Mozilla Mac OS X build page</a> for installing Fink, using it to install Orbit, and on downloading and installing the Shared Menus framework. As stated in those instructions, if you had installed Fink and Orbit prior to upgrading from Jaguar to Panther, we recommend that you remove the /sw directory entirely and install a fresh copy of Fink 0.7.0 or later and a fresh copy of Orbit.</p> | ||
+ | |||
+ | ==Shared Menus Framework Reference== | ||
+ | <p>You will need to create a reference, inside the SDK folder for Mac OS X 10.2.8, to the Shared Menus Framework. To do this, first <a href="ftp://ftp.url-manager.com/pub/SharedMenusCocoa.dmg.bin">download the SDK</a>, then place it in <code>/Library/Frameworks</code>. When copying the SDK, be sure to copy the <code>SharedMenusCocoa.framework</code> file from the <code>build</code> directory on the disk image. Continue as follows:</p> | ||
+ | |||
+ | <ol> | ||
+ | <li>Check to see if you have the folder <code>/Developer/SDKs/MacOSX10.2.8.sdk</code>. If so, skip to step 3.</li> | ||
+ | <li>Otherwise, check for the folder <code>/Developer/SDKs/MacOSX10.2.7.sdk</code>. If you have it, create a symlink:<br /> <code>$ sudo ln -s /Developer/SDKs/MacOSX10.2.7.sdk /Developer/SDKs/MacOSX10.2.8.sdk</code><br />If not, install the Xcode Cross Development tools as described above.<br /></li> | ||
+ | <li><code> $ sudo mkdir -p /Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks</code></li> | ||
+ | |||
+ | <li><code>$ cd /Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks</code></li> | ||
+ | <li><code>$ sudo ln -s /Library/Frameworks/SharedMenusCocoa.framework SharedMenusCocoa.framework </code></li> | ||
+ | </ol> | ||
+ | |||
+ | ==Setting up your CVS Environment== | ||
+ | <p>Prepare your CVS client using the following parameters:</p> | ||
+ | <ul> | ||
+ | |||
+ | <li><code>server: cvs-mirror.mozilla.org</code></li> | ||
+ | <li><code>root directory: cvsroot</code></li> | ||
+ | <li><code>username: anonymous</code></li> | ||
+ | <li><code>password: anonymous </code></li> | ||
+ | </ul> | ||
+ | <p>If you are using the command line client (recommended) from the bash shell (the default for Mac OS X 10.3), the following command will set up and save the above server connection information:</p> | ||
+ | |||
+ | <p><code>$ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot</code></p> | ||
+ | <p>If you are using another shell, you will have to use a different command to save the CVS configuration, but all other commands are the same. You can get to a bash shell at any time by typing "bash" at the command line and hitting "return."</p> | ||
+ | <p>To connect to the CVS server, enter the command</p> | ||
+ | <p><code>$ cvs login</code></p> | ||
+ | <p>Enter the password when prompted. You are now ready to pull the source code from the server.</p> | ||
+ | |||
+ | ==Pulling Source and Building Mozilla and Camino== | ||
+ | <ol> | ||
+ | <li><code>cd</code> into the directory where you would like to keep your copy of the Camino source code.</li> | ||
+ | <li>Pull the main build makefile and configuration directory:<br /> | ||
+ | <code>$ cvs co mozilla/client.mk</code><br /> | ||
+ | |||
+ | <code>$ cvs co mozilla/camino/config/mozconfig</code> | ||
+ | </li> | ||
+ | <li><code>cd</code> into the mozilla directory that was just created:<br /> | ||
+ | <code>$ cd mozilla</code></li> | ||
+ | <li>In your mozilla directory, create a plain text file called <code>.mozconfig</code> (note the leading period). This file is where you will set up the options for your Camino build. To begin, add the following line to your <code>.mozconfig</code> file (note the leading dot and space):<br /> | ||
+ | |||
+ | <code>. $topsrcdir/camino/config/mozconfig</code><br /><br /> | ||
+ | <ul> | ||
+ | <li><strong>Optimized or Debug Mode Build</strong><br />The default settings will create an optimized build of Camino. To build in debug mode (for easier troubleshooting during development), add the following two lines:<br /> | ||
+ | <code>ac_add_options --disable-optimize<br /> ac_add_options --enable-debug<br /></code><br /> | ||
+ | Please Note: It's important to be aware of whether you've set up <code>.mozconfig</code> for a debug or optimized build, because you must match that setting when building Camino from Xcode. If the settings are not matched, key build variables won't get set correctly and vtables will be out of alignment. The net result is that either you won't link, or you'll crash at startup.<br /><br /> | ||
+ | |||
+ | </li> | ||
+ | <li><strong> Static or Dynamic Build<br /></strong>By default, Camino is built dynamically. To do a static build of Camino (which means that most of the components are compiled directly into the Camino binary), you can add the following lines to your <code>.mozconfig</code> file:<br /> | ||
+ | <code>ac_add_options --disable-shared<br /> | ||
+ | ac_add_options --enable-static<br /></code><br /> | ||
+ | Static builds are used for distribution but are not recommended for development.<br /><br /> | ||
+ | |||
+ | </li> | ||
+ | <li><strong>Building More Quickly on Dual-CPU Machines<br /></strong> | ||
+ | If your machine has two CPUs, you can take advantage of that while building Camino. Add the following to your <code>.mozconfig</code> file:<br /> | ||
+ | <code>mk_add_options MOZ_MAKE_FLAGS=-j4</code> <br /><br /> | ||
+ | </li> | ||
+ | |||
+ | </ul> | ||
+ | </li> | ||
+ | <li>Pull source and build: | ||
+ | <ul> | ||
+ | <li>To pull the source and build in one step, use:<br /> | ||
+ | <code>$ make -f client.mk</code><br /><br /> | ||
+ | This will automatically pull the source code from the CVS server and build Camino (including various components of Mozilla that Camino requires). The final Camino package ends up in <code>mozilla/camino/build</code>.<br /><br /> | ||
+ | |||
+ | </li> | ||
+ | <li>To pull the source without building, use this command:<br /> | ||
+ | <code>$ make -f client.mk checkout MOZ_CO_PROJECT=macbrowser</code> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ol> | ||
+ | <p>You can then build at any time by running <code>make -f client.mk</code> from the mozilla directory. </p> | ||
+ | |||
+ | ==Development== | ||
+ | <p>To work on Camino front-end code, open up the Camino.xcode project (from the camino directory) in Xcode. You can edit code, build, and run from inside of Xcode.</p> | ||
+ | <p>When building with Xcode, make sure your build settings match those in your <code>.mozconfig</code> file: from the "Active Build Style" item in the toolbar, choose "Development" for a debug build, or "Deployment" for an optimized build. If you do not match your settings to your <code>.mozconfig</code>, your build will fail.</p> | ||
+ | |||
+ | <p><strong>Widget Code</strong><br /> | ||
+ | If you've edited the Cocoa widget code, you can <code>make</code> in <code>mozilla/widget/src/cocoa</code> to rebuild the widget library with your changes. The easiest way to get the new version of the library into Camino to test it is to use <code>cp</code> to copy it into the Camino application package (into <code>mozilla/camino/build/Camino.app/Contents/MacOS/components</code>). (This tactic does not work for static builds, which is why they are not recommended for development.) As an alternative, you can <code>make</code> in <code>embedding/config</code> and <code>mozilla/camino</code> again.</p> | ||
+ | |||
+ | <p><strong>Other changes</strong><br /> | ||
+ | If you've changed code only within the camino directory, you can rebuild using Xcode. (Again, make sure your build settings match your <code>.mozconfig</code> file).</p> | ||
+ | <p>If you've changed anything outside the camino directory (aside from widget code — see above), you cannot build from inside Xcode, and will need to <code>make -f client.mk</code> from the mozilla directory.</p> | ||
+ | |||
+ | ==FAQ== | ||
+ | <p><strong>Q. Can I build on Mac OS X 10.4 Tiger using GCC 4?</strong><br /> | ||
+ | <strong>A.</strong> Yes, with a few caveats. Builds produced with GCC 4 will only run on Mac OS X 10.3.9 and above. Because of this, official Camino releases for current Apple hardware will continue to be built with GCC 3.3, providing compatibility with Mac OS X 10.2 Jaguar. To use GCC 3.3 on Tiger, simply enter <code>sudo gcc_select 3.3</code> in a terminal.</p> | ||
+ | <p>The version of GCC 4 that initially shipped with Mac OS X 10.4 Tiger is a pre-release version and will not build Camino. Users with Xcode 2.0 are encouraged to upgrade to Xcode 2.1, which includes a working version of GCC 4, or to switch to GCC 3.3 with <code>sudo gcc_select 3.3</code>.</p> | ||
+ | |||
+ | <p>If you've read this and are still positive that you want to use GCC 4, you must add the following line to the end of your <code>.mozconfig</code> file: <code>ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.3.9.sdk</code></p> | ||
+ | <p>GCC 4 users will also need to create a link to the Shared Menus framework the | ||
+ | 10.3.9 SDK if one does not already exist.<br /> | ||
+ | <code>$ sudo mkdir -p /Developer/SDKs/MacOSX10.3.9.sdk/Library/Frameworks</code><br /> | ||
+ | <code>$ sudo ln -s /Library/Frameworks/SharedMenusCocoa.framework | ||
+ | /Developer/SDKs/MacOSX10.3.9.sdk/Library/Frameworks</code></p> | ||
+ | |||
+ | <p><strong>Q. Why can't I get a fresh copy of Camino to build?</strong><br /> | ||
+ | <strong>A.</strong> Despite our best efforts, sometimes the Mozilla or Camino tree is "red," meaning that the source code won't build properly in its current state. Before you pull, you can check the status on <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Camino">Camino's tinderbox</a>. If the Camino tinderbox or the Mac builds or UNIX/Linux builds in the <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey">Mozilla (aka SeaMonkey)</a> or <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox">Firefox</a> tinderboxes are red, you probably should avoid checking out.</p> | ||
+ | |||
+ | <p>If your build fails, just wait until things go green again and repull Camino.</p> | ||
+ | <p> (Confused? Here's an <a href="/development/programming/#tinderbox">introduction to Tinderbox</a>).</p> | ||
+ | |||
+ | <p><strong>Q. I get a link error when building Camino.</strong><br /> | ||
+ | <strong>A.</strong> This has most likely occurred because you are building from within Xcode and have set up <code>.mozconfig</code> for an optimized build and Xcode for a debug build, or the other way around. Follow the instructions above to set your build mode in both <code>.mozconfig</code> and Xcode. Or just build from the command line using <code>make -f client.mk</code>.</p> | ||
+ | |||
+ | <p><strong>Q. My Camino build crashes at startup — what's wrong?</strong><br /> | ||
+ | <strong>A.</strong> Again, you probably built one piece optimized and the other in debug mode. Make sure they match and try again.</p> | ||
+ | |||
+ | <p><strong>Q. I get errors that the Camino build failed at some <CopyFilesX> where X is some number.</strong><br /> | ||
+ | |||
+ | <strong>A.</strong> Usually this is because you forgot to <code>make</code> in <code>embedding/config</code> after making code changes. Follow the instructions carefully, and try again.</p> | ||
+ | |||
+ | <p><strong>Q. What if I still can't get Camino to build?</strong><br /> | ||
+ | <strong>A.</strong> There are two places to go for help building Camino:</p> | ||
+ | |||
+ | <ul> | ||
+ | <li>The #camino IRC channel at irc.mozilla.org is a good place to find some Mac weenies in real time who, if you ask nicely and don't be a pest, will happily get you on your way.</li> | ||
+ | <li> Join and post to the <a href="http://mozdev.org/mailman/listinfo/camino">Camino mailing list</a>.</li> | ||
+ | </ul> |
Revision as of 01:25, 4 August 2006
Contents
Stuff to Fix
Our existing developer documentation currently covers the build process and is in pretty good shape. There are, however, things we should improve.
- Fix instructions for Building Intel (Bug 327789)
- also, best -j flag for Core Duos
- delliott's Development:Building:Intel
- The stuff on Talk:Development:Building:Intel
- Link to MDC's CVS, Mac build, Uni build articles
- Link to wkik.m.o's constantly updated Mac Build Matrix
- "The gcc_select issue should be in bold 24pt font" (feedback from irc)
- Set up for OBJDIRs by default, since everyone is using them
- src tarball link: ftp://ftp.mozilla.org/pub/mozilla.org/camino/source
- Common build errors Development:Building:Build_Errors and how to solve
Scratchpad for doing the fixing
The purpose of this page is to guide you through building and running Camino™. Camino is a stand-alone web browser powered by the Gecko rendering engine. It shouldn't be confused with Cocoazilla (a separate project to implement the full Mozilla suite using Cocoa), or CHBrowserView, which is just one piece of Camino. If you are new to Camino development, please see our <a href="/development/">developer introduction</a> for an overview of project conventions and the tools you'll need.
These instructions assume that you are familiar with basic UNIX command-line functionality, such as cd
and mkdir
. For an introduction to the UNIX command line, please see this <a href="http://www.macobserver.com/tips/macosxcl101/index.html">tutorial</a>.
Preparing to build: Xcode
Panther (Mac OS X version 10.3.x) and Xcode (version 1.1 or later) are now required for building Camino. (Note that this is not a requirement to build Mozilla.) Xcode is included on a separate disk with the purchase of a new Mac or a copy of Panther, and is available as a free download from Apple.
Camino requires a custom Xcode installation to build properly: during installation, click the "Customize" button and turn on the "Cross Development" section. If you have previously installed Xcode without this option, run the installer again to add Cross Development before attempting to build Camino.
Fink
Follow the instructions on the <a href="http://www.mozilla.org/build/mac.html#Installing_required_software">Mozilla Mac OS X build page</a> for installing Fink, using it to install Orbit, and on downloading and installing the Shared Menus framework. As stated in those instructions, if you had installed Fink and Orbit prior to upgrading from Jaguar to Panther, we recommend that you remove the /sw directory entirely and install a fresh copy of Fink 0.7.0 or later and a fresh copy of Orbit.
You will need to create a reference, inside the SDK folder for Mac OS X 10.2.8, to the Shared Menus Framework. To do this, first <a href="ftp://ftp.url-manager.com/pub/SharedMenusCocoa.dmg.bin">download the SDK</a>, then place it in /Library/Frameworks
. When copying the SDK, be sure to copy the SharedMenusCocoa.framework
file from the build
directory on the disk image. Continue as follows:
- Check to see if you have the folder
/Developer/SDKs/MacOSX10.2.8.sdk
. If so, skip to step 3. - Otherwise, check for the folder
/Developer/SDKs/MacOSX10.2.7.sdk
. If you have it, create a symlink:
$ sudo ln -s /Developer/SDKs/MacOSX10.2.7.sdk /Developer/SDKs/MacOSX10.2.8.sdk
If not, install the Xcode Cross Development tools as described above. $ sudo mkdir -p /Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks
$ cd /Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks
$ sudo ln -s /Library/Frameworks/SharedMenusCocoa.framework SharedMenusCocoa.framework
Setting up your CVS Environment
Prepare your CVS client using the following parameters:
server: cvs-mirror.mozilla.org
root directory: cvsroot
username: anonymous
password: anonymous
If you are using the command line client (recommended) from the bash shell (the default for Mac OS X 10.3), the following command will set up and save the above server connection information:
$ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
If you are using another shell, you will have to use a different command to save the CVS configuration, but all other commands are the same. You can get to a bash shell at any time by typing "bash" at the command line and hitting "return."
To connect to the CVS server, enter the command
$ cvs login
Enter the password when prompted. You are now ready to pull the source code from the server.
Pulling Source and Building Mozilla and Camino
cd
into the directory where you would like to keep your copy of the Camino source code.- Pull the main build makefile and configuration directory:
$ cvs co mozilla/client.mk
$ cvs co mozilla/camino/config/mozconfig
cd
into the mozilla directory that was just created:
$ cd mozilla
- In your mozilla directory, create a plain text file called
.mozconfig
(note the leading period). This file is where you will set up the options for your Camino build. To begin, add the following line to your.mozconfig
file (note the leading dot and space):
. $topsrcdir/camino/config/mozconfig
- Optimized or Debug Mode Build
The default settings will create an optimized build of Camino. To build in debug mode (for easier troubleshooting during development), add the following two lines:
ac_add_options --disable-optimize
ac_add_options --enable-debug
Please Note: It's important to be aware of whether you've set up.mozconfig
for a debug or optimized build, because you must match that setting when building Camino from Xcode. If the settings are not matched, key build variables won't get set correctly and vtables will be out of alignment. The net result is that either you won't link, or you'll crash at startup.
- Static or Dynamic Build
By default, Camino is built dynamically. To do a static build of Camino (which means that most of the components are compiled directly into the Camino binary), you can add the following lines to your.mozconfig
file:
ac_add_options --disable-shared
ac_add_options --enable-static
Static builds are used for distribution but are not recommended for development.
- Building More Quickly on Dual-CPU Machines
If your machine has two CPUs, you can take advantage of that while building Camino. Add the following to your.mozconfig
file:
mk_add_options MOZ_MAKE_FLAGS=-j4
- Optimized or Debug Mode Build
- Pull source and build:
- To pull the source and build in one step, use:
$ make -f client.mk
This will automatically pull the source code from the CVS server and build Camino (including various components of Mozilla that Camino requires). The final Camino package ends up inmozilla/camino/build
.
- To pull the source without building, use this command:
$ make -f client.mk checkout MOZ_CO_PROJECT=macbrowser
- To pull the source and build in one step, use:
You can then build at any time by running make -f client.mk
from the mozilla directory.
Development
To work on Camino front-end code, open up the Camino.xcode project (from the camino directory) in Xcode. You can edit code, build, and run from inside of Xcode.
When building with Xcode, make sure your build settings match those in your .mozconfig
file: from the "Active Build Style" item in the toolbar, choose "Development" for a debug build, or "Deployment" for an optimized build. If you do not match your settings to your .mozconfig
, your build will fail.
Widget Code
If you've edited the Cocoa widget code, you can make
in mozilla/widget/src/cocoa
to rebuild the widget library with your changes. The easiest way to get the new version of the library into Camino to test it is to use cp
to copy it into the Camino application package (into mozilla/camino/build/Camino.app/Contents/MacOS/components
). (This tactic does not work for static builds, which is why they are not recommended for development.) As an alternative, you can make
in embedding/config
and mozilla/camino
again.
Other changes
If you've changed code only within the camino directory, you can rebuild using Xcode. (Again, make sure your build settings match your .mozconfig
file).
If you've changed anything outside the camino directory (aside from widget code — see above), you cannot build from inside Xcode, and will need to make -f client.mk
from the mozilla directory.
FAQ
Q. Can I build on Mac OS X 10.4 Tiger using GCC 4?
A. Yes, with a few caveats. Builds produced with GCC 4 will only run on Mac OS X 10.3.9 and above. Because of this, official Camino releases for current Apple hardware will continue to be built with GCC 3.3, providing compatibility with Mac OS X 10.2 Jaguar. To use GCC 3.3 on Tiger, simply enter sudo gcc_select 3.3
in a terminal.
The version of GCC 4 that initially shipped with Mac OS X 10.4 Tiger is a pre-release version and will not build Camino. Users with Xcode 2.0 are encouraged to upgrade to Xcode 2.1, which includes a working version of GCC 4, or to switch to GCC 3.3 with sudo gcc_select 3.3
.
If you've read this and are still positive that you want to use GCC 4, you must add the following line to the end of your .mozconfig
file: ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.3.9.sdk
GCC 4 users will also need to create a link to the Shared Menus framework the
10.3.9 SDK if one does not already exist.
$ sudo mkdir -p /Developer/SDKs/MacOSX10.3.9.sdk/Library/Frameworks
$ sudo ln -s /Library/Frameworks/SharedMenusCocoa.framework
/Developer/SDKs/MacOSX10.3.9.sdk/Library/Frameworks
Q. Why can't I get a fresh copy of Camino to build?
A. Despite our best efforts, sometimes the Mozilla or Camino tree is "red," meaning that the source code won't build properly in its current state. Before you pull, you can check the status on <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Camino">Camino's tinderbox</a>. If the Camino tinderbox or the Mac builds or UNIX/Linux builds in the <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey">Mozilla (aka SeaMonkey)</a> or <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox">Firefox</a> tinderboxes are red, you probably should avoid checking out.
If your build fails, just wait until things go green again and repull Camino.
(Confused? Here's an <a href="/development/programming/#tinderbox">introduction to Tinderbox</a>).
Q. I get a link error when building Camino.
A. This has most likely occurred because you are building from within Xcode and have set up .mozconfig
for an optimized build and Xcode for a debug build, or the other way around. Follow the instructions above to set your build mode in both .mozconfig
and Xcode. Or just build from the command line using make -f client.mk
.
Q. My Camino build crashes at startup — what's wrong?
A. Again, you probably built one piece optimized and the other in debug mode. Make sure they match and try again.
Q. I get errors that the Camino build failed at some <CopyFilesX> where X is some number.
A. Usually this is because you forgot to make
in embedding/config
after making code changes. Follow the instructions carefully, and try again.
Q. What if I still can't get Camino to build?
A. There are two places to go for help building Camino:
- The #camino IRC channel at irc.mozilla.org is a good place to find some Mac weenies in real time who, if you ask nicely and don't be a pest, will happily get you on your way.
- Join and post to the <a href="http://mozdev.org/mailman/listinfo/camino">Camino mailing list</a>.