< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate-users] error building for android


Hi,

I am trying to build resiprocate for android. I ran configure-android.sh, but when I run make I get the followng error:

make  all-recursive
make[1]: Entering directory `/home/ec2-user/android/resiprocate-1.9.6'
Making all in rutil
make[2]: Entering directory `/home/ec2-user/android/resiprocate-1.9.6/rutil'
Making all in dns/ares
make[3]: Entering directory `/home/ec2-user/android/resiprocate-1.9.6/rutil/dns/ares'
/bin/sh ../../../libtool --tag=CC   --mode=compile /home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I. -I../../..   --sysroot=/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm -I/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include -I/home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/include -I/home/ec2-user/android/full-source/bionic -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/stlport/stlport -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1 -DRESIP_OSTYPE_LINUX -DRESIP_ARCH_ARM -DRESIP_LARCH_ARM -D_REENTRANT -DRESIP_TOOLCHAIN_GNU  --sysroot=/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm -I/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include -I/home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/include -I/home/ec2-user/android/full-source/bionic -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/stlport/stlport -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1 -Wall -Wno-deprecated -MT ares__close_sockets.lo -MD -MP -MF .deps/ares__close_sockets.Tpo -c -o ares__close_sockets.lo ares__close_sockets.c
libtool: compile:  /home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I. -I../../.. --sysroot=/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm -I/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include -I/home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/include -I/home/ec2-user/android/full-source/bionic -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/stlport/stlport -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1 -DRESIP_OSTYPE_LINUX -DRESIP_ARCH_ARM -DRESIP_LARCH_ARM -D_REENTRANT -DRESIP_TOOLCHAIN_GNU --sysroot=/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm -I/home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include -I/home/ec2-user/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/include -I/home/ec2-user/android/full-source/bionic -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/stlport/stlport -I/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1 -Wall -Wno-deprecated -MT ares__close_sockets.lo -MD -MP -MF .deps/ares__close_sockets.Tpo -c ares__close_sockets.c  -fPIC -DPIC -o .libs/ares__close_sockets.o
In file included from /home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include/sys/types.h:34:0,
                 from /home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include/strings.h:42,
                 from /home/ec2-user/android/android-ndk-r9d/platforms/android-8/arch-arm/usr/include/stdlib.h:42,
                 from /home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/stlport/stlport/stdlib.h:50,
                 from ares__close_sockets.c:16:
/home/ec2-user/android/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1/stdint.h:32:23: fatal error: tr1/cstdint: No such file or directory
 #include <tr1/cstdint>
                       ^
compilation terminated.
make[3]: *** [ares__close_sockets.lo] Error 1
make[3]: Leaving directory `/home/ec2-user/android/resiprocate-1.9.6/rutil/dns/ares'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ec2-user/android/resiprocate-1.9.6/rutil'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/android/resiprocate-1.9.6'
make: *** [all] Error 2

Actually I modified configure-android.sh so that android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/include/tr1 would be included. That directory appears to contain cstdint, the file the error is complaining about.

Anyone got any ideas what the problem might be?

Thanks.

Jeff