You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Herm Wong (JIRA)" <ji...@apache.org> on 2012/08/06 23:57:02 UTC

[jira] [Comment Edited] (CB-1199) Build the B2G source

    [ https://issues.apache.org/jira/browse/CB-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429467#comment-13429467 ] 

Herm Wong edited comment on CB-1199 at 8/6/12 9:55 PM:
-------------------------------------------------------

follow the instructions in *Building* section: https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Building_Boot_to_Gecko

**NOTES**

I had to use the following commands to successfully build on my Macbook Pro.

1. type "ccache -M --max-size=0" & press enter, this creates an unlimited buffer size for the building process

2. type "ccache -C" & press enter, this will clear the build cache

3. type "./build.sh -j2" & press enter, this tells the build script to only use 2 CPU cores (you can use -jX to specify the number of cores you wish to use or just type "./build.sh" to use all of your CPU cores).

I found that the build would lock up when using "./build.sh" but had no problems building with "./build.sh -j2".

If you keep running into problems while attempting your build you can use "./build.sh -j1 showcommand" to force the build to run on 1 core (no parallel processing) and get a verbose output in the terminal of what is happening during the build process.

Another problem that I ran into was that the B2G repo was not always stable; I keep updating to the latest repo over the span of a week before I was able to get a copy of the source that would successfully build.
                
      was (Author: hermwong):
    follow the instructions in *Building* section: https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Building_Boot_to_Gecko

**NOTES**

I had to use the following commands to successfully build on my Macbook Pro.

1. type "ccache -M --max-size=0" & press enter, this creates an unlimited buffer size for the building process

2. type "ccache -C" & press enter, this will clear the build cache

3. type "./build.sh -j2" & press enter, this tells the build script to only use 2 CPU cores (you can use -jX to specify the number of cores you wish to use or just type "./build.sh" to use all of your CPU cores).

I found that the build would lock up when using "./build.sh" but had no problems building with "./build.sh -j2".

If you keep running into problems while attempting your build you can use "./build.sh -j1 showcommand" to force the build to run on 1 core (no parallel processing) and get a verbose output in the terminal of what is happening during the build process.
                  
> Build the B2G source
> --------------------
>
>                 Key: CB-1199
>                 URL: https://issues.apache.org/jira/browse/CB-1199
>             Project: Apache Cordova
>          Issue Type: Sub-task
>            Reporter: Herm Wong
>            Assignee: Herm Wong
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira