Version 6 (modified by riza, 9 years ago) (diff) |
---|
Getting Started: Building for Windows Phone 8.x and UWP
TracNav
Getting Started- Moved to: https://docs.pjsip.org/en/latest/index.html#get-started
Preparation
Build for Desktop
Build for Mobile
- iOS: Apple iPhone, iPad, and iPod Touch
- Android
- BlackBerry 10 (BB10)
- Windows Mobile
- Windows Phone 8.x and UWP
Symbian...
- Build for Other
Next: Using the libraries
See Also
- Build Preparation
- Requirements
- Building and running the Projects
- Debugging Application
- Other References
Build Preparation
- Get the source code from UWP branch located in: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp
- Set your config_site.h to the following:
#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 #define PJMEDIA_AUDIO_DEV_HAS_WMME 0 #define PJMEDIA_AUDIO_DEV_HAS_WASAPI 1
Requirements
Tools and SDKs
The Visual Studio based project files can be used with one of the following tools:
- Microsoft Visual Studio 2015.
Windows Phone 8.x SDK
Configuring Windows Phone 8.x for Development
UWP SDK
Configuring Windows Phone 10 for Development
Host requirements
For the host, the following are required:
- Operating System type : 64-bit Windows 8 Professional or higher.
Building and running the Projects
Windows Phone 8.x
Follow the steps below to build the libraries/application using Visual Studio:
- Open pjproject-vs14.sln solution file.
- Set API_Family on pjproject-vs14-api-def.props to Winphone8
- Set pjsua_cli_wp as Active or Startup Project.
- Set ARM as the target platform.
- Select Debug or Release build as appropriate.
- Build the project. This will build pjsua_cli_wp application and all libraries needed by pjsua_cli_wp.
- Run/deploy the pjsua_cli_wp application on a registered Windows phone device.
- You will see telnet instructions on the device's screen. Telnet to this address to operate the application. See PJSUA CLI Manual for command reference.
UWP
- Open pjproject-vs14.sln solution file.
- Set API_Family on pjproject-vs14-api-def.props to UWP
- Set Voip as Active or Startup Project.
- Set ARM as the target platform for Windows Phone Device, otherwise set Win32 as the target
- Select Debug or Release build as appropriate.
- Build the project. This will build Voip application and all libraries needed by Voip.
- Run/deploy the Voip application on a Windows 10 device
Debugging Application
To Debug native(C/C++) part of the application:
- Set the Debugger type of project properties [Debug menu] to Native Only.
To Debug managed(C#) part of the application:
- Set the Debugger type of project properties [Debug menu] to Managed Only.
Assert Problem on Debugging Native Code
As described here, assertion will cause process exiting (instead of just stopping). Adding the following code in the application would make process stopping on assertion:
#ifndef NDEBUG signal(SIGABRT, [](int) { __debugbreak(); }); #endif