Ubuntu12.0464-bit FirefoxOS Compilation

Source: Internet
Author: User
Compilation environment: Ubuntu12.0464-bit preparation compiling environment: 1. install the software library required for the software sudoapt-getinstallautoconf2.13ccachebisonflexlibncurses5-devmakecurlbzip2 compiling environment depends on the current system environment, FirefoxOS will check the dependency software library information during compilation, you can install the required software based on the Compilation error information.

Compiling environment:
Ubuntu 12.04 64-bit
Prepare the compiling environment:
1. install required software

Sudo apt-get install autoconf2.13 ccache bison flex libncurses5-dev make curl bzip2

The software library that the compiling environment depends on is related to the current system environment. Firefox OS checks the information of the dependent software library during compilation. you can install the required software library according to the compilation error information.

2. Download the source code

Git clone https://github.com/mozilla-b2g/B2G.git
Cd B2G
Note: If the entire code directory is copied from another computer, run./build. sh clean first.
3. Configure the B2G Device
Select one of the following lists during config. Please select according to your device model. If you do not have the corresponding mobile phone, you can use the command./config. sh emulator to compile the Virtual Machine runtime environment.
./Config. sh
Usage:./config. sh (device name)
Galaxy-s2
-Galaxy-nexus
-Nexus-s
-Otoro
-Pandaboard
-Emulator
Emulator-x86
3. Compile
./Build. sh
Multi-threaded compilation. You can use./build. sh-j8. The parameter-j indicates that the compiler can start several threads for compilation at the same time.
Learn more:
Https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Preparing_for_your_first_B2G_build

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.