Build or Compile Linphone from Source for iPhone and iPad

By Jessica Chiang

This entry documents how to build Linphone from source for iPhone and iPad

Updated for Mac Maverick(v10.9.5 v10.9.3), Version 6.1 (6A1052d) XCode6 Beta3, iOS 8.1 7.1, and the latest Linphone source (as of 01/17/15 7/29/14 ). Tested deploying to iPhone5, iPhone5s, iPhone6, and iPhone6 Plus simulators.

To build Linphone for iPhone and iPad

Step 1: Install XCode

Install XCode

Step 2: Install MacPort

Install MacPort

Note that you may need to add the path to port to your shell’s path. MacPort’s executable, port, is installed to /opt/local/bin. See this page for more instruction.

If you’ve already have macport installed, then proceed to update and upgrade the outdated modules
To update

port selfupdate

To upgrade

port upgrade outdated

Step 3: Install or Update Git

Install git. I followed the instruction on this great github article. To update an existing git install (if you got an git version error in the later steps)

git clone git://github.com/gitster/git.git

Step 4: Obtain linphone source code

Download linphone source from this git tree page

git clone git://git.linphone.org/linphone-iphone.git --recursive

Step 5: Install JDK Some submodules require JDK. You can download JDK from Oracle site. I used JDK7 (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html) After installation, verify JDK by opening a terminal and type

      #java -version

Step 5: Follow README.macos.md

The README.macos.md file is located in submodules/linphone/README.macos.md

Step 6: Follow instruction in README.md

he README.md is located in

Step 7: Update iOS SDK Version

 

IMPORTANT!!! Update SDK_VERSION in submodules/build/iphone-config.site if appropriate

To check for iOS SDK, at the commandline

   #ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

My result is:

       iPhoneOS7.0.sdk

Therefore I changed my iphone-config.site to:

   ...
   SDK_VERSION_MAJOR=7
   SDK_VERSION=7.0
   ...

Step 8: Build LinPhone SDK

Build SDK

cd submodules/build

make veryclean

make all

The build can take a long while, so grab yourself a good book or go make yourself a good cup of instant noodle.

Step 8: Build LinPhone in XCode

Since XCode 5.1, arm64 has become among the standard architectures to build for, but linphone project does not build for arm64. To force XCode later than 5.1 to skip arm64 (x86_64), so that iPhone5s and up would work,  take the following steps:

Open the linphone.xcodeproj file with XCode

Select the linphone project, then click the “Build Settings” link. The default architectures should include armv7 and arm64.

Change Architectures and Valid Architectures to remove arm64. Leave armv7 and armv7s.

After the architecture change, try compiling against iPhone5s, iPhone6, and iPhone6 Plus simulators.

For more info, please refer to

  • http://lists.nongnu.org/archive/html/linphone-developers/2014-12/msg00076.html
  • http://stackoverflow.com/questions/22323039/arm64-architecture-in-xcode-5-1

Step 9: Install LinPhone to iPhone/iPad without Apple Developer License

I was able to follow this great tutorial to get Linphone on my jailbroken phone
Using Xcode Without Provisioning Proile
Note: This tutorial only works up to iOS 6.0.

 

Troubleshooting

Error: Unable to determine simulator device to boot

Solution: You may have multiple simulators. Close all of them and try again. Also, I ran into this problem when I have both XCode5 and XCode6 Beta 3 open, including their simulators.

