简体   繁体   English

将linphone集成到iOS

[英]Integrate linphone into iOS

I am trying to add linphone lib to my existing iOS app, but it fails to build 我正在尝试将linphone lib添加到我现有的iOS应用中,但是无法构建

My process: 我的过程:

  1. Added all the required frame works in my existing project. 在我现有的项目中添加了所有必需的框架作品。
  2. Copied all lib from linphone-iphone/liblinphone-sdk/apple-darwin/lib/ to myproject/lib 将所有lib从linphone-iphone / liblinphone-sdk / apple-darwin / lib /复制到myproject / lib
  3. Copied linphone-iphone/Resources to myproject/Resources 复制的linphone-iphone /资源到myproject /资源
  4. Then I added LinphoneManager.h & .m with there related files. 然后,我添加了LinphoneManager.h和.m以及相关文件。
  5. Then I started build the app, I am getting file not found #include "ortp/ortp.h" in Linphonecore (but file is available). 然后,我开始构建该应用程序,我在Linphonecore中获取找不到文件#include“ ortp / ortp.h”的文件(但该文件可用)。

What I understand from the error is, I need to modify the build setting to search the file. 我从错误中了解到,我需要修改构建设置以搜索文件。 I have done that but I still get the same error. 我已经做到了,但是我仍然遇到同样的错误。

See the Header Search Paths in your Build Settings. 请参阅构建设置中的标题搜索路径 And copy paste them from the Linphone sample app. 然后从Linphone示例应用程序复制粘贴它们。 在此处输入图片说明

I wrote an answer here . 在这里写了一个答案 It's a bit long but I sincerely hope it is clear enough and will help you (and the others in the future) to build and integrate Linphone! 它有点长,但我衷心希望它足够清晰,将帮助您(以及将来的其他人)构建和集成Linphone!

Best, 最好,

For "ortp/ortp.h" File Not Found Error! 对于“ ortp / ortp.h”,找不到文件错误!

  1. Check your "linphone-sdk" fold, if added to the project 检查您的“ linphone-sdk”折叠(如果已添加到项目中)
  2. If added, check the libOrtp.a in linphone-sdk/apple-darwin/lib/ 如果添加了,请检查linphone-sdk / apple-darwin / lib /中的libOrtp.a。
  3. If exist, check the "Build Phases" -> "link binary with libraries", if "libOrtp.a" included 如果存在,请检查“构建阶段”->“使用库链接二进制文件”(如果包含“ libOrtp.a”)
  4. After all above are done, check the "Build settings" -> "header search paths", and add "$(SRCROOT)/liblinphone-sdk/apple-darwin/include" 完成上述所有操作后,检查“构建设置”->“标题搜索路径”,然后添加“ $(SRCROOT)/ liblinphone-sdk / apple-darwin / include”

Problem solved! 问题解决了!

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

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