c++ - Include errors with pjsip as static library in Android NDK project -


based on 2 libs example have built pjsip static static lib. far good. when include 1 file lib in file outside library many errors.

edit: eclipse project, using android.mk tried adding android.mk:

file_list_h := $(filter %.h*, $(allfiles)) local_c_includes := $(file_list_h:$(local_path)/%=%) 

demo.cpp:

#include <jni.h> #include <pjsip/include/pjsua-lib/pjsua.h> 

output

compile++ thumb : demo <= demo.cpp

in file included c:/workspace/demo/jni/demo.cpp:3:

pjsua.h:30:19: error: pjsip.h: no such file or directory

pjsua.h:33:21: error: pjmedia.h: no such file or directory

pjsua.h:36:27: error: pjmedia-codec.h: no such file or directory

and goes this...

please advice, 10xs,

nir

add pjsip include directory compiler call -i<location of pjsip include folder>. since haven't mentioned if using ide or makefile hard give more specific advice. if using android .mk file, add local_c_includes:=<path pjsip include folder> it.


Comments