Changes between Version 29 and Version 30 of Getting-Started/iPhone


Ignore:
Timestamp:
Nov 3, 2010 12:35:35 PM (13 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v29 v30  
    5555 
    5656 {{{ 
    57 $ export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer 
    58 $ export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 
    59 $ ./configure-iphone 
    60 $ make dep && make clean && make 
     57export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer 
     58export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 
     59./configure-iphone 
     60make dep && make clean && make 
    6161 }}} 
    6262 
    6363Note that the exact paths may vary according to your SDK version. 
     64 
     65== OpenSSL == 
     66 
     67Follow the instructions below to enable TLS transport by using OpenSSL: 
     68 1. Build and install OpenSSL-0.9.8o for iPhone by following [http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/ these instructions]. 
     69 1. Specify OpenSSL location when running {{{configure-iphone}}}, for example (with Bash): 
     70 {{{ 
     71export OPENSSL=/Users/you/openssl/openssl_arm 
     72export CFLAGS="-O2 -Wno-unused-label -I${OPENSSL}/include" 
     73export LDFLAGS="-L${OPENSSL}/lib" 
     74./configure-iphone 
     75 }}} 
     76 And check that OpenSSL is detected by the configure script: 
     77 {{{ 
     78... 
     79checking for OpenSSL installations.. 
     80checking openssl/ssl.h usability... yes 
     81checking openssl/ssl.h presence... no 
     82aconfigure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor! 
     83aconfigure: WARNING: openssl/ssl.h: proceeding with the compiler's result 
     84checking for openssl/ssl.h... yes 
     85checking for ERR_load_BIO_strings in -lcrypto... yes 
     86checking for SSL_library_init in -lssl... yes 
     87OpenSSL library found, SSL support enabled 
     88... 
     89 }}} 
     90 1. Build the libraries: 
     91 {{{ 
     92make dep && make 
     93 }}} 
     94 1. In XCode project setting of your application (for example, ipjsua), add {{{libssl.a}}} and {{{libcrypto.a}}} from OpenSSL ARM directory to the project's Libraries: 
     95  a. In '''Group & Files''' pane, expand '''ipjsua''', then right click '''Libraries''', and select '''Add -> Existing Files...'''. 
     96  a. Find {{{libssl.a}}} and {{{libcrypto.a}}} from OpenSSL ARM directory (for example, {{{/Users/you/openssl/openssl_arm}}}) 
     97 1. Build the app 
     98 
    6499 
    65100== Common problems ==