Tuesday 13 March 2012
Building b2g on Fedora. Field notes
By hub, Tuesday 13 March 2012 at 09:40 :: Mozilla
Yesterday I tried and successfully built b2g on Fedora 16 x86_64, targeting the emulator. These are my notes on how to do it as the instructions to setup the build environment are very Ubuntu centric.
The prebuilt binaries expect to be on a 32-bits system. So we are gonna need to install 32-bits packages. Also there is a requirement to have adb
to boostrap (it is built afterwards). Fortunately you can skip installing the SDK for the bootstrap and use the Fedora package android-tools
that provides adb
.
The packages you need, that will also pull the proper dependencies are:
glibc.i686
glibc-devel.i686
libstdc++.i686
ncurses-devel.i686
readline-devel.i686
zlib-devel.i686
To run qemu:
libXrandr.i686
You also need the usual requirements to build Firefox as well as git
. Install these using yum.
Then follow the build instructions to build on QEMU.
Enjoy !
(dont forget part 2)