Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 448
joakimb Avatar asked Mar 21 '13 14:03

joakimb


1 Answers

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

like image 103
Kindergart Avatar answered Nov 15 '22 09:11

Kindergart