Boot2Gecko project for awhile and wanted to see if I could get an app running on Steroids that would run under B2G."> Boot2Gecko project for awhile and wanted to see if I could get an app running on Steroids that would run under B2G. "> Boot2Gecko project for awhile and wanted to see if I could get an app running on Steroids that would run under B2G. " />
09 January 2013
This article will take 3 minutes to read
To accomplish this I needed to get the B2G desktop emulator up and running so I could actually develop something.
Below is the method I had to use to get it up and running with OSX (Mountain Lion).
You will need the following installed to get started.
For this to build properly you’re going to have to force
brew to download and install
autoconf-2.13. This can be accomplished by placing the
autoconf.rb code listed below into your Formula folder located at
Once this is accomplished just use
brew to install both
There are two different pieces needed to get the desktop emulator up and running. First there is Mozilla-central. This will contain the b2g executable. The second component needed is gaia. This is the user interface for the b2g phone.
Create a mozconfig
You will need to create a mozconfig file before building. cd into the mozilla-central directory and create a file called “mozconfig”. Then add the following to it and save.
While still in the mozilla-central directory build the source code. Now go get a beer or some coffee as this will take a long time.
When complete you should see a build folder outside of your mozilla-central directory.
Now that we have mozilla-central working we need to build a profile for gaia. Navigate into the gaia directory that was created when doing a git clone from above. Now we can build with the following command.
A lot of stuff will happen but if everything works out you should have a “profile” folder in your gaia directory.
To run thhe b2g emulator you’re going to need to pass in the profile generated in the gaia folder.
It really wasn’t that hard to get this up and running under OSX. In a future blog post I’ll discuss getting a Steroids application un and running under B2G but for now here are a few screenshots.
B2G Lock Screen
B2G Home Screen