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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With