PJSIP compilation for iphone simulator

PJSIP compilation for iphone simulator
../include/pj/config_site_sample.h:322:1: warning: this is the location of the previous definition
../src/pj/activesock.c: In function ‘activesock_create_iphone_os_stream’:
../src/pj/activesock.c:146: error: ‘kCFStreamNetworkServiceType’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:256)
../src/pj/activesock.c:147: error: ‘kCFStreamNetworkServiceTypeVoIP’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h:259)

for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do

for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/i686-apple-darwin*`; do

#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>

export CFLAGS="-O2 -m32 -miphoneos-version-min=4.0" LDFLAGS="-O2 -m32"
export IPHONESDK=iPhoneSimulator4.2.sdk
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export ARCH="-arch i686"

$ rm pjlib/build/.pjlib*
$ rm pjnath/build/.pjnath*


Learn More :