./configure --config=iPhone --prefix=/libs/pocos --static --notests --nosamples
#./configure --config=iPhoneSimulator --prefix=/libs/pocos --static --notests --nosamples
由于系统升级到了mac os x 10.7.4,xcode目录也变到了/Applications/Xcode.app,所以要编译iphone版的就要做些修改,找到build/config/iPhone文件打开编辑,修改如下:
IPHONE_SDK_VERSION = 5.1
GCC_VER = 4.2
IPHONE_SDK ?= iPhoneOS
IPHONE_SDK_ROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
POCO_TARGET_OSARCH ?= armv7
TOOL_PREFIX ?= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
make
make install