3 | | Community tips: |
4 | | * [http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2012-December/015578.html Windows RT Component wrapper] |
| 5 | == Build Preparation == |
| 6 | |
| 7 | * Get the source code from Windows Phone branch located in: |
| 8 | '''http://svn.pjsip.org/repos/pjproject/branches/projects/winphone''' |
| 9 | * Set your [wiki:Getting-Started/Build-Preparation config_site.h] to the following: |
| 10 | {{{ |
| 11 | #define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 |
| 12 | #define PJMEDIA_AUDIO_DEV_HAS_WMME 0 |
| 13 | #define PJMEDIA_AUDIO_DEV_HAS_WASAPI 1 |
| 14 | }}} |
| 15 | |
| 16 | == Requirements == |
| 17 | |
| 18 | === Tools and SDKs === |
| 19 | |
| 20 | The Visual Studio based project files can be used with one of the following tools: |
| 21 | * Microsoft Visual Studio 2012. Tested on Professional and Express version. |
| 22 | |
| 23 | In addition, the following SDK is needed: |
| 24 | * [http://dev.windowsphone.com/en-us/downloadsdk Windows phone SDK]. The SDK also provides Visual Studio Express 2012 for Windows Phone. |
| 25 | |
| 26 | === Host requirements === |
| 27 | |
| 28 | For the host, the following are required: |
| 29 | |
| 30 | * Operating System type : 64-bit Windows 8 Professional or higher. |
| 31 | |
| 32 | === Configuring the Windows Phone device for Development === |
| 33 | * For the rest of this tutorial, we will assume that you already have the Windows Phone target device configured for development. If not, follow [http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769508(v=vs.105).aspx these instructions]. |
| 34 | |
| 35 | == Building and running the Projects == |
| 36 | |
| 37 | Follow the steps below to build the libraries/application using Visual Studio: |
| 38 | |
| 39 | 1. Open {{{pjproject-vs11.sln}}} solution file. |
| 40 | 1. Set '''pjsua_wp''' as Active or Startup Project. |
| 41 | 1. Set '''ARM''' as the target platform. |
| 42 | 1. Select '''Debug''' or '''Release''' build as appropriate. |
| 43 | 1. Build the project. This will build '''pjsua_wp''' application and all libraries needed by '''pjsua_wp'''. |
| 44 | 1. Run/deploy the '''pjsua_wp''' application on a registered Windows phone device. |
| 45 | 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. |
| 46 | |
| 47 | == Debugging Application == |
| 48 | |
| 49 | To Debug native(C/C++) part of the application: |
| 50 | * Set the '''Debugger type''' of pjsua_wp project properties to '''Native Only'''. |
| 51 | |
| 52 | To Debug managed(C#) part of the application: |
| 53 | * Set the '''Debugger type''' of pjsua_wp project properties to '''Managed Only'''. |
| 54 | |
| 55 | |
| 56 | == Other References == |