News from Nov 08, 2011

  2011/11/08
Compile PJSIP 1.x for IOS5 using XCode4.2
Last changed: Nov 09, 2011 09:50 by Bartolomeo Sorrentino

The Voip topic and in particular SIP protocol is becoming (rapidly)  the near future of communication.

Obviously It's stategic to use these technologies from Mobile Device. Android form release 2.3 has delivered 'built in' a SIP infrastructure,  making easier to deal with VoiP technologies. On the other hand, at now, for the iPhone there isn't a "built in" SIP implementation, so we have to find out a "Commercial" or "Open Source" solution.

I've tried the PJSIP for IOS and have had some trouble to compile it on MacOSX 10.6.8 for IOS5 using XCode4.2. In particular i needed to work with "IPhone Simulator 4.2" and for this reason i had to compile for platform i386 more than arm7. After a lot of attempts, finally, from the PJSIP FAQ i found the solution shown below

$ export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
$ export CC=$DEVPATH/usr/bin/gcc
$ export CFLAGS="-O2 -m32 -miphoneos-version-min=3.0" LDFLAGS="-O2 -m32"
$ export ARCH='-arch i386'

$ ./configure-iphone
Posted at 08 Nov @ 6:58 PM by Bartolomeo Sorrentino | 0 Comments