Changes between Version 33 and Version 34 of Getting-Started/iPhone
- Timestamp:
- Mar 18, 2011 4:55:58 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/iPhone
v33 v34 130 130 For more details, please refer to Apple's doc on [http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/RemoteControl/RemoteControl.html Remote Control of Multimedia]. 131 131 132 === Compilation error using iPhoneSimulator SDK version 3.2===132 === Problem with deprecated CPU_SUBTYPE_ARM_ALL subtype === 133 133 134 If you get this errorduring compilation:134 If you get this warning during compilation: 135 135 {{{ 136 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/available.h:111:6: 137 error: #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED 136 CPU_SUBTYPE_ARM_ALL subtype is deprecated 137 warning: -force_cpusubtype_ALL will become unsupported for ARM architectures 138 138 }}} 139 139 140 Add this in your '''{{{config_site.h}}}''':140 Modify your '''{{{user.mak}}}''' (this requires at least gcc 4.2.1 so please use r3462 or later (see ticket #1218)): 141 141 142 142 {{{ 143 #undef __MAC_OS_X_VERSION_MIN_REQUIRED 144 #undef __MAC_OS_X_VERSION_MAX_ALLOWED 145 #define __MAC_OS_X_VERSION_MIN_REQUIRED __MAC_OS_X_VERSION_10_4 146 #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_OS_X_VERSION_10_5 143 export CFLAGS += -march=armv6 -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 144 export LDFLAGS += -march=armv6 -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 147 145 }}} 146 147 Then rebuild PJSIP. 148 Next, change your XCode setting, tick Targets-ipjsua(or your application name)-Get Info-Build-Build Active Architecture Only-Yes. 148 149 149 150 === Sound not working in the simulator ===