4 | | 1. Download Opus source code from [https://www.opus-codec.org/downloads/ here] (latest stable release 1.1.2 or above is recommended). For iOS, you can get the build script [https://github.com/zimuliu/opus-ios-build here] or [https://github.com/chrisballinger/Opus-iOS here]. For Android, you can get the Android makefile [http://stackoverflow.com/questions/17869333/makefile-needed-for-compiling-the-opus-codec-for-android here]. |
5 | | 1. Run PJSIP's {{{configure}}} script with the option {{{--with-opus=your_opus_installation_dir}}} |
| 4 | 1. Download Opus source code from [https://www.opus-codec.org/downloads/ here] (latest stable release 1.1.2 or above is recommended). |
| 5 | 1. Build Opus: |
| 6 | 1. For iOS, get the build script [https://github.com/zimuliu/opus-ios-build here] or [https://github.com/chrisballinger/Opus-iOS here]. |
| 7 | 1. For Android, get the Android makefile attached in this ticket (tested with Opus 1.1.2), or check [http://stackoverflow.com/questions/17869333/makefile-needed-for-compiling-the-opus-codec-for-android here] |
| 8 | - create {{{jni}}} folder in Opus root directory and put {{{Android.mk}}} from this ticket attachment in there |
| 9 | - run {{{ndk-build}}} from Opus root directory |
| 10 | - make a new folder called {{{opus-dev-lib}}} and create subfolders: {{{include/opus}}} and {{{lib}}} in it |
| 11 | - copy Opus header files from {{{[OPUS_ROOT_DIR]/include}}} to {{{opus-dev-lib/include/opus}}} and {{{libopus.a}}} file from {{{[OPUS_ROOT_DIR]/obj/local/armeabi}}} to {{{opus-dev-lib/lib}}} |
| 12 | 1. Run PJSIP's {{{configure}}} script with the option {{{--with-opus=your_opus_installation_dir}}}. For example on Android platform: |
| 13 | {{{ |
| 14 | ./configure-android --with-opus=[absolute-path-to]/opus-dev-lib |
| 15 | }}} |