239 thoughts on “Build or Compile Linphone from Source for iPhone and iPad”

  1. Hi,

    I tried your suggestion but im getting the error

    make[5]: *** [mediastream] Error 1
    make[4]: *** [all-recursive] Error 1
    make[3]: *** [all] Error 2
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all] Error 2
    make: *** [build-linphone] Error 2

    Any suggestion how I can fix it?
    Ricky

  2. Hi Rick, could you give more details on the errors you’ve got? The trace you’ve posted does not provide enough info for me to help…

  3. Hi,
    Thank you very much.

    I got 2 Error if I build for simulator:
    warning: directory ‘/Users/mac/linphone-iphone/submodules/build/Debug-iphonesimulator’ following -L not found

    ld: library not found for -llinphone
    collect2: ld returned 1 exit status

    Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

    and 2. error at make:

    libmsilbc.a (no such file or directory)

    What I done wrong?

    Thank you,
    Jasi

  4. Hey Jasi,
    It seems that you are missing msilbc (the msiIBC plugin developed by linphone.org) , hence the libmsilbc.a missing error. I would suggest downloading linphone-iphone project again.

  5. Hi ,I am getting issue of
    syntax error: unexpected end of file in iphone-config.site file,

    plz help me , i run make all command in build directory .

    Regards
    Naveed

  6. hi! iphone-config.site issue is now fixed but now i am getting issue of md4_dgst.c file,

    error : expected ) instead of ;

    this kind of message i m facing now

    plz guide me

  7. Hi Jessica,

    Thanks for your kindness to share these information on internet.

    I am also building linphone recently. And I get a issue as I execute “make”…the system response me that

    : command not foundetktop/linephone-iphone/submodules/build..//build/iphone-config.site: line2:

    : command not foundetktop/linephone-iphone/submodules/build..//build/iphone-config.site: line6:

    : command not foundetktop/linephone-iphone/submodules/build..//build/iphone-config.site: line34: syntax error: unexcepted end of file

    make[1]: *** [build-openssl] Error 1
    make: *** [all] Error 2

    and my iphone-config.site goes like this
    //————————————
    # -*- shell-script -*-

    GCC_VERSION=4.2
    SDK_VERSION_MAJOR=4
    SDK_VERSION=3.2

    if test “${host_alias}” = “i386-apple-darwin” ; then
    PLATFORM=Simulator
    ARCH=i386
    elif test “${host_alias}” = “armv6-apple-darwin” ; then
    ARCH=armv6
    PLATFORM=OS
    elif test “${host_alias}” = “armv7-apple-darwin” ; then
    ARCH=armv7
    PLATFORM=OS
    else
    echo “bad host ${host_alias} must be either i386-apple-darwin or armv6-apple-darwin”
    exit
    fi
    echo “Loading config.site for iPhone platform=${PLATFORM} version=${SDK_VERSION}”

    SDK_PATH_LIST=`ls -drt /Developer/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs/iPhone${PLATFORM}4*`
    SDK_BIN_PATH=/Developer/Platforms/iPhone${PLATFORM}.platform/Developer/usr/bin
    for SYSROOT_PATH in $SDK_PATH_LIST ; do echo $SYSROOT_PATH ; done ;
    echo “Selecting SDK path = ${SYSROOT_PATH}”
    CC=”${SDK_BIN_PATH}/gcc-${GCC_VERSION} -std=c99 -arch ${ARCH} -isysroot ${SYSROOT_PATH} -miphoneos-version-min=${SDK_VERSION} -DTARGET_OS_IPHONE”
    CXX=”${SDK_BIN_PATH}/g++-${GCC_VERSION} -arch ${ARCH} -isysroot ${SYSROOT_PATH} -miphoneos-version-min=${SDK_VERSION} -DTARGET_OS_IPHONE”
    LD=”${SDK_BIN_PATH}/ld-${GCC_VERSION} -arch ${ARCH}”
    AR=${SDK_BIN_PATH}/ar
    RANLIB=${SDK_BIN_PATH}/ranlib

    CPPFLAGS=”-Dasm=__asm”
    LDFLAGS=”-Wl,-syslibroot,${SYSROOT_PATH} -framework CFNetwork”
    //————————————

    Could you please guide me to figure out what’s the problem ?
    Thank you very much.

    Best Regards,
    Jim Lu

  8. Hi,
    I am getting below error : I am using macport 2.0.1

    externals/exosip/configure: line 12616: syntax error near unexpected token `OSIP,’

    externals/exosip/configure: line 12616: `PKG_CHECK_MODULES(OSIP, libosip2 >= 3.4, ,’

    /build-i386-apple-darwin/externals/exosip/Makefile] Error 2

    Please help

  9. Hi.I get the latest linphone-iphone version,follow the Readme,when “make all”,get two error,it seems that “GNU assembler not found, install gas-preprocessor”.
    Did you use the latest version? And are you successful?

  10. Hi,

    I have compiled the linphone libraries and successfully compiled the project for iPhone simulator 5.0 also.

    But when I try to compile for iPad simulator 5.0 its not working. Its compiling successfully but getting paused in between with blank screen. Says “Program received signal “EXC_ARITHMETIC”.

    And when I try to put on iPad 2 device it gives some compilation error..
    …………………………
    “Undefined symbols for architecture armv7:
    “___aeabi_idiv”, referenced from:
    _SKP_Silk_schur64 in libSKP_SILK_SDK.a(SKP_Silk_schur64_arm.o)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    …………………………………………………

    Any ideas on this?

  11. Hi;

    I have compiled the liblinphone-iphone successfully. While I am trying to run the mediastream application, I am getting errors such as

    Redefinition of VideoStream symbol as different kind of symbol

    in mediastream.h file.

    Any insight to this issue?

    • Hi Vikas
      I am unable to run linphone code that i am clone from above link
      so please help me if you have some solution
      thank you

  12. hi! I get linphone-iphone source from git://git.linphone.org/linphone-iphone.git today.
    But after port install all things following this article and in readme file, I compile using “make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all &&make -f builder-iphone-os.mk delivery-sdk”, it say that:

    command not foundr/Desktop/linphone-iphone/submodules/build/..//build/iphone-config.site: line 2:
    /Users/administrator/Desktop/linphone-iphone/submodules/build/..//build/iphone-config.site: line 42: syntax error: unexpected end of file

    Plz help me…

  13. Hi all,
    I have the following error :

    ld: library not found for -llinphone

    I’m running on Lion with xcode 4.3.2
    please help.
    thank you

  14. I keep getting the following error:
    Libtool : Version mismatch error. This is libtool 2.4.2 but the definition of this LT_INT comes from an older release. You should recreate aclocal.m4 with macros from libtool 2.4.2 and run autoconf again.

  15. Hi,
    Its a very helpful tutorial you gave through it.

    When i try to build xproj file using xcode i was getting those error :

    1) /Users/harshsavani/linphone-iphone/liblinphone-sdk/apple-darwin/share/sounds/linphone/ringback.wav: No such file or directory

    and

    2) /Users/harshsavani/linphone-iphone/liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/oldphone-mono.wav: No such file or directory

  16. I have followed couple of solutions, blog and tutorial to make it run successfully with xcode 4.5

    I have followed your tutorial and download linphone from all valide resource but having some errors related to library on OSX Lion

    ld: library not found for -lavcodec

    in some copy this.
    ld: library not found for -llinphone

    I allow Macport and followed everything from terminal but failure to run app on device nor on Simulator. I am totally exhausted in rectifying solution for 3 days but failure to do so, please help me as your help will be highly appreciated.

    • Hi Umaid,

      Sorry about your frustration. Unfortunately i can’t reproduce your error easily since I have updated my Mac to Mountain Lion OS. This tutorial was written a while back and i have not verified that the tutorial still works with the current linphone code and the its libraries

      jessica

      • Hello,
        I have MAC version 10.9, XCode version 5.1.1.
        Can you tell the steps to follow to integrate Linphone in my iOS project.

          • can you please tell me this error after successfull build.

            Undefined symbols for architecture i386:
            “_WelsCreateDecoder”, referenced from:
            MSOpenH264Decoder::MSOpenH264Decoder(_MSFilter*) in libmsopenh264.a(msopenh264dec.o)
            MSOpenH264Decoder::MSOpenH264Decoder(_MSFilter*) in libmsopenh264.a(msopenh264dec.o)
            “_WelsCreateSVCEncoder”, referenced from:
            MSOpenH264Encoder::MSOpenH264Encoder(_MSFilter*) in libmsopenh264.a(msopenh264enc.o)
            MSOpenH264Encoder::MSOpenH264Encoder(_MSFilter*) in libmsopenh264.a(msopenh264enc.o)
            “_WelsDestroyDecoder”, referenced from:
            MSOpenH264Decoder::~MSOpenH264Decoder() in libmsopenh264.a(msopenh264dec.o)
            MSOpenH264Decoder::~MSOpenH264Decoder() in libmsopenh264.a(msopenh264dec.o)
            MSOpenH264Decoder::~MSOpenH264Decoder() in libmsopenh264.a(msopenh264dec.o)
            “_WelsDestroySVCEncoder”, referenced from:
            MSOpenH264Encoder::~MSOpenH264Encoder() in libmsopenh264.a(msopenh264enc.o)
            MSOpenH264Encoder::~MSOpenH264Encoder() in libmsopenh264.a(msopenh264enc.o)
            MSOpenH264Encoder::~MSOpenH264Encoder() in libmsopenh264.a(msopenh264enc.o)
            “_libmsilbc_init”, referenced from:
            -[LinphoneManager startLibLinphone] in LinphoneManager.o
            “_libmssilk_init”, referenced from:
            -[LinphoneManager startLibLinphone] in LinphoneManager.o
            ld: symbol(s) not found for architecture i386

          • My apology for not getting back to you soon enough. Just got back from vacation. Glad to hear that it’s working out for you now. Did you disable the network proxy?

  17. Hi i’m trying to compile linphone-iphone module on Mac LION and getting following errors :

    /Users/mac_11/linphone-iphone/submodules/build/..//build/iphone-config.site: line 2:: command not found
    /Users/mac_11/linphone-iphone/submodules/build/..//build/iphone-config.site: line 52: syntax error: unexpected end of file
    make: * [build-openssl] Error 1

    Please help me out.

  18. Hi i’m trying to compile linphone-iphone module on Mac Mountain Lion. Xcode version 4.5. I followed the steps given in this page. I successfully crossed upto step4.

    In Step5, I executed the command “make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all &&make -f builder-iphone-os.mk delivery-sdk”.
    I got the following Error:

    checking whether res_ndestroy is declared… yes
    checking for antlr3… no
    configure: error: Could not find antlr.jar. Please install antlr3
    make[1]: *** [/Hubino/SIP_Implementation/IOS/workspace/linphone-iphone/submodules/build/../build-i386-apple-darwin/belle-sip/Makefile] Error 1
    make: *** [build] Error 2

    Please help me,
    Thank you.

  19. Hello

    I am getting this error :

    SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_FIX_v1.0.9/.: No such file or directory
    make[3]: *** [SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_FIX_v1.0.9] Error 1

    While making the linphone sdk.

    Any idea whats wrong here.

    Thanks

    • #if __clang__ && TARGET_OS_IPHONE
      extern int __divsi3(int a, int b);
      int __aeabi_idiv(int a, int b) {
      return __divsi3(a,b);
      }
      #endif

      • well.I also face this issue while building the sdk, please give some more details to solve this build error,Thanks a lot !ex: which file to modiy, and how to modify ,thanks!

  20. Howdy! I realize this is sort of off-topic however
    I needed to ask. Does managing a well-established website such
    as yours require a lot of work? I am brand new to running
    a blog however I do write in my diary everyday. I’d like to start a blog so I can easily share my own experience and feelings online. Please let me know if you have any kind of recommendations or tips for new aspiring bloggers. Appreciate it!

    • Hi there,
      Surprisingly, it’s not as hard as it may seem to start a website like this. This site is powered by WordPress and WordPress is pretty easy to use. To start, you would find a hosting company that supports WordPress. Check out this link: http://wordpress.org/hosting/ for the recommended hosting company. I use DreamHost and pay about $9/month for hosting. Or if you want something simpler and free, Google Blogger (http://www.blogger.com) is pretty nice choice. Now go blogging!

  21. Hello Admin

    I succesfully compiled the project for iPhone simulator but when i try to run the same on device it gives me following error :

    ld: archive has no table of contents for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I am using xcode 4.6 ios sdk 6.1 and Mac OS Lion.

    Any idea whats going wrong?

    Thanks & Regards

    • Hi Nitin,I met the same problem,and my xcode,MAC OS is the same as you. My device is iPhone4,what about yours?

      Did you solve it?

      Thanks & Regards

    • Hi Nitin,

      I hava solved this problem.
      step 1, open submodules/build/iphone-config.site,and delete
      elif test “${host_alias}” = “armv6-apple-darwin” ; then
      ARCH=armv6
      PLATFORM=OS
      CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=arm”
      MCPU=”-mcpu=arm1176jzf-s”
      step 2, open submodules/build/iphone-config-gcc.site,and delete
      elif test “${host_alias}” = “armv6-apple-darwin” ; then
      ARCH=armv6
      PLATFORM=OS
      CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=arm”
      MCPU=”-mcpu=arm1176jzf-s”
      step 3,make veryclean and make all

  22. Hello
    i have following error.

    bignum.c:959:9: warning: implicit declaration of function ‘asm’ is invalid in C99
    [-Wimplicit-function-declaration]
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:5: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:969:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:959:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:980:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:974:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:987:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:985:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:938:44: warning: unused parameter ‘s’ [-Wunused-parameter]
    static void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
    ^
    bignum.c:938:65: warning: unused parameter ‘b’ [-Wunused-parameter]
    static void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
    ^
    3 warnings and 3 errors generated.
    make[2]: *** [bignum.o] Error 1
    make[1]: *** [lib] Error 2
    make: *** [build-polarssl] Error 2

  23. Have you ever thought about adding a little bit
    more than just your articles? I mean, what you say is important and everything.

    But think about if you added some great pictures or videos to give your posts more, “pop”!
    Your content is excellent but with images and clips,
    this website could undeniably be one of the greatest in its field.
    Very good blog!

  24. Hi Admin,

    Can you help me with my problem, I often get this error below.. I have tried few times redownloading from the GIT but still giving me the same error..

    /usr/bin/install -c -D SILK_SDK_SRC_v1.0.9/SILK_SDK_SRC_FIX_v1.0.9/libSKP_SILK_SDK.a /Files/Linphone09102013/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/libSKP_SILK_SDK.a
    /usr/bin/install: illegal option — D
    usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
    [-o owner] file1 file2
    install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
    [-o owner] file1 … fileN directory
    install -d [-v] [-g group] [-m mode] [-o owner] directory …
    make[5]: *** [install-data-local] Error 64
    make[4]: *** [install-am] Error 2
    make[3]: *** [install] Error 2
    make[2]: *** [install-recursive] Error 1
    make[1]: *** [build-mssilk] Error 2
    make: *** [build] Error 2

    Please advise. Thanks a lot

    • Hi,seecah! I am confused with the problem the same as yours. I think you must have solved it. Wish for your help,thx!

    • Hi,seecah! I am confused by the same problem,I think you must have solved it ,and wish for your help,thanks!make[4]: *** [install-data-local] Error 64
      make[3]: *** [install-am] Error 2
      make[2]: *** [install-recursive] Error 1
      make[1]: *** [build-mssilk] Error 2
      make: *** [broadcast_all] Error 1

  25. Thanks for such a wonderful post. i have followed all the steps mentioned above.

    I am try to run command:
    $ make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all &&make -f builder-iphone-os.mk delivery-sdk

    got below response:

    make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no all \ && make -f builder-iphone-os.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no all \
    && make -f builder-iphone-os.mk host=armv7s-apple-darwin enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no all \
    && make -f builder-iphone-os.mk delivery-sdk
    mkdir -p /LiniPhone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include
    mkdir -p /LiniPhone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/pkgconfig
    mkdir -p /LiniPhone/submodules/build/../build-i386-apple-darwin/externals/polarssl
    cd /LiniPhone/submodules/build/../build-i386-apple-darwin/externals/polarssl/ && \
    rsync -rvLpgoc –exclude “.git” /LiniPhone/submodules/build/..//externals/polarssl/ .
    building file list … done

    sent 13275 bytes received 20 bytes 8863.33 bytes/sec
    total size is 4031899 speedup is 303.26
    host_alias=i386-apple-darwin && . //LiniPhone/submodules/build/..//build/iphone-config.site && \
    cd /LiniPhone/submodules/build/../build-i386-apple-darwin/externals/polarssl && make CC=”$CC” AR=”$AR” CPPFLAGS=”$CPPFLAGS” lib && make install DESTDIR=/LiniPhone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin
    //LiniPhone/submodules/build/..//build/iphone-config.sit: command not found
    //LiniPhone/submodules/build/..//build/iphone-config.site: line 56: syntax error: unexpected end of file
    make[1]: *** [build-polarssl] Error 1
    make: *** [build] Error 2

    Please help me.

  26. its very clear document to download activated linphone in iOS
    before downloading the application,
    1)check xcode and mac os x versions.
    2)install command line tools
    3)install mac ports use above doc.
    4)use every command in above document at the time of downloading

  27. hi, i downloaded iphone src from linphone. but i cant able to debug thr src. it showing error. the files inside the include folfers are in red color.and showing file not found. plz help me. sent me one working code.

  28. Thanks Admin, but now my problem is the file inside the include folder is showing redcolor, it means it is missing. plz help me.
    the file such as “linphonecore.h etc……

  29. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can’t locate file for: -lSKP_SILK_SDK
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lSKP_SILK_SDK is not an object file (not allowed in a library)
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

  30. I use XCODE- 4.6.3
    ios- 6.1
    macoOS- 10.8 Moutain lion on Virtualbox
    When i build and run linphone.xcodeproj it have a erro: file linphone-banner.png : no such find and directory.
    Anybody help me?

    • Did you try typing that command “file linphone-banner.png” at the command-line? Either linkphone-banner.png can not be found or “file” command is not in your path.

      • Today I have a problem: “Shell Script Invocation Error”
        …/linphone-iphone/ImageOptim.sh: /bin/sh^M: bad interpreter: No such file or directory
        Anybody help me?

  31. Thanks for your kindness to share these information on internet.

    I use: Mac OS 10.8 + xcode 4.6.3 + Simulator 6.1 SDK

    I am also building linphone recently. And I get a issue as I execute “make all”…the system response me that
    : command not foundetktop/linephone-iphone/submodules/build..//build/iphone-config.site: line2:
    : command not foundetktop/linephone-iphone/submodules/build..//build/iphone-config.site: line59: syntax error: unexcepted end of file
    make[1]: *** [build-polarssl] Error 1
    make: *** [build] Error 2

    ——————————————————————————-
    and my iphone-config.site goes like this:
    # -*- shell-script -*-

    SDK_VERSION_MAJOR=4
    SDK_VERSION=4.0
    MCPU=””
    if test “${host_alias}” = “i386-apple-darwin” ; then
    PLATFORM=Simulator
    ARCH=i386
    CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=i386″
    MCPU=””
    elif test “${host_alias}” = “armv6-apple-darwin” ; then
    ARCH=armv6
    PLATFORM=OS
    CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=arm”
    MCPU=”-mcpu=arm1176jzf-s”
    elif test “${host_alias}” = “armv7-apple-darwin” ; then
    ARCH=armv7
    PLATFORM=OS
    CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=arm”
    MCPU=”-mcpu=cortex-a8″
    elif test “${host_alias}” = “armv7s-apple-darwin” ; then
    ARCH=armv7s
    PLATFORM=OS
    CMAKE_OPTS=”-DCMAKE_SYSTEM_PROCESSOR=arm”
    else
    echo “bad host ${host_alias} must be either i386-apple-darwin or armv[6,7,7s]-apple-darwin”
    exit
    fi
    echo “Loading config.site for iPhone platform=${PLATFORM} version=${SDK_VERSION}”
    XCODE_DEV_PATH=`xcode-select -print-path`
    #new path with Xcode 4.3:
    if test -d ${XCODE_DEV_PATH}/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs ; then
    SDK_PATH_LIST=`ls -drt ${XCODE_DEV_PATH}/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs/iPhone${PLATFORM}*`
    SDK_BIN_PATH=${XCODE_DEV_PATH}/Platforms/iPhone${PLATFORM}.platform/Developer/usr/bin
    else
    SDK_PATH_LIST=`ls -drt /Developer/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs/iPhone${PLATFORM}*`
    SDK_BIN_PATH=/Developer/Platforms/iPhone${PLATFORM}.platform/Developer/usr/bin
    fi

    for SYSROOT_PATH in $SDK_PATH_LIST ; do echo $SYSROOT_PATH ; done ;
    echo “Selecting SDK path = ${SYSROOT_PATH}”

    COMMON_FLAGS=” -arch ${ARCH} ${MCPU} -isysroot ${SYSROOT_PATH} -miphoneos-version-min=${SDK_VERSION} -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions”
    CC=”xcrun clang -std=c99 $COMMON_FLAGS”
    OBJC=”xcrun clang -std=c99 $COMMON_FLAGS”
    CXX=”xcrun clang++ $COMMON_FLAGS”
    LD=”xcrun ld -arch ${ARCH}”
    AR=”xcrun ar”
    RANLIB=”xcrun ranlib”
    STRIP=”xcrun strip”
    NM=”xcrun nm”

    CPPFLAGS=”-Dasm=__asm”
    OBJCFLAGS=”-x objective-c -fexceptions -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch”
    #Force install script to use -C so that header files don’t get re-written if not changed.
    INSTALL_DATA=”ginstall -C”

    Could you please guide me to figure out what’s the problem ?
    Thank you very much.
    Best Regards,

  32. Hello im am getting this error can you please help I’m new to xCode and cannot figure out what is wrong. You have replied to another person asking for the same problem. Please help me out.
    Thanks

    host_alias=i386-apple-darwin && . //Users/talha/Desktop/linphone-iphone/submodules/build/..//build/iphone-config.site && \
    cd /Users/talha/Desktop/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/polarssl && make CC=”$CC” AR=”$AR” CPPFLAGS=”$CPPFLAGS” lib && make install DESTDIR=/Users/talha/Desktop/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin
    //Users/talha/Desktop/linphone-iphone/submodules/build/..//build/iphone-config.s: command not found
    //Users/talha/Desktop/linphone-iphone/submodules/build/..//build/iphone-config.site: line 59: syntax error: unexpected end of file
    make[1]: *** [build-polarssl] Error 1
    make: *** [build] Error 2

    • At a wild guess, I suggest, re-cloning “polarssl” using its git access to its registered directory which is /submodules/polarssl/ !

    • And then, go to polarssl’s subdirectory ( /submodules/externals/polarssl -> This one’s correct, I made a mistyping in previous comment ) configure the source ( execute ./configure ) and then make it ( make all ) !

  33. I’m trying to build linphone SDK for iPhone, and I’ve installed all the perquisites and dependencies ( exactly as said here and in the README file ). When I try to make the linphone-SDK ( Using make all command ) I get the following error :

    make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk host=armv7s-apple-darwin enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk delivery-sdk
    mkdir -p /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include
    mkdir -p /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/pkgconfig
    make[1]: *** No rule to make target `/Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//externals/polarssl/Makefile’, needed by `update-tree’. Stop.
    make: *** [build] Error 2

    Would you please help me with some solutions ? I have no idea what that “needed by update-tree” means !

    • I just found the problem and solved it ! but I get the same error, as described in “gold711″‘s comment, above.
      Any idea on that problem ?

      • Hi Amir
        It’s been pretty busy at work so I have not checked the comments on this thread recently. I will try to recompile LinPhone again on my mac and see if I can reproduce the same error as gold711.

  34. Hi,

    Regarding that first problem, I figured out that my connection had been interrupted while I was cloning the source using GIT access. Re-fetching everything solved the problem.

    But for the problem I’ve stuck with currently, I used “make veryclean” and “make all” again to reproduce the complete error, and here’s the complete log error :

    make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk host=armv7s-apple-darwin enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
    && make -f builder-iphone-os.mk delivery-sdk
    mkdir -p /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include
    mkdir -p /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/pkgconfig
    mkdir -p /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/polarssl
    cd /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/polarssl/ && \
    rsync -rvLpgoc –exclude “.git” /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//externals/polarssl/ .
    building file list … done
    .gitignore
    CMakeLists.txt
    ChangeLog
    DartConfiguration.tcl
    LICENSE
    Makefile
    README
    doxygen/
    doxygen/polarssl.doxyfile
    doxygen/input/
    doxygen/input/doc_encdec.h
    doxygen/input/doc_hashing.h
    doxygen/input/doc_mainpage.h
    doxygen/input/doc_rng.h
    .
    .
    .
    ( I reduced the file list to make the log shorter 🙂 )
    .
    .
    .
    visualc/VS6/sha2sum.dsp
    visualc/VS6/ssl_cert_test.dsp
    visualc/VS6/ssl_client1.dsp
    visualc/VS6/ssl_client2.dsp
    visualc/VS6/ssl_server.dsp
    visualc/VS6/ssl_test.dsp

    sent 3967998 bytes received 8750 bytes 2651165.33 bytes/sec
    total size is 3936742 speedup is 0.99
    host_alias=i386-apple-darwin && . //Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//build/iphone-config.site && \
    cd /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/polarssl && make CC=”$CC” AR=”$AR” CPPFLAGS=”$CPPFLAGS” lib && make install DESTDIR=/Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin
    Loading config.site for iPhone platform=Simulator version=4.0
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
    Selecting SDK path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
    CC aes.c
    CC arc4.c
    CC asn1parse.c
    CC asn1write.c
    CC base64.c
    CC bignum.c
    bignum.c:959:9: warning: implicit declaration of function ‘asm’ is invalid in C99 [-Wimplicit-function-declaration]
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:5: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:969:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:959:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:980:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:974:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:987:9: error: expected ‘)’
    MULADDC_STOP
    ^
    ../include/polarssl/bn_mul.h:161:9: note: expanded from macro ‘MULADDC_STOP’
    : “=m” (t), “=m” (c), “=m” (d), “=m” (s) \
    ^
    bignum.c:985:9: note: to match this ‘(‘
    MULADDC_INIT
    ^
    ../include/polarssl/bn_mul.h:52:8: note: expanded from macro ‘MULADDC_INIT’
    asm( ” \
    ^
    bignum.c:938:44: warning: unused parameter ‘s’ [-Wunused-parameter]
    static void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
    ^
    bignum.c:938:65: warning: unused parameter ‘b’ [-Wunused-parameter]
    static void mpi_mul_hlp( size_t i, t_uint *s, t_uint *d, t_uint b )
    ^
    3 warnings and 3 errors generated.
    make[3]: *** [bignum.o] Error 1
    make[2]: *** [lib] Error 2
    make[1]: *** [build-polarssl] Error 2
    make: *** [build] Error 2

    • Well , I have tried a few things, and I solved this error myself, by going into polarssl registered directory ( /submodules/externals/polarssl/ ) , configuring ( “./configure” command ) and then making ( “make all” command ) the module.

      But now, I get a new error as following :

      Loading config.site for iPhone platform=Simulator version=4.0
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
      Selecting SDK path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
      make[2]: `libsrtp.a’ is up to date.
      /opt/local/bin/ginstall -c -d /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include/srtp
      /opt/local/bin/ginstall -c -d /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib
      cp include/*.h /Users/Unkn0wn/Developer/GIT/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include/srtp
      cp: include/*.h: No such file or directory
      make[2]: *** [install] Error 1
      make[1]: *** [build-srtp] Error 2
      make: *** [build] Error 2

      Any idea how to solve this ?
      I’m a bit sick of facing thousands of consecutive errors, one after another, in order just to build a simple SDK 🙁

    • Okay, I solved that and 5 more problems that occurred one after another next to this one !
      Still not being compiled !!!

      I officially gave up and used “Siphon” for iOS. It was way easier to compile that and it works like a charm. I really suggest everyone who wants to use linphone to switch to Siphon.

      • Update: 1 week later :

        Okay, Siphon sucks !
        I finally managed to build linphone on iOS, which should be easy using this tutorial and “A FULL VERSION OF LINPHONE SDK FETCHED OVER AN L2TP VPN CONNECTION” which took me 3 weeks to find out about!

        • Hi Amir and all
          I just tried do build the sdk following the tutorial above. The make have finished, but with a lot of errors. At the end i couldn’t build the linphone.xcodeproj sucefully.
          I didn quite understand have you found a place where to get a A FULL VERSION OF LINPHONE SDK?

          tanks for your help

          • Hi,
            I fetched a FULL VERSION of Linphone SDK from the git link inside Linphone’s website. The problem is that the connection interrupts a lot and I really recommend you to use a secure L2TP VPN connection to fetch it. I tried like a hundred times to fetch a complete version, which by the way has a size of 508.1 MegaBytes ( iOS version ).

  35. Hi I tried to clone the repository.. it prints following error on terminal

    Clone of ‘git://git.code.sf.net/p/opencore-amr/code’ into submodule path ‘submodules/externals/opencore-amr’ failed

  36. After a long time I was able to clone the repository but now the error is in libtool as below, I have libtool installed..

    You must have libtool installed to compile libxml.
    Download the appropriate package for your distribution,
    or see http://www.gnu.org/software/libtool
    make[1]: *** [/Users/admin/linphone-iphone/submodules/build/..//externals/libxml2/configure] Error 1
    make: *** [build] Error 2

  37. Hello,
    this might be a foolish question but can anyone show me how to download Linphone with g729 for my iphone 4S? (not jailbroken).
    Greetings from Venezuela

  38. This thing is driving me totally nuts 0_o

    How could possibly be so difficult to compile something? I am resolving issue after issue, the last one was mediastreamer2 configure file syntax error, opened the file with sublime text, removed a space, saved and then different error: make[1]: *** [build-linphone] Error 2 with no other indication. Really?

      • Andrea,

        You did follow step 6 to update the SDK version, right? I ran into many problems similar to your and was able to resolve it with the correct SDK version.

        • Hi, Jessica,
          My SDK version is 8.1. So I changed my iphone-config.site to:
          SDK_VERSION_MAJOR=8
          SDK_VERSION=8.1

          but, there is still the error:
          line 17633: syntax error near unexpected token `MSGFMT,’
          ../../../linphone-iphone/submodules/build/..//linphone/mediastreamer2/configure: line 17633: ` AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,’
          configure: error: ../../../linphone-iphone/submodules/build/..//linphone/mediastreamer2/configure failed for mediastreamer2

          why?? please help….thanks very much!

  39. Hello Admin,
    i just followed your steps and its pretty worked for me… thanks for your steps.
    Now i integrated libs in my project and i had successfully compiled and ran in both ios 6 and ios7.1 devices.. now i can call through sip with ios 6.. but i am not able to get register in ios 7.1.. everytime it says NEW REGISTRATION STATE: ‘LinphoneRegistrationFailed’ (message: ‘Unauthorized’)… is it some issue with arm64 OR with zRTP? does this linphone SDK work with ios 7.1? and i am also getting warning like ARM function not 4-byte aligned: __b_evaluation from liblinphone-sdk/apple-darwin/lib…

    i am not able to find any clue with that… because this is perfect working with ios 6.1.. 🙁

    Please help me on it..
    Thanks

  40. Hello there, I do believe your blog might be having
    web browser compatibility problems. Whenever I
    look at your blog in Safari, it looks fine but when opening in I.E., it’s
    got some overlapping issues. I merely wanted to provide you
    with a quick heads up! Aside from that, excellent website!

    • Hey thanks! Just check with IE 8 and it looks fine. Would you be so kind to provide me your IE version and the page you are seeing the overlapping on?

  41. Thanks So Much Jess! Super usefull!! Good to see there are more technologist informatics women out there.

  42. Jessica First Thank You for this post!!!
    But I have an error:
    ‘/Users/sbyrdsell/Linphone/tmp/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include/polarssl’
    /bin/sh: ginstall: command not found
    make[5]: *** [install-polarsslHEADERS] Error 127
    make[4]: *** [install-am] Error 2
    make[3]: *** [install-recursive] Error 1
    make[2]: *** [install-recursive] Error 1
    make[1]: *** [build-polarssl] Error 2
    make: *** [broadcast_all] Error 2

    I have looked on the net for ginstall but cannot find it even from MacPorts
    sudo port install ginstall
    Error: Port ginstall not found

    Can you help?

    Also has anyone worked with the SDK I’m looking to you this in my app but there are NO examples out there…..

    Thanks
    Stan

    • Did you install MacPort? Also, if you have, maybe you’ve installed it as root. Try “su -” first, then run “port install ginstall”

  43. Greetings from Los angeles! I’m bored to tears at work so I decided
    to browse your blog on my iphone during lunch break. I really like the knowledge you present here and can’t
    wait to take a look when I get home. I’m amazed at how fast your
    blog loaded on my mobile .. I’m not even using WIFI, just
    3G .. Anyways, excellent site!

  44. I’m new to iOS Development but I know C#, Python and Java. I’m looking to integrate Linphone into IOS project via Swift programming language.

    I found a build of Linphone with all security features enabled at: https://github.com/guardianproject/linphone-ios-secure

    I build and ran the hello-world with no errors but nothing came up in the simulator.

    What is the best way to start my project, I’ve created my storyboard to pass by configuration for my SIP account. I include all Lib’s and h files in my build setting and it compile with no errors.

    My goal is to programmatically place a video call using Linphone.

    Does anyone have a sample Swift or Objective-C XCode 6 project or code snippet?

    Thanks in advance!!!!!
    Stan

  45. Hi,
    My question is:
    localhost:~ qu$ sudo ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
    Password:
    ls: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs: No such file or directory

    Why “No such file or directory”? But I found iPhoneOS SDK 7.1 at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs I don’t know.Can you help me?

  46. Hello admin,
    I have MAC version 10.9, XCode version 5.1.1.
    I want to integrate Linphone version 2.1.2 in my iOS project. I tried everything but could not integrate it. There are so many files missing. Can you tell me the step by step process to integrate Linphone version 2.1.2 in my iOS project.

  47. It’s hard to find your posts in google. I found it on 11 spot, you should
    build quality backlinks , it will help you to increase traffic.
    I know how to help you, just type in google – k2 seo tips and tricks

  48. Hi Jessica,

    First, thanks for your this blog , but I follow your step can’t build the linphone lib , below is the error , can you help me ? Thanks .

    Linking CXX static library libzrtpcpp.a
    cd /Users/chirpchirping/downloads/linphone-iphone/submodules/build-i386-apple-darwin/externals/zrtpcpp/src && /opt/local/bin/cmake -P CMakeFiles/zrtpcpp.dir/cmake_clean_target.cmake
    cd /Users/chirpchirping/downloads/linphone-iphone/submodules/build-i386-apple-darwin/externals/zrtpcpp/src && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/zrtpcpp.dir/link.txt –verbose=1
    CMAKE_AR-NOTFOUND cr libzrtpcpp.a CMakeFiles/zrtpcpp.dir/ZrtpCallbackWrapper.cpp.obj CMakeFiles/zrtpcpp.dir/ZIDFile.cpp.obj CMakeFiles/zrtpcpp.dir/ZIDRecord.cpp.obj CMakeFiles/zrtpcpp.dir/ZRtp.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpCrc32.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketCommit.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketConf2Ack.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketConfirm.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketDHPart.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketGoClear.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketClearAck.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketHelloAck.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketHello.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketError.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketErrorAck.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketPingAck.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketPing.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketSASrelay.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpPacketRelayAck.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpStateClass.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpTextData.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpConfigure.cpp.obj CMakeFiles/zrtpcpp.dir/ZrtpCWrapper.cpp.obj CMakeFiles/zrtpcpp.dir/Base32.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/ZrtpDH.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/hmac256.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/sha256.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/hmac384.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/sha384.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/AesCFB.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/openssl/InitializeOpenSSL.cpp.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/twofish.c.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/twofish_cfb.c.obj CMakeFiles/zrtpcpp.dir/libzrtpcpp/crypto/TwoCFB.cpp.obj
    Error running link command: No such file or directory
    make[4]: *** [src/libzrtpcpp.a] Error 2
    make[3]: *** [src/CMakeFiles/zrtpcpp.dir/all] Error 2
    make[2]: *** [all] Error 2
    make[1]: *** [build-zrtpcpp] Error 2
    make: *** [build] Error 2

    • You are missing the “link” command. Confirm it by typing “link” at the command prompt. It not found, you can install the gnu coreutils package by using macport

      • Hi Jessican,

        I run “link” command is show below

        link
        usage: ln [-Ffhinsv] source_file [target_file]
        ln [-Ffhinsv] source_file … target_dir
        link source_file target_file

        seems “link” command is exist , but why still said “Error running link command: No such file or directory”

        • Thanks Tom. Did you enable zrtp? Try “make all enable_gpl_third_parties=yes enable_zrtp=yes” (in the README file)

          • Have you tried do a “git pull” to get the latest or “git clone” to get a clean checkout and tried again? Another problem could be related with permission. So if all else failed, also try running as root.

  49. Hi there! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone.
    I’m trying to find a template or plugin that might be
    able to correct this issue. If you have any recommendations, please share.
    Thank you!

  50. I have followed your link and successfully build the project,it works fine.Now 1 question .Linphone soft phone (on appstore)is only 10 mb.How to reduce the size of the project ( so that i can integrate linphone sdk to my project.).I followed this link http://stackoverflow.com/questions/11609763/how-to-integrate-linphone-into-an-existing-project-sip-in-ios?rq=1
    Now i have a project of 146 mb from which i can make calls ,do you know how to reduce the size further so that it will be successfully operating.

    • Hi Suraj, I would suggest you to look into disabling modules you don’t need. You can do so via the “configure” command.

  51. Thanks you very much. Your post is really helped us. But i am having small problem. Can you please tell me how to solve. When i followed your steps finally i got message like

    ***************************************************************************
    *****CAUTION, this liblinphone SDK is built using 3rd party GPL code ******
    *****Even if you acquired a proprietary license from Belledonne ******
    *****Communications, this SDK is GPL and GPL only. ******
    *****To disable 3rd party gpl code, please use: ******
    *****make enable_gpl_third_parties=no ******
    ***************************************************************************
    ***************************************************************************

    But when i run the application i am seeing following errors anything i did mistake? Thanks in advance.

    Undefined symbols for architecture armv7:
    “_ms_filter_has_method”, referenced from:
    _qos_analyzer_on_action_suggested in liblinphone.a(quality_reporting.o)
    “_ms_bitrate_controller_get_qos_analyzer”, referenced from:
    _linphone_reporting_call_state_updated in liblinphone.a(quality_reporting.o)
    “_ms_qos_analyzer_get_name”, referenced from:
    _linphone_reporting_call_state_updated in liblinphone.a(quality_reporting.o)
    “_ms_qos_analyzer_set_on_action_suggested”, referenced from:
    _linphone_reporting_call_state_updated in liblinphone.a(quality_reporting.o)
    “_audio_stream_started”, referenced from:
    _call_ringing in liblinphone.a(callbacks.o)
    “_ms_load_plugins”, referenced from:
    _sip_setup_register_all in liblinphone.a(sipsetup.o)
    “_ms_yuv_buf_init_from_mblk”, referenced from:
    MSOpenH264Encoder::feed() in libmsopenh264.a(msopenh264enc.o)
    “_rfc3984_pack”, referenced from:
    MSOpenH264Encoder::feed() in libmsopenh264.a(msopenh264enc.o)
    “_rfc3984_set_mode”, referenced from:
    MSOpenH264Encoder::initialize() in libmsopenh264.a(msopenh264enc.o)
    “_WelsDestroySVCEncoder”, referenced from:

    etc…

    • Hi kittu,
      I meet the same problem.
      But when i run the application i am seeing following errors anything i did mistake? Thanks in advance.
      Undefined symbols for architecture x86_64:
      “_libmsilbc_init”, referenced from:
      – [linephoneManager createLinphoneCore] in LinphoneManager.o
      ld:symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      Do you solve your problem?

  52. Hi,

    I just downloaded the code, and followed the instructions to compile. But when I tried to run in xcode, it shows a bunch of warnings of deprecations, and along with some other fatal errors. It seems I have cloned a very old version. The “news”file says it’s Version 2.0 and published in 2012….How can I download the latest version?

    Thanks
    Bonan

    • After I chose the deployment target the deprecation warnings were gone. But the fatal errors are still there, it says /linphone-iphone/Classes/LinphoneManager.h:36:10: ‘linphone/linphone_tunnel.h’ file not found.
      any idea?

      • Hi Bonan,
        Can you try doing a git pull to get the latest from Linphone repository? To do so, just change directory to the linphone source on your machine, and type “git pull”

        regards
        Jessica

        • sorry…posted a new one instead of replying
          ———————————————————-

          Hi Jessica,
          Thanks for replying.
          I made a fresh clone, and then “git pull”. It showed “Already up-to-date.”
          then I rebuild the sdk, and opened it in xcode. Then the error came back again:

          Can’t find /Users/bonanzhang/Desktop/linphone_new/linphone-iphone/liblinphone-sdk/apple-darwin/share/pixmaps/linphone/linphone-banner.png
          Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng failed with exit code 1

        • by the way, there were some errors after building the sdk

          make[5]: *** [install-data-local] Error 64
          make[4]: *** [install-am] Error 2
          make[3]: *** [install] Error 2
          make[2]: *** [install-recursive] Error 1
          make[1]: *** [build-mssilk] Error 2
          make: *** [broadcast_all] Error 2

        • I just built and ran it on another mac. Now I just need to figure out why the same code and procedure doesn’t work on my working mac. I saw there’s no error after the sdk build on the other mac, and as I said, there are some errors on my working mac.

          Jessica, can you please help take a look of the errors and figure out why these happened?

          Thanks!

  53. Hi Jessica,
    Thanks for replying.
    I made a fresh clone, and then “git pull”. It showed “Already up-to-date.”
    then I rebuild the sdk, and opened it in xcode. Then the error came back again:

    Can’t find /Users/bonanzhang/Desktop/linphone_new/linphone-iphone/liblinphone-sdk/apple-darwin/share/pixmaps/linphone/linphone-banner.png
    Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng failed with exit code 1

  54. I have the following error:

    libtool: Version mismatch error. This is libtool 2.4.2, but the
    libtool: definition of this LT_INIT comes from libtool 2.4.
    libtool: You should recreate aclocal.m4 with macros from lib tool 2.4.2

    Please advice.

  55. Hi Jessica,
    I followed your instruction down to the Step 7, but got the following error which I have no clue to fix it. Can you help me? Thank you very much.

    Configuring for target ‘x86-darwin10-gcc’
    enabling x86
    enabling runtime_cpu_detect
    enabling mmx
    enabling sse
    enabling sse2
    enabling sse3
    enabling ssse3
    enabling sse4_1
    using yasm
    Adding -O3 to CFLAGS
    enabling use_x86inc
    Adding -fno-strict-aliasing to CFLAGS
    Adding -Wall to CFLAGS
    Adding -Wdeclaration-after-statement to CFLAGS
    Adding -Wdisabled-optimization to CFLAGS
    Adding -Wpointer-arith to CFLAGS
    Adding -Wcast-qual to CFLAGS
    Adding -Wimplicit-function-declaration to CFLAGS
    Adding -Wuninitialized to CFLAGS
    Adding -Wunused-variable to CFLAGS
    Adding -Wno-unused-function to CFLAGS
    enabling postproc
    enabling webm_io
    Unable to invoke compiler: gcc -mmacosx-version-min=10.6 -m32 -arch i386 -O3 -fno-strict-aliasing -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -Wno-unused-function

    Configuration failed. This could reflect a misconfiguration of your
    toolchains, improper options selected, or another problem. If you
    don’t see any useful error messages above, the next step is to look
    at the configure error log file (config.log) to determine what
    configure was trying to do when it died.
    make[1]: *** [/Users/home/LinPhone/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/libvpx/config.mk] Error 1
    make: *** [broadcast_all] Error 2

    • Can you run “gcc” from the commandline? Try running “gcc” at the commandline and see if you get a “Command not found” error. If so, then you need to install gcc

  56. Hi, I am trying to run following comment but it’s not working and giving error.

    #sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng antlr3 nasm

    -bash: port: command not found

    I am trying to install it on Mac OS X 10.9

    Can you please let me know what can be an issue?

  57. When I am trying to run following command I am getting error as shown. Can you please suggest me what I am doing wrong?

    bosleo1:MacPorts-1.9.2 jaidesai$ sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm nasm grep doxygen ImageMagick optipng antlr3
    Warning: No index(es) found! Have you synced your source indexes?
    Error: Port coreutils not found
    To report a bug, see

      • Yeah, I’ve tried some guides but didn’t work for me either …

        CAn you suggest me how i can configure it for iphone 5S and 6 ? seems it gets error when i compile for 5s or 6….

        • Hi Mit
          Thanks for your comment.
          1) Did you get errors while doing the make from the commandline? Or from XCode?
          2) Have you downloaded iOS 8 SDK? and Set your SDK to 8 when compiling?
          3) Did you do a “git pull” to get the latest source code before building?

          • Hi Jessica,

            Yeah it compile without any errors.

            It got errors when i compile for iPhone 5s and 6 on simulator.

            Also, how i can include G729 Codecs ?

    • I know this question was asked last year…but the article has been updated for arm64. Late is better than never i guess

  58. /build/linphone.build/Debug-iphoneos/linphone.build/Script-63DCC71D1A07B08E00916627.sh: /Users/fookii/Desktop/linphone_iphone/Tools/git_version.sh: /bin/sh^M: bad interpreter

    How to fixed it?,Thanks

    • Looks like your bash shell is not working right. Can you try
      1) Opening a terminal
      2) At the prompt, type “bash”

      Did it give you an error?

  59. Hi,when I am trying to run following command I am getting error.

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

    /bin/sh: ginstall: command not found
    make[5]: *** [install-polarsslHEADERS] Error 127
    make[4]: *** [install-am] Error 2
    make[3]: *** [install-recursive] Error 1
    make[2]: *** [install-recursive] Error 1
    make[1]: *** [build-polarssl] Error 2
    make: *** [broadcast_all] Error 2

    I have installed MacPort.And when i run “su -” get “su: Sorry”.

    Jessica, can you please help take a look of the errors?

    Thanks!

    • Sorry,the error as run “cd submodules/build && make all” not “sudo ln -s /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/string”

  60. Hi Jessica,

    Thank u for ur detailed post,i am able to compile it successfully and it is running on 32 bit devices, code is not getting compiled on 64 bit devices i.e, from iPhone 5s.I am not sure whether I’m missing anything or does Linphone still not supported for 64 bit device??Can u shed some light on my issue.Thanku.

    • I am actually also trying to get it to compile for iphone5s and iphone6. Still have not had time to figure it out yet. Let me know if you figure it out please.

  61. Hi, Jessica.
    I am trying for compile Linphone Source 2.1.2 on iOS 10.9 and Xcode 5.1.1.
    But i got the following error. Can you help me?
    ****************************************************
    Bernds-Mac:build bernd$ make all
    Broadcasting target ‘all’ to all sub-architectures
    make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all \
    && make -f builder-iphone-os.mk enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all \
    && make -f builder-iphone-os.mk host=armv7s-apple-darwin enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all
    builder-iphone-os.mk:105: *** mixed implicit and normal rules. Stop.
    make: *** [broadcast_all] Error 2
    *******************************************
    Waiting for your help quickly.
    Thank you very much.

  62. Hi, I have a different problem:
    when I did that as the README file to the last step-‘make all’, the error showed:checking for perl >= 5.8.1… 5.16.2
    /Users/beryl/Documents/linphone-iphone/submodules/build/..//linphone/mediastreamer2/configure: line 17633: syntax error near unexpected token `MSGFMT,’
    ../../../linphone-iphone/submodules/build/..//linphone/mediastreamer2/configure: line 17633: ` AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,’
    configure: error: ../../../linphone-iphone/submodules/build/..//linphone/mediastreamer2/configure failed for mediastreamer2
    make[1]: *** [/Users/beryl/Documents/linphone-iphone/submodules/build/../build-i386-apple-darwin/linphone/Makefile] Error 2
    make: *** [broadcast_all] Error 2

    Thanks && Regards

  63. Hi,

    I have compiled it perfectly, after several try.
    But i am getting error (Apple MAsh O linker error) when building it for iphone 5s,6 simulator. In iphone 5 simulator it is working perfectly.

    What will be the issue ?

  64. Hi .. this tutorial is very helpful and worked perfectly for mountain lion but when i upgraded my mac with Maverick .
    I have successfully installed ports on Maverick 10.9.5 but only left with imageMagick port . How to install this on Maverick 10.9.5 . Please let me know .

    • To update imageMagick
      sudo port selfupdate
      sudo port upgrade outdated

      To install imageMagick
      sudo install imageMagick

  65. Hi Jessica,
    I am new to Linphone integration ,getting below error while building linphone sdk at step 7

    error: pathspec ‘configure.in’ did not match any file(s) known to git.
    make[1]: *** [veryclean-libxml2] Error 1
    make: *** [broadcast_veryclean] Error 2
    Please help me

  66. Hi All,
    Please help me to solve this issue .Getting this issue when i am running “make veryclean” command
    issue:
    error: pathspec ‘configure.in’ did not match any file(s) known to git.
    make[1]: *** [veryclean-libxml2] Error 1
    make: *** [broadcast_veryclean] Error 2

    • Hi Narayana,
      I’ve updated the post since the latest linphone project has changed its build instruction a bit. Please try again. I would suggest that you do a clean git clone.

  67. Hi Jessica,
    I have a problem that if I selected the ZRTP type in setting page. Then I make a call the server said that I didn’t use the ZRTP in fact.Is there any thing else need to do to support ZRTP?
    Help Me please!

  68. thanks.. this is very good instruction. i spent a lot of time to compile the linphone SDK and then it works finally. However, when i open the project (either the .xcodeproj or the .xcworkspace), it always shows “ld: library not found for -lPods-KifTests-KIF” looks like the libPods-KifTests-KIF.a is not installed, I followed all instructions such as “sudo gem install cocoapods&& pod setup &&pod init && pod install”. Does any one know how to fix this? I searched online and did not find any helpful information.
    many thanks!

    • To be more specific, in my XCODE project, the following files are in “red” which means “missing”…

      under Pods->Frameworks->iOS
      1. CoreGraphics.framework
      2. Foundation.framework
      3. XCTest.framework

      under Pods->Produces
      1. libPods-KifTests.a
      2. libPods-KifTests-KIF.a

      Another warning that I got is:
      PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _WelsI4x4LumaPredH_sse2 from /Users/yonggewang/Documents/iphone/linphone/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libopenh264.a(intra_pred.o). To fix this warning, don’t compile with -mdynamic-no-pic or link with -Wl,-no_pie

      many thanks for your help again.
      David

  69. @seecah

    Hello Seecah/All,

    If anyone having same error as Seecah was (e.g. illegal option -D), then please edit following as (under submodules/mssilk/sdk),

    sh-3.2# pwd
    /var/root/linphone-iphone/submodules/mssilk/sdk
    sh-3.2#vi Makefile.am

    And replace following line,

    $(INSTALL) -D $(silk_src_dir)/$(silk_lib) $(DESTDIR)$(prefix)/lib/$(silk_lib)

    with

    $(INSTALL) $(silk_src_dir)/$(silk_lib) $(DESTDIR)$(prefix)/lib/$(silk_lib)

    Basically /usr/bin/install does not support -D option, hence install script generate this error.

    Once you fixed this issue, you can run make veryclean and make all.

    Thanks, Manash

  70. Hi Jessica! Thanks for good manual. Please, help me with belle-sip installation:

    ld: warning: ignoring file /usr/local/lib/libantlr3c.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libantlr3c.dylib
    Undefined symbols for architecture i386:
    “_ANTLR3_TREE_ADAPTORNew”, referenced from:
    _belle_sdpParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sdpParser.o)
    “_antlr3CommonTokenStreamSourceNew”, referenced from:
    _belle_sip_uri_parse in libbellesip_la-belle_sip_uri_impl.o
    _belle_sip_header_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_address_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_allow_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_contact_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_from_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_to_parse in libbellesip_la-belle_sip_headers_impl.o

    “_antlr3LexerNewStream”, referenced from:
    _belle_sip_messageLexerNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageLexer.o)
    _belle_sdpLexerNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sdpLexer.o)
    “_antlr3ParserNewStream”, referenced from:
    _belle_sip_messageParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _belle_sdpParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sdpParser.o)
    “_antlr3StackNew”, referenced from:
    _belle_sip_messageParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _belle_sdpParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sdpParser.o)
    “_antlr3StringStreamNew”, referenced from:
    _belle_sip_uri_parse in libbellesip_la-belle_sip_uri_impl.o
    _belle_sip_header_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_address_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_allow_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_contact_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_from_parse in libbellesip_la-belle_sip_headers_impl.o
    _belle_sip_header_to_parse in libbellesip_la-belle_sip_headers_impl.o

    “_antlr3VectorFactoryNew”, referenced from:
    _belle_sdpParserNewSSD in libbellesip_generated.a(libbellesip_generated_la-belle_sdpParser.o)
    “_antlr3dfapredict”, referenced from:
    _cdfa175 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa148 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa138 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa129 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa128 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa119 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa120 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)

    “_antlr3dfaspecialStateTransition”, referenced from:
    _cdfa175 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa148 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa129 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa128 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa120 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa106 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa100 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)

    “_antlr3dfaspecialTransition”, referenced from:
    _cdfa175 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa148 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa138 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa129 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa128 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa119 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)
    _cdfa120 in libbellesip_generated.a(libbellesip_generated_la-belle_sip_messageParser.o)

    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[3]: *** [libbellesip.la] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    ————————————

    How to handle this?

  71. Hi,
    when I compile linphone with lastest code for 64 bit sdk,I get this error:
    configure: error: Could not find antlr3 development files. Please install antlr3 version > 3.2 (libantlr3c-dev on debian/ubuntu systems)

    but,I already install antlr3:
    cmccmac:build cmcc$ antlr
    antlr-3.2 antlr3

    Pls help me ,thanks

  72. Hello there
    I got error below :
    && git clean -f && git reset –hard && rm -f patched.stamp
    fatal: Not a git repository: ../../../.git/modules/submodules/externals/libvpx
    make[1]: *** [veryclean-libvpx] Error 128
    make: *** [broadcast_veryclean] Error 1
    Im stock on that for almost 4 days.

  73. Hi Jessica tutorial here !

    I have follow this tutorial without problem and now I am encountering a problem with the make all, it says that I don’t have autogen.sh in /bin/sh.

    I’m in Yosemite 10.10 / xcode 6.2 /.

    Also i had to modify the build-iphone-os.mk because of “** mixed implicit and normal rules.” but it seems that i solved it.

    If u can give me a hint it will be really helpfull

    Thanks for All

  74. Hi Jessica,
    Thank you very much for writing this tutorial and answering all those questions. I also have a question. Following the instructions everything goes well till Xcode step 8.
    I use Mavericks 10.9.5 and SDK 8.1. I changed arm7 arm64 to armv7 armv7s but when I compile I get 219 warnings/errors which are the result of missing required architecture i386 in file … etc
    I checked http://lists.nongnu.org/archive/html/linphone-developers/2014-12/msg00076.html and http://stackoverflow.com/questions/22323039/arm64-architecture-in-xcode-5-1 but to no avail.
    and http://stackoverflow.com/questions/1456185/build-error-missing-required-architecture-i386-in-file and http://stackoverflow.com/questions/5544985/missing-required-architecture-i386-in-file but I’m not getting any further. If you could hint me to a solution it would be very appreciated.
    Kind regards

    Henk Schoneveld
    The Netherlands

  75. Do you have any experience implementing this library on Android as well? If so, would you or would you know someone that would be interested in contract work to develop an app for the Android and iOS platform utilizing linphone?

  76. Hello Jessica,

    I am new to linphone integration ,i use xcode 6.3.1 And iOS 8.0
    I am getting below error while building:

    /Users/apple/Library/Developer/Xcode/DerivedData/linphone-fxudqxvqxkcrxbdvwyrqnqyzqwwg/Build/Intermediates/linphone.build/Debug-iphoneos/linphone.build/Script-63DCC71D1A07B08E00916627.sh: line 2: /Users/apple/Downloads/linphone-iphone-master: is a directory
    Command /bin/sh failed with exit code 126

    Help me please.
    Thanks

  77. Hi, Jessica,

    I finally was able to compile the sdk on my new computer. Maybe because Linphone updated their project. Anyway, it now compiles by following only their READ.md at the top level or their instruction on github: https://github.com/BelledonneCommunications/linphone-iphone. There is no need to build liblinphone first.

    My system has: MacOS 10.10.3, Xcode 6.3.1, iOS 8.3, and the latest linphone code as of yesterday.

    Thanks, and hope the info can help you update your great tutorial.

  78. Hello admin/all,

    I am getting below error while building:

    /Users/apple/Library/Developer/Xcode/DerivedData/linphone-fxudqxvqxkcrxbdvwyrqnqyzqwwg/Build/Intermediates/linphone.build/Debug-iphoneos/linphone.build/Script-63DCC71D1A07B08E00916627.sh: line 2: /Users/apple/Downloads/linphone-iphone-master: is a directory
    Command /bin/sh failed with exit code 126

    Help me please.
    Thanks

    • Hi Rajesh,
      It seems that somehow you are trying to execute a directory, instead of an executable file. Have you tried checking out a new linphone source copy and follow the tutorial again?
      jessica

  79. Hi Jessica,

    Thanks a lot for reply me,
    I use latest Linphone SDK support on iOS 8 and Xcode 6.3.1, also i follow all step in your tutorial, its running properly on device, but i am getting below error while archiving my project:

    /Users/apple/Library/Developer/Xcode/DerivedData/linphone-fxudqxvqxkcrxbdvwyrqnqyzqwwg/Build/Intermediates/linphone.build/Debug-iphoneos/linphone.build/Script-63DCC71D1A07B08E00916627.sh: line 2: /Users/apple/Downloads/linphone-iphone-master: is a directory
    Command /bin/sh failed with exit code 126

    Thanks.

  80. Hello Jessica,

    i am trying to compile linphone for iphone, and while i am configuring belle-sip i get the following error : OBJC backgroundtask.lo
    backgroundtask.m:70:9: fatal error: module ‘Foundation’ not found
    @import Foundation;”

    Is it something with my env vars or any other idea?

  81. I run command upto GSM CODEC as mentioned in step 5. After that I got
    -bash: ./autogen.sh: /bin/sh^M: bad interpreter: No such file or directory
    while running ./autogen.sh , also I got source code from git. I tried second method also:
    ./configure –prefix=/opt/local && make && sudo make install
    but that is also not working.
    *Compile Linphone
    process also not working for me – it shows
    -bash: ./configure: No Such file or directory
    What should I do now?

  82. Hello,
    I followed steps as mentioned in README.MacOs.md at the last when I make installation using sudo make install command in terminal I got this Error:
    CXXLD liblinphone.la
    libtool: error: cannot find the library ‘../mediastreamer2/src/libmediastreamer_base.la’ or unhandled argument ‘../mediastreamer2/src/libmediastreamer_base.la’
    make[3]: *** [liblinphone.la] Error 1
    make[2]: *** [install-recursive] Error 1
    make[1]: *** [install] Error 2
    make: *** [install-recursive] Error 1
    What should I do now to resolve this Issue.

  83. Hello
    any one can help me , i am unable to setup linphone sdk in my project it give error ortp/ortp.h not found

  84. Hello Jessica,

    I have downloaded the linphone SDK and try to write a demo with the latest SDK.
    When compile the target, error shows below:
    Undefined symbols for architecture arm64:
    “_linphone_core_create_default_call_parameters”, referenced from:
    -[LinphoneManager call:displayName:transfer:] in LinphoneManager.o
    “_libmsilbc_init”, referenced from:
    -[LinphoneManager createLinphoneCore] in LinphoneManager.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Could you help me to take a look.
    Thanks in advance.

  85. After I originally commented I seem to have clicked
    on thee -Notify me when new comments are added- checkbox and now every time
    a comment is added I get 4 emails wiith the same comment.
    Is there a means you are able to remove me from that
    service? Thank you!

  86. Have you ever considered writing an e-book or guest authoring on other sites?

    I have a blog based on the same topics you discuss and would really like to have you share some stories/information. I know
    my viewer would value your work. If you aree even remotely interested, feel free
    to senhd me an e-mail.

  87. Los Palladium Hotels & Resorts le ofrecen todas las facilidades y servicios para hacer de su estancia un recuerdo inmejorable: servicio de recepción 24 horas, servicio de teléfono y fax, conexión ADSL con cargo, TV por satélite, consigna para equipaje, servicio despertador, cambio de moneda, servicio de lavandería, parking exterior, rampas de acceso para minusválidos en las zonas comunes y piscinas , máquinas de refrescos, máquina de hielo, entre otros.

  88. Whhen Ioriginally commented I seem to have clicked the -Notify me wheen new comments are added- checkbox and from now on every time a comment is
    added I recieve 4 emails with the same comment.
    Is there a means you can remove me from that service?
    Many thanks!

  89. Multinacional requiere personal técnico en Soldadura para la ciudad de Medellín, mediante contrato de prestación de servicios, interesados enviar hoja de vida con soportes. Asegúrese de que cada página de su web tiene una meta descripción única, y que ésta sea explícita y contiene sus palabras clave más relevantes (aparecen en negrita cuando coinciden con la consulta del usuario).

  90. Keep on the process. Now, available the other hop ring just like anyone opened up the very first. Get your current 3 rd hop ring as well as hyperlink that to the second. Shut that soon after. Carry out the ditto to the other hop bands in anticipation of having shaped the actual bracelets to your preferred duration.
    under armour athletes http://www.onbackcountry.com/online-discount-under-armour-curry-speedform-apollo-men-black-jacinth-2016.html

  91. Hello I am getting this error and unable to proceed.
    error: /Users/xxx/Documents/Projects/linphone-iphone/liblinphone-sdk/apple-darwin/share/linphone/rootca.pem: No such file or directory

    Please suggest

  92. Hello I am getting this error:
    In file included from /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/belle_sip_utils.c:26:
    /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/clock_gettime.h:24:2: error:
    redefinition of enumerator ‘_CLOCK_REALTIME’
    CLOCK_REALTIME,
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:154:24: note:
    expanded from macro ‘CLOCK_REALTIME’
    #define CLOCK_REALTIME _CLOCK_REALTIME
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:153:1: note:
    previous definition is here
    _CLOCK_REALTIME __CLOCK_AVAILABILITY = 0,
    ^
    In file included from /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/belle_sip_utils.c:26:
    /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/clock_gettime.h:25:2: error:
    redefinition of enumerator ‘_CLOCK_MONOTONIC’
    CLOCK_MONOTONIC,
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:156:25: note:
    expanded from macro ‘CLOCK_MONOTONIC’
    #define CLOCK_MONOTONIC _CLOCK_MONOTONIC
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:155:1: note:
    previous definition is here
    _CLOCK_MONOTONIC __CLOCK_AVAILABILITY = 6,
    ^
    In file included from /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/belle_sip_utils.c:26:
    /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/clock_gettime.h:26:2: error:
    redefinition of enumerator ‘_CLOCK_PROCESS_CPUTIME_ID’
    CLOCK_PROCESS_CPUTIME_ID,
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:168:34: note:
    expanded from macro ‘CLOCK_PROCESS_CPUTIME_ID’
    #define CLOCK_PROCESS_CPUTIME_ID _CLOCK_PROCESS_CPUTIME_ID
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:167:1: note:
    previous definition is here
    _CLOCK_PROCESS_CPUTIME_ID __CLOCK_AVAILABILITY = 12,
    ^
    In file included from /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/belle_sip_utils.c:26:
    /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/clock_gettime.h:27:2: error:
    redefinition of enumerator ‘_CLOCK_THREAD_CPUTIME_ID’
    CLOCK_THREAD_CPUTIME_ID
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:170:33: note:
    expanded from macro ‘CLOCK_THREAD_CPUTIME_ID’
    #define CLOCK_THREAD_CPUTIME_ID _CLOCK_THREAD_CPUTIME_ID
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:169:1: note:
    previous definition is here
    _CLOCK_THREAD_CPUTIME_ID __CLOCK_AVAILABILITY = 16
    ^
    In file included from /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/belle_sip_utils.c:26:
    /Users/jackyliu/test/nxroboapp-ios/linphone-iphone/submodules/belle-sip/src/clock_gettime.h:28:3: error:
    typedef redefinition with different types (‘enum clockid_t’ vs ‘enum clockid_t’)
    } clockid_t;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/time.h:171:3: note:
    previous definition is here
    } clockid_t;
    ^
    5 errors generated.
    make[7]: *** [src/CMakeFiles/bellesip.dir/belle_sip_utils.c.o] Error 1
    make[6]: *** [src/CMakeFiles/bellesip.dir/all] Error 2
    make[5]: *** [all] Error 2
    make[4]: *** [/Users/jackyliu/test/nxroboapp-ios/linphone-iphone/WORK/ios-x86_64/Stamp/EP_bellesip/EP_bellesip-build] Error 2
    make[3]: *** [CMakeFiles/EP_bellesip.dir/all] Error 2
    make[2]: *** [CMakeFiles/EP_bellesip.dir/rule] Error 2
    make[1]: *** [EP_bellesip] Error 2
    make: *** [x86_64-build-bellesip] Error 2

    Please suggest

  93. Take note the number of ovoids you utilize as well as the number of times you repeat this process would likely nevertheless depend upon the length of your watch band as well as on the size of your own ovoids. If the ovoids are incredibly tiny, you’ll require more than 58 bits. If the ovoids are incredibly huge, you could possibly may make apply 60 bits.
    black vans http://www.ifindwholesalers.com/online-buy-vans-light-blue-classic-era-shoes-classic-canvas-2017.html

  94. I discovered many significant things by your submit. I may like to state that there might be a predicament that you may make application for a loan and never need a cosigner such as a Government College student Assist Loan. But if you are receiving any asking for agreement through a standard financial institution you will want to make ready to use a cosigner ready to make it simpler in your case. Lenders are going to starting just about any choice over a few concerns nevertheless the primary you’ll be your credit history. There are many creditors that can moreover take a look at task background and make up your mind according to this particular but in most cases it’ll pivot on your standing.
    UA EQT Support http://www.okshoppy.com/online-adidas/outlet-ua-eqt-support-2017-designer.html

  95. Losing manage is becoming my finest blessing. Warm selflessly, thinking thoughtlessly, hoping fiercely, as well as experiencing amorously the wonder associated with my loved ones. This is just what parenthood is becoming for me and its only inside sacrificing manage that we may pleasant the rest of playing, a single normally well-organized as well as exceedingly well adored visit to a period.
    adidas jeremy scott http://www.okshoppy.com/online-adidas/sales-on-yeezy-750-boost.html

  96. Simply want to say your article is as amazing.
    The clearness for your publish is just great and that
    i can think you are a professional on this subject. Fine with your permission allow me to
    seize your RSS feed to keep up to date with forthcoming post.
    Thank you 1,000,000 and please continue the rewarding work.

  97. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter
    stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield
    this increase.

  98. Hello this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG
    editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I
    wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

Leave a Reply to David Wong Cancel reply