Audio Data API ~ Build from Scratch

Installing build tools

Before I can build Firefox i needed to install some build tools. To guide me through the process i used Mozilla’s Documentation. To get started you need Xcode and MacPorts, if you need help installing these visit my post on Installing Git on Mac OS.

To install the build tools run these two commands in your terminal:

  • sudo port sync
  • sudo port install mercurial libidl autoconf213

Building Firefox

Update with Audio Patch

Due to the fact that the audio data api is brand new it is always changing and therefore the version numbers and patch links I am providing may be outdated visit the audio api wiki to check for updates.

  • hg update -r 6d517fe3d7ae (use 683dfdc4adf0 if wiki has not been updated post May 14)
  • get a patch and save it on your computer: patch -p1 < pathToaudio11h.diff

Making Config file

Type the following commands in the terminal. Make sure all ‘ and ” are correct. For more information and if you are not running Mac OS 10.6 visit Build Prerequisites.

  • let’s build Firefox:  echo ‘. $topsrcdir/browser/config/mozconfig’ > mozconfig
  • …in this directory:  echo ‘mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release’ >> mozconfig
  • echo ‘mk_add_options MOZ_MAKE_FLAGS=”-s -j4″‘ >> mozconfig
  • echo ‘ac_add_options –with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk’ >> mozconfig

Build

  • make -f client.mk

Make a Package

  • cd objdir-ff-release
  • make package

Run The Browser

You are now ready to run the browser. If you have other versions of Firefox installed you will need to make a new profile.

  • mozilla-central/objdir-ff-release/dist/Minefield.app/Contents/MacOS/firefox-bin -no-remote -profilemanager

View all of my blogs on Audio
View all of my blogs

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s