Refactor: add [[Category:Software and Tools
]] |
Add a lead sentence |
||
| (未顯示同一使用者於中間所作的 1次修訂) | |||
| 第1行: | 第1行: | ||
Building '''Firefox''' from source on 64-bit Linux, including the 32-bit libraries it needs and the problems met along the way. | |||
[[File:firefox_logo.jpeg|fox]] | [[File:firefox_logo.jpeg|fox]] | ||
== Prepare == | == Prepare == | ||
| 第42行: | 第44行: | ||
* ./run-emulator.sh | * ./run-emulator.sh | ||
== | == Reference == | ||
* [https://developer.mozilla.org/en-US/Firefox_OS/Preparing_for_your_first_B2G_build Preparing for your first B2G build] | * [https://developer.mozilla.org/en-US/Firefox_OS/Preparing_for_your_first_B2G_build Preparing for your first B2G build] | ||
[[Category:Software and Tools]] | [[Category:Software and Tools]] | ||
2026年8月23日 (日) 17:57的最新修訂
Building Firefox from source on 64-bit Linux, including the 32-bit libraries it needs and the problems met along the way.
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
