From CDOT Wiki
Jump to: navigation, search


I was a Seneca School of Communication Arts Student now in a Computer Studies Program(Bachelor in Software Development). Trying to be a jack of all trades, and a master of none.

The current Open Source @ Seneca Logo you see was created by me :)

FSOSS 2008 Logos


Patrick Lam build-time

Anthony Hughes testing Birdtorrent on Mac

Aaron Train Tested Private Browsing


You are probably better off to my notes.

Notes More:

MyBlog Notes

Colour Management Tests

MyBlog Labs

I update that more frequently.

Building Firefox on Ubuntu

notes from:

Install build pre-requisites for Ubuntu users:

   sudo apt-get install build-essential

   sudo apt-get build-dep mozilla-firefox

   Error 1:
   seneca@seneca-laptop:~$ sudo apt-get build-dep mozilla-firefox
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   E: Unable to find a source package for mozilla-firefox

   Error 1 Solution:
   changed for ff3
   sudo apt-get build-dep firefox-3.0 (thanks jboston!)

Error 1 Solution my side note:

went to bed with this running and it hung up the computer...going to run it again this morn.

sleep mode hangs up the mouse...but everything was installed last night.

Get the makefile instructions to pull the source tree and put it in a directory called mozilla in your home directory:

   cvs -d co mozilla/

Checkout the source:

   cd ~/mozilla
   make -f checkout MOZ_CO_PROJECT=browser

check out approx 8 mins.

Create and open a hidden file called .mozconfig in your home directory:

   gedit ~/.mozconfig

Add the following lines to .mozconfig read the build configurations

   # My first mozilla config
   . $topsrcdir/browser/config/mozconfig
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
   ac_add_options --disable-optimize
   ac_add_options --enable-debug
   ac_add_options --disable-static --enable-shared


Using multiple mozconfig files

Alternatively, you may want to create separate mozconfig files.

As an example, the following steps can be used to build Firefox and Thunderbird.

You should first create three mozconfig files.



mk_add_options MOZ_CO_PROJECT=browser,mail

   # add other common options here, such as making a static release build and
   # disabling tests
   ac_add_options --enable-optimize --disable-debug
   ac_add_options --disable-tests



   # include the common mozconfig
   . ./mozconfig-common
   # Build Firefox
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-static
   ac_add_options --enable-application=browser



   # include the common mozconfig
   . ./mozconfig-common
   # Build Thunderbird
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/thunderbird-static
   ac_add_options --enable-application=mail

To checkout, run the following commands:

   export MOZCONFIG=/path/to/mozilla/mozconfig-common
   make -f checkout

To build Firefox, run the following commands:

   export MOZCONFIG=/path/to/mozilla/mozconfig-firefox
   make -f build

To build Thunderbird, run the following commands:

   export MOZCONFIG=/path/to/mozilla/mozconfig-thunderbird
   make -f build

note:Using multiple mozconfig files ------------------------------------------------------


   cd ~/mozilla
   make -f build

approx 28 mins.


   ~/mozilla/obj*/dist/bin/firefox -Profilemanager -no-remote

Create a new profile

Building FireFox on a MAC on Leopard 10.4.11

notes from:

Hardware: iMac Core Duo 2.16 GHz 3GB RAM

Operating System: 10.4.11

Installed Xcode 2.4.1(you can get it online or on the OS disk) and Fink

fink note 001: something went this /sw/bin/ close terminal and open it again.

fink note 002: - had to run commands in terminal instead because of password through Fink Commander

The Fink Commander sequence to update fink from binaries is as follows:

1. Binary->Update descriptions 2. Select the fink package. 3. Binary->Install

Binary> Run in Terminal update Update All etc.

my side note: takes a while

Install orbit-dev glid you need this package (updated orbit dev)

   sudo fink install orbit orbit-dev glib

created .cvspass for what? apparently its just do it

  • Opened terminal
  • created .cvspass on my home folder since it wouldn't allow me to use cvs //I don't know why
   cvs -d co mozilla/
   cd mozilla
   make -f checkout MOZ_CO_PROJECT=browser
   approx 8 mins
   cvs -d co mozilla/browser/config/mozconfig

Create .mozconfig file for your configuration options

Firefox, Default Release Configuration ()

   . $topsrcdir/browser/config/mozconfig
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt
   ac_add_options --disable-tests


   . $topsrcdir/browser/config/mozconfig
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff
   ac_add_options --disable-libxul
   ac_add_options --enable-debug --disable-optimize
   ac_add_options --enable-shared --disable-static
   ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
   mk_add_options MOZ_MAKE_FLAGS="-s -j4"

Build firefox:

   make -f build
   approx 27mins

side note 001: if it doesn't build you might need sudo gcc

   $> sudo gcc_select 4.0

side note 002: without .mozconfig

   configure: error: --enable-application=APP was not specified and is required.
   *** Fix above errors and then restart with "make -f build"
   make[1]: *** [configure] Error 1
   make: *** [/Users/username/mozilla/Makefile] Error 2

where your build might be?!

mozilla/ff-opt/dist/ (might be in this folder or just find Minefield using spotlight) mozilla/obj-ff/dist/

Create a test profile if you don't have one

Using finder to find your build: spotlight to 'Minefield' select and browse to show contents; if you double-click it will run minefield

Run: -no-remote -ProfileManager