Integrate linphone into iOS

偶尔善良 提交于 2019-12-22 14:48:27

问题


I am trying to add linphone lib to my existing iOS app, but it fails to build

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
  3. Copied linphone-iphone/Resources to myproject/Resources
  4. Then I added LinphoneManager.h & .m with there related files.
  5. Then I started build the app, I am getting file not found #include "ortp/ortp.h" in Linphonecore (but file is available).

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.


回答1:


See the Header Search Paths in your Build Settings. And copy paste them from the Linphone sample app.




回答2:


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!

Best,




回答3:


For "ortp/ortp.h" File Not Found Error!

  1. Check your "linphone-sdk" fold, if added to the project
  2. If added, check the libOrtp.a in linphone-sdk/apple-darwin/lib/
  3. If exist, check the "Build Phases" -> "link binary with libraries", if "libOrtp.a" included
  4. After all above are done, check the "Build settings" -> "header search paths", and add "$(SRCROOT)/liblinphone-sdk/apple-darwin/include"

Problem solved!



来源:https://stackoverflow.com/questions/15739270/integrate-linphone-into-ios

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