於 2018年8月23日 (四) 11:34 由
Tommy (對話 | 貢獻) 所做的修訂
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
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