Compile pjsip to work for iphone simulator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the steps I've done. I have the SIP folder in the same folder as my xcodeproj file.

You need to double click the target for your application and go into the build tab. Once there follow these steps
1. Search for "Other C Flags" and make it equal "-DPJ_AUTOCONF=1 -DNDEBUG -DMGMSIPENABLED=1" (Without quotes and you can remove -DMGMSIPENABLED=1 if your not going to use my SIP wrapper).
2. Search for "Header Search Paths" and add "$(SRCROOT)/SIP/opt/include" (With quotes and if you place it in another location, change accordingly).
3. Search for "Library Search Paths" and add "$(SRCROOT)/SIP/opt/lib" (With quotes and if you place it in another location, change accordingly).
4. Search for "Other Linker Flags" and make it equal "-lg7221codec-ios-universal -lgsmcodec-ios-universal -lilbccodec-ios-universal -lmilenage-ios-universal -lpj-ios-universal -lpjlib-util-ios-universal -lpjmedia-audiodev-ios-universal -lpjmedia-codec-ios-universal -lpjmedia-ios-universal -lpjnath-ios-universal -lpjsip-ios-universal -lpjsip-simple-ios-universal -lpjsip-ua-ios-universal -lpjsua-ios-universal -lresample-ios-universal -lspeex-ios-universal -lsrtp-ios-universal" (Without quotes).

And that should be it, you only need to include in your source code the headers needed. I only included this one, so I'll use it as an example.
#import <pjsua-lib/pjsua.h>

On Oct 3, 2010, at 6:57 PM, Rob Wilkes wrote:

> Thanks James. Quick question - after you build a universal library, how do you use it in 3rd party applications? In addition to dropping it into the frameworks on a new app, do I also need to copy all the PJSIP .h files as well? I am getting link errors of undefined symbols
> 
> On Sun, Oct 3, 2010 at 10:28 AM, James Coleman <grmrgecko at gmail.com> wrote:
> I have a working compile script at http://opensource.mrgeckosmedia.com/?a=tree&p=VoiceMac&h=7884e6e1fcf02d9483f30a09ecfe544ea253d9c4&hb=5dc36cc158c42257da9aaa4da890320199715b22&f=SIP if you want to try it. It compiles iPhone and iPhone simulator and makes a "fat" library. Things to note, you do not want to put it in a folder that it's parents has a space or '.
> 
> Hope you get it working.
> 
> Sent from my iPod 3G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101003/70a6631f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4657 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101003/70a6631f/attachment.p7s>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux