Building and installing Firefox OS

  • Revision slug: Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko
  • Revision title: Building and installing Boot to Gecko
  • Revision id: 50901
  • Created:
  • Creator: avrelaun
  • Is current revision? No
  • Comment 4 words added

Revision Content

Running Gaia using Firefox Nightly

If you have some knowledge of git, you can clone the Gaia repository and launch Gaia using a recent Firefox Nightly build.

Pros: 
  • no build system  and very little setup required
  • can use the Firefox dev tools
Cons:
  • the viewport is based on the size of the browser window
  • many device-like things won't work
  • apps are launched in separate, pinned tabs
  • Firefox Nightly might be unstable

Building and Running B2G desktop builds

It is possible to build a Boot to Gecko 'simulator' and run Gaia using this application. This software is based on Firefox but behaves similar to the on-device experience of Boot to Gecko. Currently Mozilla is working on providing nightly builds of this application for developers, and this work is being tracked in bug 744008. If you are familiar with building the Firefox code-base or C++ projects, you can build this application yourself following these instructions.

Pros: 
  • mobile viewport, similar experience to a mobile device in most respects
  • more device apis ( not all )
Cons:
  • need to install a C/C++ build system and build Gecko
  • The Firefox dev tools are not available.

Setting up & building Boot to Gecko

Revision Source

<h4>Running Gaia using Firefox Nightly</h4>
<p>If you have some knowledge of git, you can clone <a class=" link-https" href="https://github.com/mozilla-b2g/gaia" title="https://github.com/mozilla-b2g/gaia">the Gaia repository</a> and launch Gaia using a recent Firefox Nightly build.</p>
<div class="ace-line" id="magicdomid231"><span class="author-g-f6nw4vuclfx20dyp">Pros: </span></div>
<div class="ace-line" id="magicdomid254"> <ul class="list-bullet1"> <li><span class="author-g-f6nw4vuclfx20dyp">no build system  and very little setup required</span></li> <li><span class="author-g-f6nw4vuclfx20dyp">can use the Firefox dev tools</span></li> </ul>
</div>
<div class="ace-line" id="magicdomid297"><span class="author-g-f6nw4vuclfx20dyp">Cons:</span></div>
<div class="ace-line" id="magicdomid334"> <ul class="list-bullet1"> <li><span class="author-g-f6nw4vuclfx20dyp">the viewport is based on the size of the browser window</span></li> <li><span class="author-g-f6nw4vuclfx20dyp">many device-like things won't work</span></li> <li><span class="author-g-f6nw4vuclfx20dyp">apps are launched in separate, pinned tabs</span></li> <li><span class="author-g-f6nw4vuclfx20dyp">Firefox Nightly might be unstable</span></li> </ul> <h4>Building and Running B2G desktop builds</h4> <p>It is possible to build a Boot to Gecko 'simulator' and run Gaia using this application. This software is based on Firefox but behaves similar to the on-device experience of Boot to Gecko. Currently Mozilla is working on providing nightly builds of this application for developers, and this work is being tracked in <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=744008" title="https://bugzilla.mozilla.org/show_bug.cgi?id=744008">bug 744008</a>. If you are familiar with building the Firefox code-base or C++ projects, you can build this application yourself <a class="link-https" href="https://wiki.mozilla.org/Gaia/Hacking#Building_B2G" title="https://wiki.mozilla.org/Gaia/Hacking#Building_B2G">following these instructions</a>.</p> <div class="ace-line" id="magicdomid471"><span class="author-g-f6nw4vuclfx20dyp">Pros: </span> <ul class="list-bullet1"> <li><span class="author-g-f6nw4vuclfx20dyp">mobile viewport, similar experience</span> to a mobile device in most respects</li> <li><span class="author-g-f6nw4vuclfx20dyp">more device apis ( not all )</span></li> </ul> </div> <div class="ace-line" id="magicdomid548"><span class="author-g-f6nw4vuclfx20dyp">Cons:</span></div> <div class="ace-line" id="magicdomid613"> <ul class="list-bullet1"> <li><span class="author-g-f6nw4vuclfx20dyp">need to install a C/C++ build system and build Gecko</span></li> <li><span class="author-g-f6nw4vuclfx20dyp">The Firefox dev tools</span> are not available.</li> </ul> </div>
</div>
<h2>Setting up &amp; building Boot to Gecko</h2>
<ul> <li><a href="/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment_for_Ubuntu" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment_for_Ubuntu">Setting up B2G Build Environment for Ubuntu</a> (Reference Setup)</li> <li><a href="/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment_for_Arch_Linux" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment_for_Arch Linux">Setting up B2G Build Environment for Arch Linux</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Setting_up_Boot_to_Gecko_Build_Environment_for_Mac_OS_X" title="en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment_for_Mac_OS_X">Setting up B2G Build Environment for Mac OS X</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Building_B2G_for_QEMU_Emulator" title="en/Mozilla/Boot_to_Gecko/Building_B2G_for_QEMU_Emulator">Building B2G for QEMU Emulator</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Galaxy_S2" title="en/Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Galaxy_S2">Building and flashing B2G for Samsung Galaxy S2</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Nexus_S" title="en/Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Nexus_S">Building and flashing B2G for Samsung Nexus S</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Updating_an_existing_B2G_phone" title="en/Mozilla/Boot_to_Gecko/Updating an existing B2G phone">Updating an existing B2G phone</a></li>
</ul>
Revert to this revision