Prepare
- 64-bit linux (Scientific Linux Fermi)
- install 32-bit libs
- If you are using APU, please install drivers for GPU in linux:
- Install Android ndk toolchain
- Install tools
- sudo apt-get install flex
- Install autoconf213
- sudo apt-get install linuxbrew-wrapper
- brew tap homebrew/versions
- brew install autoconf213
source
- git clone git://github.com/mozilla-b2g/B2G.git
Build
- ./config.sh (device name ex., flame-kk)
- ./build.sh
Build trouble shooting
When you are using angle brackets in include (e.g. #include <xyz>)
it does not look in the directory from where the include is done. Use double quotes instead, e.g. #include "xyz".
Run
- start ADB server
- ./run-emulator.sh
reference