Changes between Version 4 and Version 9 of Ticket #1758


Ignore:
Timestamp:
Jun 26, 2014 9:20:52 AM (5 years ago)
Author:
nanang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1758 – Description

    v4 v9  
    2525 
    2626For Visual Studio: 
     27 1. Build the OpenH264 library with MinGW make & gcc, and install it to a directory (with "make install"). By default it installs to {{{/usr/local}}}. You need to modify the Makefile to install it to different location (=prefix). 
     28 1. Create {{{openh264.lib}}} from {{{openh264.def}}}, note that the static lib {{{libopenh264.a}}} outputted by MinGW gcc cannot be used by VS, so we are going to use the dynamic lib version instead: 
     29    1. open 'Visual Studio command prompt', e.g: ''Win Start Menu -> MS VS 2005 -> VS Tools -> VS 2005 Command Prompt'' 
     30    1. change dir to OpenH264 source root directory 
     31    1. run "lib /def:openh264.def", this will create {{{openh264.lib}}}, copy this file to the OpenH264 installation directory 
     32    1. rename or copy {{{libopenh264.dll}}} to {{{openh264.dll}}} and put it in the system path 
     33 1. Add OpenH264 include and library installation paths to Visual Studio search path settings. 
    2734 1. Add this to your {{{config_site.h}}}: 
    2835 {{{ 
    2936#define PJMEDIA_HAS_OPENH264_CODEC              1 
    3037 }}} 
     38 
     39For iOS: 
     40 1. Follow the guidance for GNU targets above. 
     41 1. Include {{{libopenh264.a}}} and iOS-SDK's {{{libstdc++.dylib}}} to application project in XCode. 
     42 1. Better remove/rename {{{libopenh264.dylib}}} from the OpenH264 installation directory, as somehow it may cause crash on runtime (failed in loading dynamic lib).