Building on Ubuntu 9.04

So i got tired of Vista. I am having problems building. I keep on getting errors. My last error was Windows SDK not supported. I tried installing the new Vista SDK and I keep getting an error: Install stopped reason unknown!!!! I switched to: Ubuntu 9.04 – the Jaunty Jackalope – released in April 2009. HAHAHHAHAHAHA

PS. i got some help from another blogger. If u dont understand my stuff check out http://dbaranski.wordpress.com/2007/09/19/building-firefox-on-ubuntu

Setting Up Environment:

Run these two commands in the terminal (Applications=>Accessories=>Terminal)

  1. sudo apt-get build-dep firefox
  2. sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev

I got an error message at first saying can’t find mercurial so I had to install it using Synaptic Package Manager (System=>Administration).

Ok this took some time as I did not know what i was doing…. well i still dont. But I opened it and typed in “mercurial” in quick search. Guess what NO RESULTS. I googled it and found nothing!! Well… noting that worked. Finally, someone told me to look for hg! I did and I got a result, double clicked it somehow it started installing!

Get the latest code:

You have to get the latest code from the repository. To do this run this command in the Terminal:

  1. hg clone http://hg.mozilla.org/mozilla-central/ src

NOTE: src (in the above command) is the path to where you want the folder to be created.

Now you have to switch directories. In the Terminal run this command:

  1. cd src

YES: src is the path u used in the previous command

Build the Code

Before u build, you have to make a “.mozconfig” file. Open an editor (Applications=>Accessories=>Test Editor) and type the following:

ac_add_options –enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

Save this file in /home/username. Same place where u find Desktop

Now run this command in the Terminal (make sure u are in the right directory: cd src)

  1. make -f client.mk build

Running Mozilla Firefox

Now you can run firefox by changing directories and running one simple command

  1. cd obj-i686-pc-linux-gnu/dist/bin
  2. ./firefox

Note: If you have another firefox session opened, you either have to close it or use this command: ./firefox -profilemanager -no-remote You will need to add a profile.

Make sure its the right Firefox

You should be running Minefield. If you go to Help it will say About Minefield.

Useful links:

https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites

https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial

Click Here To read all of my blogs.

Click Here To read my build blogs.

    Advertisements

    3 thoughts on “Building on Ubuntu 9.04

    1. Pingback: Building on Ubuntu 9.04 « Anna on Stuff (Processing.js/Open Source)

    2. Pingback: Building on Ubuntu 9.04 « Anna on Stuff (Processing.js/Open Source) | Just linux!

    3. Pingback: Building on Ubuntu 9.04 | Ubuntu-News - Your one stop for news about Ubuntu

    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