"Firefox" 修訂間的差異
(已建立頁面,內容為 "fox == Prepare == * 64-bit linux (Scientific Linux Fermi) * install 32-bit libs ** yum install glibc*.i686 ** yum install zlib*.i686 ** yu…") |
(無差異)
|
於 2018年8月23日 (四) 11:34 的最新修訂
Prepare
- 64-bit linux (Scientific Linux Fermi)
- install 32-bit libs
- yum install glibc*.i686
- yum install zlib*.i686
- yum install ncurses*.i686
- yum install libstdc++*.i686
- yum install *libGL*.i686
- yum install *X11*.i686
- Python 2.7.3 above (https://www.python.org/download/)
- ccache (http://ccache.samba.org/download.html)
- yasm (http://yasm.tortall.net/Download.html)
- CMake 2.8 or higher is required (http://www.cmake.org/cmake/resources/software.html)
- If you are using APU, please install drivers for GPU in linux:
- Install Android ndk toolchain
- https://dl.google.com/android/repository/android-ndk-r13-linux-x86_64.zip
- export B2G_ANDROID_NDK_PATH=/opt/android-ndk
- 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
- adb start-server
- ./run-emulator.sh