How to compile Firefox OS?

First it got started as a project to build Firefox OS for APC-IO (http://apc.io/):

Instruction is given here:

https://github.com/apc-io/apc-firefox-os/blob/master/building-guide.md

You can get a free APC-IO if you submit a pull request (see here: http://apc.io/software/)!!

First is to identify your own build environment – mine is 64-bit Ubuntu 12.04 LTS, and so the requirements is decribed below:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites

or:

https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites

The following is just a very brief introduction:

https://developer.mozilla.org/en/docs/Simple_Firefox_build

Better guide is follows:

https://developer.mozilla.org/en-US/Firefox_OS/Preparing_for_your_first_B2G_build#Configuring_B2G_for_your_device

As explained below, the configuration device for API-IO is "wmid":

https://github.com/apc-io/apc-firefox-os/blob/master/building-guide.md

And so the compilation started and ended successfully:

<…>
make[3]: Entering directory `/home/tteikhua/Downloads/apc-firefox-os/B2G/objdir-gecko/b2g/installer’

make[3]: Nothing to be done for `tools’.
make[3]: Leaving directory `/home/tteikhua/Downloads/apc-firefox-os/B2G/objdir-gecko/b2g/installer’
make[2]: Leaving directory `/home/tteikhua/Downloads/apc-firefox-os/B2G/objdir-gecko/b2g/installer’
make[1]: Leaving directory `/home/tteikhua/Downloads/apc-firefox-os/B2G/objdir-gecko’
Install dir: out/target/product/wmid/system/b2g
rm -rf out/target/product/wmid/system/b2g/user.js
mkdir -p out/target/product/wmid/system/b2g/defaults/pref
cp -r /home/tteikhua/Downloads/apc-firefox-os/B2G/gaia/profile/defaults/* out/target/product/wmid/system/b2g/defaults/
cd out/target/product/wmid/system && tar xvfz /home/tteikhua/Downloads/apc-firefox-os/B2G/out/target/product/wmid/obj/DATA/gecko_intermediates/gecko
b2g/
b2g/libnss3.so
b2g/libxul.so
b2g/libmozglue.so
b2g/dependentlibs.list
b2g/Throbber-small.gif
b2g/precomplete
b2g/platform.ini
b2g/updater
b2g/crashreporter.ini
b2g/libnssckbi.so
b2g/libsoftokn3.so
b2g/omni.ja
b2g/plugin-container
b2g/application.ini
b2g/run-mozilla.sh
b2g/b2g
b2g/libfreebl3.so
b2g/dictionaries/
b2g/dictionaries/en-US.dic
b2g/dictionaries/en-US.aff
b2g/ua-update.json
b2g/removed-files
Finding NOTICE files: out/target/product/wmid/obj/NOTICE_FILES/hash-timestamp
Combining NOTICE files: out/target/product/wmid/obj/NOTICE.html
Installed file list: out/target/product/wmid/installed-files.txt
Target system fs image: out/target/product/wmid/obj/PACKAGING/systemimage_intermediates/system.img
Install system fs image: out/target/product/wmid/system.img

real 29m31.984s
user 120m40.144s
sys 9m22.456s
Creating rootfs tarball ..
Done. Please copy boot.img, recovery.img and rootfs.b2g_140218.0829.tgz to SDCARD and flash to the device.

More compilation bugs related information:

http://rg4.net/archives/1056.html

http://askubuntu.com/questions/392058/usr-bin-ld-cannot-find-lx11-building-firefox-os

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: