Quick notes: Building B2G aka FirefoxOS for Nexus4

Wanted to do that for a while, but now finally had the time and motivation. I’ll jot down things that I had to do to get the build go through. YMMV. These notes are highly likely to be outdated within a couple of days/weeks.

As usual I’m just following:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisiteshttps://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build

  • Nexus-4 is currently only available on the ‘master’ branch:
    BRANCH=master ./config.sh nexus-4
  • My wheezy AMD64 build machine needed a pile of additional amd64 packages for some reason:
    apt-get install libxrender1 libxrender-dev libasound2 libasound-dev \
    libdbus-glib-1-2 libdbus-glib-1-dev libgtk2.0-0 libgtk2.0-dev \
    libxt6 libxt-dev
  • Jukka.com also mentions that he needed to install:
    libxml2-utils

After that the build went through in about 20minutes on my build host.

I’ll only find out tomorrow afternoon if it’s usable, as my Nexus4 is currently not here.

 

Tagged on: , , ,