2

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.

Sixty4Bit
  • 12,852
  • 13
  • 48
  • 62
user2231167
  • 21
  • 1
  • 2

3 Answers3

0

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

artyom
  • 48
  • 11
  • Errors about including ortp/ortp.h ? – artyom Apr 09 '13 at 07:11
  • Which one? I did implement Linphone into my project but interested in another libraries for SIP – artyom Apr 17 '13 at 13:19
  • artyom Could you please tell me, what i need to do to implement linphone in one of my iOS app. – Rajender Kumar May 27 '13 at 12:23
  • 1
    Download linphone from their repository. Follow README file instructions. After you compile the source files, you should look at linphone sample project configuration and reproduce all these configurations in your project. After that you should be abel to build project – artyom May 28 '13 at 07:39
0

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,

Community
  • 1
  • 1
Kevin Delord
  • 2,498
  • 24
  • 22
0

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!

Muiz
  • 36
  • 4