Changes between Version 38 and Version 39 of Getting-Started/iPhone


Ignore:
Timestamp:
Aug 9, 2011 6:40:28 AM (9 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v38 v39  
    2020== Requirements == 
    2121 
    22 You'll need an iPhone SDK. We tested mainly with version 3.x SDK/devices, but SDK version 2.x would build fine too. Apple iPad is supported starting with iPhone SDK 3.2. 
     22You'll need an iPhone SDK. We tested mainly with version 4.x SDK/devices, but SDK version 3.x should build fine too. Apple iPad is supported starting with iPhone SDK 3.2. 
    2323 
    2424== Build Preparation == 
     
    110110Note: these steps do not troubleshoot audio problems. 
    111111 
     112=== Supporting multiple architectures (armv6 and armv7) === 
     113 
     114You need to compile separately for each architecture. For armv7, you need to compile using the flags: 
     115 
     116{{{ 
     117export CFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 
     118export LDFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 
     119}}} 
     120 
     121For armv6, you need to compile using the flags: 
     122 
     123{{{ 
     124export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s 
     125export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s 
     126}}} 
     127 
     128Then you need to combine the resulting libraries using the '''{{{lipo}}}''' command. For example: 
     129 
     130{{{ 
     131lipo -arch armv6 lib/armv6/libpjlib.a -arch armv7 lib/armv7/libpjlib.a -create -output lib/libpjlib.a 
     132}}} 
     133 
     134Another way to build a universal binary (for reference on how to build it on MacOS X, please see [https://trac.pjsip.org/repos/wiki/FAQ#osx-universal the FAQ here]) is to use '''{{{llvm-gcc}}}''' compiler provided in the iPhone SDK. For reference, please see [http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2011-June/013052.html this discussion] in pjsip mailing list. 
     135 
    112136=== Unable to support Bluetooth input === 
    113137