Error Compiling for iPhone Simulator (Xcode4, gcc 4.2.1, iOS 4.3 or 4.2)

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

 



I'm currently not able to compile for the simulator. (SVN r

I've a 64bit Mac running Snow Leopard.


The error I'm getting is:

../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)
make[2]: *** [output/pjlib-arm-apple-darwin9/activesock.o] Error 1
make[1]: *** [pjlib] Error 2
make: *** [all] Error 1


My export statements are a little different, as ARCH is necessary to even compile, compared to the directions 

I'm doing the following:

svn export http://svn.pjsip.org/repos/pjproject/trunk/

CONFIG_SITE=trunk/pjlib/include/pj/config_site.h
echo $CONFIG_SITE
touch $CONFIG_SITE
echo "#define PJ_CONFIG_IPHONE 1" > $CONFIG_SITE
echo "#include <pj/config_site_sample.h>" >> $CONFIG_SITE

export ARCH="-arch i386"
export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc

cd trunk
echo `pwd`
./configure-iphone
make dep && make clean && make


I've also tried export IPHONESDK=$DEVPATH/SDKs/iPhoneSimulator4.2.sdk

Would love to hear if anyone got this working with Xcode4

Matt






[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