Changes between Version 6 and Version 7 of Getting-Started/Windows-Phone


Ignore:
Timestamp:
Jan 25, 2017 4:43:03 AM (8 years ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Windows-Phone

    v6 v7  
    1 = Getting Started: Building for Windows Phone 8.x and UWP = 
     1= Getting Started: Building for UWP and Windows Phone 8.x = 
    22[[TracNav(Getting-Started/TOC)]] 
    33[[PageOutline(2-3,,inline)]] 
     
    55== Build Preparation == 
    66 
    7  * Get the source code from UWP branch located in: 
    8    '''https://svn.pjsip.org/repos/pjproject/branches/projects/uwp''' 
     7 1. [wiki:Getting-Started/Download-Source Get the source code], if you haven't already. UWP and WP8 support is available since PJSIP 2.6. 
     8 1. '''It is important that you create a config_site.h as described in [wiki:Getting-Started/Build-Preparation Build Preparation]''' 
     9 
     10{{{ 
     11#!comment 
    912 * Set your [wiki:Getting-Started/Build-Preparation config_site.h] to the following: 
    1013  {{{ 
     
    1316#define PJMEDIA_AUDIO_DEV_HAS_WASAPI 1 
    1417  }}} 
     18}}} 
    1519 
    1620== Requirements == 
     
    1822=== Tools and SDKs === 
    1923 
    20 The Visual Studio based project files can be used with one of the following tools: 
    21     * Microsoft Visual Studio 2015. 
    22  
    23 ==== Windows Phone 8.x SDK ==== 
    24     * [http://dev.windowsphone.com/en-us/downloadsdk Windows phone SDK].  
    25  
    26 ==== Configuring Windows Phone 8.x for Development ==== 
    27     * [http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769508(v=vs.105).aspx Follow ​these instructions] 
    28  
    29 ==== UWP SDK ==== 
    30     * [https://dev.windows.com/en-us/downloads/windows-10-sdk UWP SDK].  
    31  
    32 ==== Configuring Windows Phone 10 for Development ==== 
    33     * [https://msdn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development Follow these instructions] 
     24 * Microsoft Visual Studio 2015 Update 3 
     25 * [https://dev.windows.com/en-us/downloads/windows-10-sdk UWP SDK] for UWP/Windows 10 target. 
     26 * [http://dev.windowsphone.com/en-us/downloadsdk Windows Phone 8 SDK] for Windows Phone 8 target.  
     27 * Configuring device for development: 
     28   - for Windows 10, follow the instructions [https://msdn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development here] 
     29   - for Windows Phone 8.x, follow the instructions [http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769508(v=vs.105).aspx here] 
    3430 
    3531=== Host requirements === 
     
    4137== Building and running the Projects == 
    4238 
     39=== UWP === 
     40 
     41Follow the steps below to build the libraries and sample application using Visual Studio 2015: 
     42 
     43   1. Using any text editor, open {{{build\vs\pjproject-vs14-api-def.props}}} and set {{{API_Family}}} to '''UWP''', i.e: 
     44      {{{ 
     45... 
     46<API_Family>UWP</API_Family> 
     47... 
     48      }}} 
     49   1. Open {{{pjproject-vs14.sln}}} solution file. 
     50   1. Set solution platform to: 
     51      - '''ARM''' to build for UWP/Windows 10 device 
     52      - '''Win32''' to build for emulator 
     53   1. Set '''Voip''' as Startup Project. 
     54   1. Build the project. This will build '''Voip''' application and all libraries needed by '''Voip'''. 
     55   1. Run 
     56 
    4357=== Windows Phone 8.x === 
    4458 
    45 Follow the steps below to build the libraries/application using Visual Studio: 
     59Follow the steps below to build the libraries and sample application using Visual Studio 2015: 
    4660 
     61   1. Using any text editor, open {{{build\vs\pjproject-vs14-api-def.props}}} and set {{{API_Family}}} to '''Winphone8''', i.e: 
     62      {{{ 
     63... 
     64<API_Family>Winphone8</API_Family> 
     65... 
     66      }}} 
    4767   1. Open {{{pjproject-vs14.sln}}} solution file. 
    48    1. Set API_Family on pjproject-vs14-api-def.props to Winphone8 
    49    1. Set '''pjsua_cli_wp''' as Active or Startup Project. 
    50    1. Set '''ARM''' as the target platform. 
    51    1. Select '''Debug''' or '''Release''' build as appropriate. 
     68   1. Set '''ARM''' as the solution platform. 
     69   1. Set '''pjsua_cli_wp''' as Startup Project. 
    5270   1. Build the project. This will build '''pjsua_cli_wp''' application and all libraries needed by '''pjsua_cli_wp'''. 
    5371   1. Run/deploy the '''pjsua_cli_wp''' application on a registered Windows phone device. 
    5472   1. You will see telnet instructions on the device's screen. Telnet to this address to operate the application. See [wiki:PJSUA-CLI PJSUA CLI Manual] for command reference. 
    5573 
    56 === UWP === 
    57  
    58    1. Open {{{pjproject-vs14.sln}}} solution file. 
    59    1. Set API_Family on pjproject-vs14-api-def.props to UWP 
    60    1. Set '''Voip''' as Active or Startup Project. 
    61    1. Set '''ARM''' as the target platform for Windows Phone Device, otherwise set '''Win32''' as the target 
    62    1. Select '''Debug''' or '''Release''' build as appropriate. 
    63    1. Build the project. This will build '''Voip''' application and all libraries needed by '''Voip'''. 
    64    1. Run/deploy the '''Voip''' application on a Windows 10 device 
    6574 
    6675== Debugging Application == 
     
    8695== Other References == 
    8796 * [http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206983%28v=vs.105%29.aspx VoIP apps for Windows Phone 8] 
    88  * [https://trac.pjsip.org/repos/ticket/1900 Windows 10/UWP Port ticket] 
     97 * Ticket #1900 about porting to Windows 10/UWP