[pjsip] Not able to build Pjsip for android.

zhongmin 83962496 at qq.com
Thu May 8 01:48:44 EDT 2014


you should add a config_site.h in pjlib/include/pj,and type these:
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>
and run configure-android command
I have compiled pjsua2-android in ubuntu,if you need,welcome reply to me:)
On 2014?05?07? 19:41, Swapnil Desai wrote:
> Hi All,
>
> Hi i am using the following link to build PJSip library for android.I 
> am using windows-8 machine.
>
> PJSip for android 
> <https://trac.pjsip.org/repos/wiki/Getting-Started/Android> (https://trac.pjsip.org/repos/wiki/Getting-Started/Android)
>
> I have installed *Cygwin 1.7.29* and android NDK *android-ndk-r9d*.
>
> When i run *configure-android* command i am getting following 
> error,May be because of the cross compiler GCC used in android 
> toolchain. Can anybody help me to resolve this issue?
>
> Error message is marked in red color.
>
>  ./configure-android
>
> configure-android: APP_PLATFORM not specified, using android-19
>
> configure-android: TARGET_ABI not specified, using armeabi
>
> configure-android: calling ./configure with env vars:
>
>  CC = 
> /cygdrive/d/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
>
>  CXX = 
> /cygdrive/d/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++
>
>  CFLAGS = 
>  -I/cygdrive/d/Development/android-ndk-r9d/platforms/android-19/arch-arm/usr/include 
> -I/cygdrive/d/Development/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include 
> -I/cygdrive/d/Development/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include
>
>  CXXFLAGS =  -shared 
> --sysroot=/cygdrive/d/Development/android-ndk-r9d/platforms/android-19/arch-arm 
> -fexceptions -frtti
>
>  LDFLAGS =  -nostdlib 
> -L/cygdrive/d/Development/android-ndk-r9d/platforms/android-19/arch-arm/usr/lib/ 
> -L/cygdrive/d/Development/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/
>
>  LIBS = 
> /cygdrive/d/Development/android-ndk-r9d/platforms/android-19/arch-arm/usr/lib/crtbegin_so.o 
> -lgnustl_static  -lc -lgcc
>
>  AR = 
> /cygdrive/d/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-ar
>
>  RANLIB = 
> /cygdrive/d/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-ranlib
>
> aconfigure: WARNING: if you wanted to set the --build type, don't use 
> --host.
>
>   If a cross compiler is detected then cross compile mode will be used
>
> checking build system type... i686-pc-cygwin
>
> checking host system type... arm-unknown-linux-androideabi
>
> checking target system type... arm-unknown-linux-androideabi
>
> checking for arm-linux-androideabi-gcc... 
> /cygdrive/d/Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc
>
> checking whether the C compiler works... no
>
> aconfigure: error: in `/cygdrive/i/PJsipsvn':
>
> aconfigure: error: C compiler cannot create executables
>
> See `config.log' for more details
>
>
> Thanks and Regards
> Swapnil Desai,
> Senior Software Consultant,
> AAHLAAD/Software,
> #7, 2nd Floor, 10th main, Jeevan Bheema nagar main road,
> off Indiranagar 80ft road, Bangalore 560075, India
> ph: 7411572134/9738480117
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140508/db5b6fd6/attachment-0002.html>


More information about the pjsip mailing list