Changes between Version 30 and Version 31 of Getting-Started/BB10


Ignore:
Timestamp:
Aug 18, 2014 4:26:27 AM (10 years ago)
Author:
nanang
Comment:

Add build info for Windows/MSys host

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/BB10

    v30 v31  
    1010== Requirements == 
    1111 
    12 === !BlackBerry 10 Native SDK === #ndk 
    13  
    14 You'll need [https://developer.blackberry.com/native/ BlackBerry 10 Native SDK] for native development. After you download and install the SDK, set the environment variables: 
     12 - You will need [https://developer.blackberry.com/native/ BlackBerry 10 Native SDK] for native development. 
     13 - For Windows host, you will need [http://www.mingw.org/wiki/MSYS MSys/MinGW] to build PJSIP. 
     14 
     15 
     16[[BR]] 
     17 
     18== Configure and Build PJSIP == 
     19 
     20This tutorial applies to Linux, MacOSX, and Windows/MSys host. 
     21 
     22=== Get PJSIP Source Code === 
     23 
     24[wiki:Getting-Started/Download-Source Get the source code], if you haven't already. This tutorial applies to PJSIP version 2.2 and above (or the 2.1 from SVN trunk dated 2013/04/16 or later). 
     25 
     26[[BR]] 
     27=== Configure PJSIP === 
     28 
     29Note for Windows host, the configure and build process are to be done on MSys/MinGW console. 
     30 
     31 1. Run this in your BB10 NDK directory, otherwise the {{{configure}}} command will fail: 
    1532 {{{ 
    1633$ source $BBNDK_DIR/bbndk-env.sh 
    1734 }}} 
    18  
    19  
    20  
    21 [[BR]] 
    22  
    23 == (For Linux and Mac OS X Hosts:) Configure and Build PJSIP == 
    24  
    25 === Get PJSIP Source Code === 
    26  
    27 [wiki:Getting-Started/Download-Source Get the source code], if you haven't already. This tutorial applies to PJSIP version 2.2 and above (or the 2.1 from SVN trunk dated 2013/04/16 or later). 
    28  
    29 [[BR]] 
    30 === Configure PJSIP === 
    31  
    32  1. Run this in your BB10 NDK directory, otherwise the {{{configure}}} command will fail: 
    33  {{{ 
    34 $ source $BBNDK_DIR/bbndk-env.sh 
     35 For Windows host, put back MSys/MinGW binary path to the beginning of environment variable {{{PATH}}} setting, otherwise MSys/MinGW standard tools will be overridden by BB10 NDK and the {{{configure}}} command will fail: 
     36 {{{ 
     37$ export PATH="/usr/local/bin:/mingw/bin:/bin:$PATH" 
    3538 }}} 
    3639 1. {{{cd}}} to PJSIP source directory. 
     
    4447$ CFLAGS="-O -g" ./configure-bb10 --disable-speex-aec --simulator 
    4548 }}} 
     49 1. For Windows host, edit {{{pjsip.pri}}} in the PJSIP root directory, replace '{{{/C/}}}' with '{{{C:/}}}'. 
    4650 1. We suggest to fill in your '''{{{config_site.h}}}''' ({{{pjlib/include/pj/config_site.h}}} file) with the following: 
    4751 {{{ 
     
    6872=== (Optional) Import and Build PJSIP to/in Momentics IDE === 
    6973 
    70 This is optional, as you can just run '''{{{make}}}''' in PJSIP directory to build PJSIP. But nevertheless this is a lot more convenient especially if you are developing PJSIP. 
     74This is optional, as you can just run '''{{{make}}}''' in PJSIP directory to build PJSIP. But nevertheless this is a lot more convenient especially if you are developing PJSIP. Note that this does not work on Windows host, so for Windows host, just use '''{{{make}}}''' instead. 
    7175 
    7276Import PJSIP as New Project: 
     
    106110 
    107111 
    108 [[BR]] 
    109  
    110 == (For Windows Hosts:) Configure and Build PJSIP == 
    111  
    112 TODO 
    113  
    114112 
    115113[[BR]]