Integrate Linphone for iPhone

旧街凉风 提交于 2019-12-25 03:34:29

问题


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.


回答1:


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.




回答2:


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> (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.




回答3:


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.



来源:https://stackoverflow.com/questions/34085667/integrate-linphone-for-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!