Compile PJSIP 1.x for IOS5 using XCode4.2

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
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.