48 | | 1. Follow the guidance for GNU targets above. |
49 | | 1. Include {{{libopenh264.a}}} and iOS-SDK's {{{libstdc++.dylib}}} to application project in XCode. |
| 44 | 1. Modify the Makefile to install it to a custom folder (find the string PREFIX and modify the value), for example: {{{PREFIX=ios_local}}}. Build the OpenH264 library (example: {{{make OS="ios" ARCH=armv7}}}). Install it to the specified directory (example: {{{make OS="ios" ARCH=armv7 install}}}). |
| 45 | 1. Run PJSIP's {{{configure}}} with {{{--with-openh264}}} option. E.g.: |
| 46 | {{{ |
| 47 | ./configure --with-openh264=/Users/teluu/openh264-iphone/ios_local |
| 48 | }}} |
| 49 | 1. Copy {{{libopenh264.a}}} to your XCode project directory. Create a folder {{{ios_local/lib}}} inside your XCode project directory (example: for our ipjsua sample app, the directory will be: {{{(PJPROJECT_DIR)/pjsip-apps/src/pjsua/ios/ios_local/lib}}}). Then copy OpenH264 dynamic library files to the folder. |
| 50 | Example: |
| 51 | {{{ |
| 52 | cp openh264-iphone/ios_local/lib/libopenh264.a pjproject-iphone/pjsip-apps/src/pjsua/ios/ |
| 53 | cp openh264-iphone/ios_local/lib/*.dylib pjproject-iphone/pjsip-apps/src/pjsua/ios/ios_local/lib |
| 54 | }}} |
| 55 | 1. Add {{{libopenh264.a}}} and iOS-SDK's {{{libstdc++.dylib}}} to your application project in XCode. |