Changes between Version 6 and Version 7 of Getting-Started/Windows-Phone
- Timestamp:
- Jan 25, 2017 4:43:03 AM (8 years ago)
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 = 2 2 [[TracNav(Getting-Started/TOC)]] 3 3 [[PageOutline(2-3,,inline)]] … … 5 5 == Build Preparation == 6 6 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 9 12 * Set your [wiki:Getting-Started/Build-Preparation config_site.h] to the following: 10 13 {{{ … … 13 16 #define PJMEDIA_AUDIO_DEV_HAS_WASAPI 1 14 17 }}} 18 }}} 15 19 16 20 == Requirements == … … 18 22 === Tools and SDKs === 19 23 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] 34 30 35 31 === Host requirements === … … 41 37 == Building and running the Projects == 42 38 39 === UWP === 40 41 Follow 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 43 57 === Windows Phone 8.x === 44 58 45 Follow the steps below to build the libraries /application using Visual Studio:59 Follow the steps below to build the libraries and sample application using Visual Studio 2015: 46 60 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 }}} 47 67 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. 52 70 1. Build the project. This will build '''pjsua_cli_wp''' application and all libraries needed by '''pjsua_cli_wp'''. 53 71 1. Run/deploy the '''pjsua_cli_wp''' application on a registered Windows phone device. 54 72 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. 55 73 56 === UWP ===57 58 1. Open {{{pjproject-vs14.sln}}} solution file.59 1. Set API_Family on pjproject-vs14-api-def.props to UWP60 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 target62 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 device65 74 66 75 == Debugging Application == … … 86 95 == Other References == 87 96 * [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