[pjsip] Building pjsip for windows phone 8
kk.pffforums at gmail.com
Thu Dec 20 01:45:13 EST 2012
Thanks a lot for the detailed reply, got the libraries build in VS2012.
did some quick analysis for Windows Phone Runtime Component.
Options to create windows phone 8 application,
1. C# and XAML
2. VB and XAML
C++ and XAML option is not available for creating WP8 apps.
Since C# is managed code one possible way is to add reference for runtime
pjproject will not be added in the similar way since it is not COM
based.(cannot be added as reference to the client app)
Any ideas how to tackle this issue and export the functions to be available
for the C# and XAML Client application?
On Thu, Dec 20, 2012 at 9:39 AM, Vineet Gupta <vineet.g at directi.com> wrote:
> The way I am approaching this is to try and compile components - pjnath,
> pjmedia - individually on win32 first. I will then tackle the problem of
> exposing them as dlls and building them for windows phone.
> To build pj on vs 2012, I followed the steps on
> https://trac.pjsip.org/repos/wiki/Getting-Started/Windows. VS 2012 will
> upgrade the projects with warnings about windows ce and the windows mobile
> platform - these can be ignored.
> After the upgrade, you will be able to build the solution but will
> get linker warnings on the output file path not being the same as target
> file path - these too can be ignored. However, if you want to address them,
> there are 3 points you will have to touch for each pj project:
> 1) Configuration Properties - General - Output Dir: I set this to ..\lib\
> 2) Configuration Properties - General - Target Name: set
> to $(ProjectName)-$(Platform)-vc$(VSVer)-$(Configuration)
> 3) Configuration Properties - Librarian - Output file: set
> to ..\lib\$(ProjectName)-$(Platform)-vc$(VSVer)-$(Configuration).lib
> What I wanted to do was to test the ICE functionality. So I created a
> Windows console app and to the same solution added pjlib, pjlib_util and
> pjnath. There are three steps required:
> 1) For the compiler to have access to declarations, go to Configuration
> Properties - VC++ directories - Include directories and add the paths to
> the include directories in each of the pj projects (for example
> 2) For the linker to have access to the obj files, go to References, Add
> New Reference and check all the pj projects you have added to the solution.
> 3) pj uses winsock but VS does not link winsock by default, so you will
> get linker errors. To fix this, go to Linker - Input - Additional
> Dependencies and add ws2_32.lib there. (you may need to install the windows
> At this point, I still have a linker warning (LNK4098: defaultlib
> 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library)
> but the code runs successfully despite that (I tried icedemo).
> I believe the approach above would work for your needs as well.
> Hope that helps
> On Fri, Dec 14, 2012 at 11:47 AM, kk rk <kk.pffforums at gmail.com> wrote:
>> I am also trying to build PJSIP for windows phone 8, looks like it should
>> be compiled as a windows phone runtime component so that it can be added as
>> a reference for windows phone application (C# and XAML).
>> Also tried to build in VS2012 but facing some issues like projects are
>> not opening in VS2012.
>> Can you send across the list of steps you performed to get PJSIP compiled
>> in VS2012?
>> Karthikeyan K.
>> On Wed, Dec 12, 2012 at 10:55 PM, Vineet Gupta <vineet.g at directi.com>wrote:
>>> I have pjsip building fine on VS 2012 and now want to build it for
>>> windows phone 8.
>>> Has anyone tried to build pjsip for windows phone 8? What has been your
>>> If not, any pointers on how to go about it / potential gotchas?
>>> Visit our blog: http://blog.pjsip.org
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>> Visit our blog: http://blog.pjsip.org
>> pjsip mailing list
>> pjsip at lists.pjsip.org
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip