Compile pjsip to work for iphone simulator

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

 



Just wanted to add to the conversation; It's also very easy to get the pjsip library compiled for the Simulator so it can be run without adding conditions for
wether the app is being run in the simulator or on the phone.

Just change two environment variables before running ./configure-iphone (can someone with access to Trac please update this on this
wiki-page: https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone):
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/i686-apple-darwin10-gcc-4.0.1

and run "make dep && make".

You can also use "lipo" to create a universal library of pjsip to support both the simulator and device in
the same lib files.


Best regards,
Even Andr?, CTO Oyatel 

On 2. aug. 2010, at 15.09, Darald Trinka wrote:

> We simply added a set of #ifdefs DISABLE_VOIP around the calls to pjsua. Then in Xcode we defined a new "configuration" that includes DISABLE_VOIP - where the standard configurations don't include it. 
> 
> - "Get info" on your project
> - Click configurations
> - Duplicate "Debug"
> - While still in the Get info window, click "Build" 
> - Add -DDISABLE_VOIP to "Other C++ Flags"
> 
> Once you do this you can then easily toggle between voip/no-voip builds.
> 
> D
> 
> On Jul 31, 2010, at 5:39 PM, Antonio D'souza wrote:
> 
>> I saw your post at http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-June/011129.html and was wondering if you'd mind sharing the change you made to your XCode config to avoid linking against pj as I too need only make UI changes.
>> 
>> Thank you kindly,
>> Tony
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 






[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