Make sure you have a config_site.h file in the proper location: pjlib/include/pj/config_site.h with the following entries: #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> On Fri, Apr 11, 2014 at 9:07 PM, Saeed Abbassi <saeed144 at gmail.com> wrote: > Dear all, > > I am trying to compile pjsip 2.2.1 for Android, > > I have come so far as > > $ cd /path/to/your/pjsip/dir > $ export ANDROID_NDK_ROOT=/path_to_android_ndk_dir > $ ./configure-android > $ make dep && make clean && make > > When I get this error > > /home/avant/adt-bundle-linux-x86_64-20130917/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc > -c -Wall -DPJ_AUTOCONF=1 > -I/home/avant/adt-bundle-linux-x86_64-20130917/android-ndk-r9d/platforms/android-19/arch-arm/usr/include > -I/home/avant/adt-bundle-linux-x86_64-20130917/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include > -I/home/avant/adt-bundle-linux-x86_64-20130917/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include > -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 > -I/data/work/voip/pjproject-2.2.1/third_party/build/speex > -I/data/work/voip/pjproject-2.2.1/third_party/speex/include > -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 > -I/data/work/voip/pjproject-2.2.1/third_party/build/srtp > -I/data/work/voip/pjproject-2.2.1/third_party/srtp/crypto/include > -I/data/work/voip/pjproject-2.2.1/third_party/srtp/include > -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE > -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include > -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include > -I../.. \ > -o output/pjmedia-audiodev-arm-unknown-linux-androideabi/errno.o \ > ../src/pjmedia-audiodev/errno.c > ../src/pjmedia-audiodev/errno.c:23:26: fatal error: portaudio.h: No such > file or directory > # include <portaudio.h> > > compilation terminated. > make[2]: *** > [output/pjmedia-audiodev-arm-unknown-linux-androideabi/errno.o] Error 1 > make[2]: Leaving directory `/data/work/voip/pjproject-2.2.1/pjmedia/build' > make[1]: *** [libpjmedia-audiodev-arm-unknown-linux-androideabi.a] Error 2 > make[1]: Leaving directory `/data/work/voip/pjproject-2.2.1/pjmedia/build' > make: *** [all] Error 1 > > > > It looks strange to me, because all those dependancies files are there, > but somehow when it want to compile codes > under pjproject-2.2.1/pjmedia/src/pjmedia, they are included. > > I need to compile it with port-audio, so "--enable-ext-sound" is not an > option for me. > > Is there any flag that I am missing? > > Thanks, > Saeed > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- David Wafula -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140412/32ddc0a0/attachment.html>