简体   繁体   English

为 iPhone 集成 Linphone

[英]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.我想在我的项目中实施 Linphone,但我被困在两者之间,我现在不知道该去哪里。

What I've done is downloaded linphone-iphone-master sdk masterhttps://github.com/BelledonneCommunications/linphone-iphone我所做的是下载 linphone-iphone-master sdk masterhttps://github.com/BelledonneCommunications/linphone-iphone

and then this liblinphone-sdk from gtihub and included lib, include folder to it.然后这个来自 gtihub 的 liblinphone-sdk 和包含的 lib,包含文件夹。 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.我还安装了 Home brew,因为它显示了我正在关注的这个网站,但没有成功。

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 .如果您不想自己构建 linphone-sdk,可以直接从 linphone 网站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).下载后(将是一个 zip 文件 - “liblinphone-iphone-sdk-latest.zip”),解压缩它(将解压缩到“liblinphone-sdk”文件夹)。

Just copy paste "liblinphone-sdk" folder into your linphone-iphone project folder.只需将“liblinphone-sdk”文件夹复制粘贴到您的 linphone-iphone 项目文件夹中。

You're done!你完成了! Run linphone-iphone xcode project.运行 linphone-iphone xcode 项目。 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 .注意:如果您想对预构建的 linphone-sdk 进行任何更改,则需要手动构建/重建 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.如果您不想构建自己的 SDK,则应访问此链接并执行自述文件步骤。 Otherwise if want to compile the code using your local SDK you should follow this steps.否则,如果要使用本地 SDK 编译代码,则应遵循以下步骤。

Before you build SDK first install all these tool on your mac.在您构建 SDK 之前,首先在您的 Mac 上安装所有这些工具。

  1. cmake >= 3.6 cmake >= 3.6
    • python = 2.7 (python 3.7 if C# wrapper generation is disabled) python = 2.7(如果禁用 C# 包装器生成,则为 python 3.7)
    • pip点子
    • yasm亚斯姆
    • nasm纳姆
    • doxygen多氧
    • Pystache (use pip install pystache ) Pystache(使用pip install pystache
    • six (use pip install six )六(使用pip install six

For this I recommended first install python 3 on your mac.为此,我建议首先在您的 Mac 上安装 python 3。 it'll save you from lot of issues when you are installing last two steps.当您安装最后两个步骤时,它会让您免于许多问题。 And download using this git command,并使用此 git 命令下载,

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

After that go to downloaded folder and make folder called "build".之后转到下载的文件夹并制作名为“build”的文件夹。 then go inside that folder and do these steps to build your local SDK,然后进入该文件夹并执行这些步骤来构建您的本地 SDK,

  1. Execute CMake to configure the project: cmake ..执行 CMake 配置项目: cmake ..
  2. Build the SDK: cmake --build .构建 SDK: cmake --build . or cmake --build . --parallel <number of jobs>cmake --build . --parallel <number of jobs> cmake --build . --parallel <number of jobs> (which is faster). cmake --build . --parallel <number of jobs> (更快)。

You can pass some options to CMake at the second step to configure the SDK as you want.您可以在第二步将一些选项传递给 CMake,以根据需要配置 SDK。 For instance, to build an iOS SDK (the default being Desktop): cmake .. -DLINPHONESDK_PLATFORM=IOS例如,要构建一个 iOS SDK(默认为桌面): 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.如果您想在本地 SDK 中使用任何其他功能,请参阅下载文件中的自述文件。

As it says, before building via Xcode you need to build the SDK.正如它所说,在通过 Xcode 构建之前,您需要构建 SDK。 You need to use Terminal to cd to the linphone-iphone directory and use the ./prepare.py && make command.您需要使用终端 cd 到 linphone-iphone 目录并使用./prepare.py && make命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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