简体   繁体   中英

Integrate Linphone for iPhone

I want to implement Linphone into my project but i'm stuck in between and I don't know where to go now.

What I've done is downloaded linphone-iphone-master sdk masterhttps://github.com/BelledonneCommunications/linphone-iphone

and then this liblinphone-sdk from gtihub and included lib, include folder to it. After compiling it give me this error.

liblinphone SDK not found. Please refer to the README: you have to compile liblinphone SDK before building Linphone application.
Command /bin/sh failed with exit code 1

I'm also a new to this and searched lot of things but couldn't find anything and don't know what to do please help me.

I also installed home brew as it shows and there's this website which i'm following but getting no success.

If you don't want build linphone-sdk by yourself, you can directly download it from linphone website , http://www.linphone.org/releases/ios/liblinphone-iphone-sdk-latest.zip .

After downloading it (will be a zip file - " liblinphone-iphone-sdk-latest.zip"), unzip it (will unzip to "liblinphone-sdk" folder).

Just copy paste "liblinphone-sdk" folder into your linphone-iphone project folder.

You're done! Run linphone-iphone xcode project. Now, it should build and run without any error.

Note: Building/rebuilding linphone-sdk manually is required if you want to make any change in pre-builded linphone-sdk, http://www.linphone.org/releases/ios/liblinphone-iphone-sdk-latest.zip .

If you dont want to build your own SDK you should go for this link and do the readme file steps. Otherwise if want to compile the code using your local SDK you should follow this steps.

Before you build SDK first install all these tool on your mac.

  1. cmake >= 3.6
    • python = 2.7 (python 3.7 if C# wrapper generation is disabled)
    • pip
    • yasm
    • nasm
    • doxygen
    • Pystache (use pip install pystache )
    • six (use pip install six )

For this I recommended first install python 3 on your mac. it'll save you from lot of issues when you are installing last two steps. And download using this git command,

git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive

After that go to downloaded folder and make folder called "build". then go inside that folder and do these steps to build your local SDK,

  1. Execute CMake to configure the project: cmake ..
  2. Build the SDK: cmake --build . or cmake --build . --parallel <number of jobs> cmake --build . --parallel <number of jobs> (which is faster).

You can pass some options to CMake at the second step to configure the SDK as you want. For instance, to build an iOS SDK (the default being Desktop): cmake .. -DLINPHONESDK_PLATFORM=IOS

If you want to use any other features with your local SDK please refer the readme file in your downloaded file.

As it says, before building via Xcode you need to build the SDK. You need to use Terminal to cd to the linphone-iphone directory and use the ./prepare.py && make command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM