No description
Find a file
2014-12-23 10:56:43 +01:00
.tx Add transifex support for localization 2014-11-25 11:13:27 +01:00
ar.lproj Add arabic translation (not yet translated, this is just for the files) 2014-11-25 15:10:34 +01:00
Classes Revert UICallCell subview trick 2014-12-23 10:56:43 +01:00
liblinphone-tutorials/hello-world Update hello world project to use the correct libs 2014-08-13 11:07:12 +02:00
linphone.xcodeproj Update linphone and fix some unit tests 2014-12-10 12:07:49 +01:00
LinphoneTester Use static linkage for exception handler in iOS tester 2014-12-17 12:18:06 +01:00
LinphoneTester Tests Update linphone and fix some unit tests 2014-12-10 12:07:49 +01:00
Resources Update translations 2014-12-10 14:38:35 +01:00
Settings/InAppSettings.bundle Move the send logs button to the advanced menu and use only one preference to trigger it (debugenable_preference) 2014-12-17 12:18:06 +01:00
submodules Don't build the SDK ZIP by default 2014-12-17 12:18:06 +01:00
Tools Update translations 2014-12-10 14:38:35 +01:00
.gitignore Generate linphone iphone git describe and use it for the user agent instead of using linphone core version 2014-11-03 14:03:39 +01:00
.gitmodules Fix opencore amr old scripts and fix name collision in ms2 through linphone 2014-11-19 14:28:15 +01:00
COPYING add GPL license 2011-08-12 17:55:48 +02:00
disable-security.patch apple sore version 1.1 2011-11-29 11:43:55 +01:00
ImageOptim.sh Remove -quiet option for optipng since it is not available everywhere 2014-11-20 11:59:10 +01:00
iTunesArtwork iTunesArtwork must be at the root directory level 2012-12-14 08:17:51 +01:00
linphone-Info.plist Change the provisioning scheme: we now use linphone-config:// and escape the rest of the URL 2014-12-01 14:01:50 +01:00
Linphone.clr Add linphone palette 2012-09-28 12:13:31 +02:00
linphone_Prefix.pch initial commit with basic ui 2010-01-22 11:44:23 +01:00
main.m Use a storyboard to launch the main UI. This is needed for iOS 8 because otherwise, the main window will have bad dimensions in landscape. 2014-09-30 15:57:39 +02:00
NEWS Add NEWS file 2012-10-04 11:01:45 +02:00
README.md Fix markdown README 2014-12-16 16:57:15 +01:00
reporter.py Add a reporter basic implementation for Buildbot tester 2014-12-05 15:01:05 +01:00
UI.md Dynamically change the root view controller, so that when we transition from a portrait-only to a landscape-friendly view. 2014-10-02 16:27:23 +02:00

Linphone on iPhone

Build prerequisite

Linphone for iPhone depends on liblinphone SDK. This SDK is generated from makefiles and shell scripts. Before building Linphone on iPhone, please read and execute liblinphone README.

You will NOT be able to build the SDK if you did not read liblinphone README first!

Additional dependencies

  • Using HomeBrew:

      brew install imagemagick
    
  • Using MacPorts:

      sudo port install ImageMagick optipng
    

System linking

  • For this part, we assume that LOCAL_BIN_DIR is set as following depending on which tool you use:

For MacPorts: LOCAL_BIN_DIR=/opt/local/bin

For HomeBrew: LOCAL_BIN_DIR=/usr/local/bin

  • Modify your PATH so that the tools are taken in place of the versions brought by Apple in /usr/bin. Otherwise the build will fail with obscure errors:

      export PATH=$LOCAL_BIN_DIR:$PATH
    
  • Install gas-preprosessor.pl (version above July 2013) into your LOCAL_BIN_DIR directory

      wget --no-check-certificate https://raw.github.com/yuvi/gas-preprocessor/master/gas-preprocessor.pl
      chmod +x gas-preprocessor.pl
      sudo mv gas-preprocessor.pl $LOCAL_BIN_DIR
    
  • Link libtoolize to glibtoolize

      sudo ln -s $LOCAL_BIN_DIR/glibtoolize $LOCAL_BIN_DIR/libtoolize
    
  • Link host's strings to simulator SDK

      sudo ln -s /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
    

BUILDING THE SDK

  • GPL third parties versus non GPL third parties

This SDK can be generated in 2 flavors. First is with GPL third parties, it means liblinphone includes GPL third parties like FFMPEG or X264. If you choose this flavor, your final application must comply with GPL in any case. This is the default mode.

To generate the liblinphone multi arch sdk in GPL mode, do:

    cd submodules/build && make all

ALTERNATIVELY, you can force liblinphone to use only non GPL code except for liblinphone, mediastreamer2, oRTP, belle-sip. If you choose this flavor, your final application is still subject to GPL except if you have a commercial license for liblinphone, mediastreamer2, oRTP, belle-sip.

To generate the liblinphone multi arch sdk in non GPL mode, do:

    cd submodules/build && make all enable_gpl_third_parties=no
  • For Xcode prior to 4.5, use:

      make -f Makefile.xcode4.4
    
  • ZRTP support

You can disable ZRTP support with:

    make all enable_zrtp=no
  • In case you upgrade your IOS SDK, you may force rebuilding everything, by doing

      make veryclean && make all
    

The resulting sdk is in liblinphone-sdk/ root directory.

BUILDING THE APPLICATION

After the SDK is built, just open the Linphone Xcode project with Xcode, and press Run.

  • Note regarding third party components subject to license:

The liblinphone-sdk is compiled with third parties code that are subject to patent license, specially: AMR, SILK G729 and H264 codecs. Linphone controls the embedding of these codecs thanks to the preprocessor macros HAVE_SILK, HAVE_AMR, HAVE_G729 HAVE_OPENH264 positioned in Xcode project. Before embedding these 4 codecs in the final application, make sure to have the right to do so.

LIMITATIONS, KNOWN BUGS

  • Video capture does not work in simulator (not implemented by simulator?).

DEBUGING THE SDK

Sometime it can be useful to step into liblinphone SDK functions. To allow Xcode to enable breakpoint within liblinphone, SDK must be built with debug symbols. To add debug symbol to liblinphone SDK, add make option enable_debug=yes:

    make all enable_gpl_third_parties=no enable_debug=yes

DEBUGING MEDIASTREAMER2

For iOS specific media development like audio video capture/playback it may be interesting to use mediastream test tool. The project submodule/liblinphone.xcodeproj can be used for this purpose.