Changes

Jump to: navigation, search

User:Jamesboston

2,039 bytes added, 16:55, 2 March 2010
m
Building Firefox
Project page: [[Canvas3D_JS_Library | C3DL]]
C3DL is a javascript JavaScript library that will make it easier to write 3D applications using <del>canvas 3d</del> WebGL. (''Mozilla's Canvas 3D project has been superseded by the new WebGL standard that will also by used by WebKit.'') It will provide a set of math, scene, and 3d object classes to make the canvas more accessible for developers that want to develop 3D content in browser.
=== Mozilla Developer Resource Kit ===
Creating a package that contains everything a developer needs, including documentation, to get started with Firefox. The plan is to make it available as a live Fedora DVD for developers in countries where bandwidth is scarce.
 
'''This project is of uncertain status. It's a multi-semester project that is worked on by a new student group each semester, but it doesn't appear to be under development at this time.'''
=== Portable DXR ===
This is closely related to the MDRK. The aim is to package the Mozilla developer documentation and the DXR source browsing tool in an extension that can be easily distributed/installed mostly likely as a XUL/Prism application. As an added bonus, this is a group project where the team members are experimenting with using traditional project planning tools and open source development methods.
 
'''This project is defunct. It was a group project for school and some members have graduated. Plus, the nominal client in not interested in completion.'''
= Software =
Install Visual Studio:
''(The express Visual C++ 2008 Express version will work.)'' http://msdn2www.microsoft.com/express/download/ If you paid for the Professional version of Visual Studio you can skip this step. But if you are using an express version, you need to install the Windows Server 2003 Platform SDK in order to get some headers (atlbase.h to be specific) included in the Professional version: http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en :''On the above page, DO NOT click the web install link. Scroll further down the page to see a list of download options. You probably want PDSK-usx86.exe for a 32-bit machine.'':[[Image:Windowsserversdkchoices.GIF]] Install the Microsoft Windows Software Development Kit Update for Windows 7 (even if you are using Vista or Visual Studio Professional): http://www.microsoft.com/vstudiodownloads/aa700736details.aspx?familyid=C17BA869-9671-4330-A63E-1FD44E0E2505&displaylang=en
Get Microsoft Windows Software Development Kit Update for Windows If you had a previous version of the SDK installed (such as the Vista SDK) open the CMD shell (even if you are using XPStart-> All Programs-> Microsoft SDK v7.0-> CMD)and make sure the new version is set as default by entering: httpWindowsSdkVer.exe -version://wwwv7.microsoft.com/downloads/details.aspx?FamilyID=4377f86d-c913-4b5c-b87e-ef72e5b4e065&DisplayLang=en 0
Download and install Mozilla Build, a package of software prerequisites:
''(If you get a message saying this application did not install properly then you should see a windows dialog giving you the option to re-install with the 'correct settings'. After that all should be well.)''
http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.34.exe To open a shell window click: c:\mozilla-build\start-msvc9.bat
To open If everything worked correctly, you should see a shell window click (right-click for admin privileges on Vista)list of the required headers: c[[Image:\mozilla-build\start-msvc8Mozilla_sdk_shell_Capture.batGIF]]
''(The example above is for Visual Studio 2005C++ 2008 Express. The name of the bat file you use should match the directory that Visual Studio is installed in.For instance, VS2005 uses start-msvc8.bat)'' ''Special note: You might get an error saying you are targeting the wrong SDK. Try deleting your obj-ff directory if you have one.''
=== Linux ===
==== Fedora ====
Install build pre-requisites for Fedora:
su -c "yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development'"
su -c "yum install mercurial autoconf213"
Install build Additional Fedora 11 pre-requisites for Fedora 10 users: su -c "'yum groupinstall install libnotify-devel'Development Tools' 'Development Libraries' 'GNOME Software Development'" Additional Fedora 10 pre-requisites: su -c "'yum install mercurial autoconf213 libXt-devel"'
==== Ubuntu ====Install Firefox 3 build repre-requisites for Ubuntu 8.10 usersand 9.04:
sudo apt-get install build-essential
sudo apt-get build-dep firefox
sudo apt-get install mercurial libasound2 libasound2-dev curl libcurl4-gnutls-dev libnotify-dev
You may need to set an environment variable if the build system can't find autoconf: export AUTOCONF=autoconf2.13 == OS X ===
=== OS X ===You should have [http://developer.apple.com/TOOLS/Xcode/ Xcode] installed. You don't need to use Xcode for editing source files, but you will need the developer SDK that comes with it.
In order to build Firefox you will need something called MacPorts which can be dowloaded downloaded from here:
http://www.macports.org/install.php
sudo port sync
sudo port install mercurial libidl autoconf213
 
=== autoconf notes ===
The build system should know to use autoconf 2.13 instead of later versions automatically, but on some *nix systems it may be necessary to specify it manually:
export AUTOCONF=autoconf213
 
Or on some systems you may need to set AUTOCONF this way instead:
export AUTOCONF=autoconf2.13
== Configuration ==
You need to create a hidden file for the build system that contains instructions on how you want your build completed.
Create and open a hidden file called .mozconfig in your home directory using notepad or gedit or vim:
notepad.exe ~/.mozconfig
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
# Comment the next 2 lines for non-debug builds
ac_add_options --disable-optimize
ac_add_options --enable-debug
For OS X (Leopard) add:
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.5.sdk
 
For Windows XP it may be necessary to add the following additional line to your .mozconfig file:
ac_add_options --disable-vista-sdk-requirements
 
Visual Studio 2008 users may also need to add one or more of the following to .mozconfig:
ac_add_options --disable-xpconnect-idispatch
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-accessibility
ac_add_options --disable-parental-controls
== Getting the source ==
cd ~/mozilla/src
time make -f client.mk build
 
=== Special Fedora 11 note ===
 
You may need to patch the source before building because of a bug in Breakpad that shows up with the latest version of gcc (which F11 uses).
 
Patch and details here:
https://bugzilla.mozilla.org/show_bug.cgi?id=485019
== Running the build ==
make -C [the object directory corresponding to the source directory that has changed]
In most cases this will relink the changes and create a new browser binary. But there's not no hard and fast rule about when you can successfully do an incremental build. Sometimes you can burrow a few levels into the object tree and sometime you need to build from the very top. It may take a bit of trial and error to discover what works.
= Tunneling a VNC session =

Navigation menu