How do i use pjsip in my own iOS-project?

纵饮孤独 提交于 2019-12-09 18:29:55

问题


I have sucessfully downloaded the source code for pjsip and compiled it for iphone. I can run the iOS example project that comes with the release. The next step for me is to build my own project that uses the pjsip libraries, this i where i start having problems.

I have added the same libraries that the sample project uses to my project. I have also set the "Header Search Paths" under "Build Settings" to "${SOURCE_ROOT}" After that i try to include the pjsip library by typning:

#include <pjsua-lib/pjsua.h>

xcode gives me the error 'pjsua-lib/pjsua.h' file not found. Can anyone tell me what i am doing wrong?


回答1:


You have to include the folders

path/to/pjsipprojectfolder/pjsip/include
path/to/pjsipprojectfolder/pjmedia/include
path/to/pjsipprojectfolder/pjnpath/include
path/to/pjsipprojectfolder/pjlib-util/include
path/to/pjsipprojectfolder/pjlib/include

to your "Header Search Paths" under "Build Settings".

Now the compiler can find all the *.h files



来源:https://stackoverflow.com/questions/15550156/how-do-i-use-pjsip-in-my-own-ios-project

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