Changes between Version 33 and Version 34 of Getting-Started/iPhone


Ignore:
Timestamp:
Mar 18, 2011 4:55:58 AM (11 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v33 v34  
    130130For 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]. 
    131131 
    132 === Compilation error using iPhoneSimulator SDK version 3.2 === 
     132=== Problem with deprecated CPU_SUBTYPE_ARM_ALL subtype === 
    133133 
    134 If you get this error during compilation: 
     134If you get this warning during compilation: 
    135135{{{ 
    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 
     136CPU_SUBTYPE_ARM_ALL subtype is deprecated 
     137warning: -force_cpusubtype_ALL will become unsupported for ARM architectures 
    138138}}} 
    139139 
    140 Add this in your '''{{{config_site.h}}}''': 
     140Modify your '''{{{user.mak}}}''' (this requires at least gcc 4.2.1 so please use r3462 or later (see ticket #1218)): 
    141141 
    142142{{{ 
    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 
     143export CFLAGS += -march=armv6 -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 
     144export LDFLAGS += -march=armv6 -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 
    147145}}} 
     146 
     147Then rebuild PJSIP. 
     148Next, change your XCode setting, tick Targets-ipjsua(or your application name)-Get Info-Build-Build Active Architecture Only-Yes. 
    148149 
    149150=== Sound not working in the simulator ===