NDK Application.mk file

2 posts / 0 new
Last post
NDK Application.mk file
rcorbeil's picture
Offline
Joined
06/03/2011 - 10:26
Posted
Tue, 03/27/2012 - 15:04

Hi,

I have successfully built the AllJoyn daemon for linux, and am now targeting Android. Using the NDK I am coming across some compilation problems, described in a thread here http://source-android.frandroid.com/ndk/docs/CPLUSPLUS-SUPPORT.html, having to do with RTTI support .  The solution given is to modify the Application.mk with APP_STL := gnustl_static.

 

My question is, does the AllJoyn SCONS build environment support an Application.mk file?  If not, how would I achieve the same effect by modifying a SConscript, and which SConscript file would you suggest?

Thanks, Ryn

Ubuntu 11.10

Logfile output

/home/rcorbeil/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -o alljoyn_core/build/android/arm/debug/obj/daemon/DaemonFLQTransport.o -c -fno-exceptions -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -Wno-unused -Wa,--noexecstack -Wall -pipe -fno-strict-aliasing -funswitch-loops -finline-limit=300 -O0 -g -DQCC_OS_GROUP_POSIX -DQCC_OS_ANDROID -DQCC_CPU_ARM -DANDROID -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DAPP_STL=gnustl_static -DQCOM_INLINE=__inline__ -Istlport/cne/stlport/stlport -I/home/rcorbeil/android-ndk-r7b/platforms/android-8/arch-arm/usr/include -I/home/rcorbeil/android-ndk-r7b/sources/cxx-stl/system/include -I/home/rcorbeil/android-sdk-linux/external/bluetooth/bluez/include -I/home/rcorbeil/android-sdk-linux/external/openssl/include -I/usr/include -I/usr/include/c++/4.6 -I/usr/include/c++/4.6/i686-linux-gnu -Icommon/inc -Ialljoyn_core/inc -Ialljoyn_core/src -Ialljoyn_core/daemon -I/usr/include/flashlinq-api-6 -I/home/rcorbeil/flq/src/platform/osal/include -I/home/rcorbeil/flq/src/platform/osal/Linux/include -I/home/rcorbeil/flq/src/infra -I/home/rcorbeil/flq/src/infra/include -I/usr/include -Ialljoyn_core/daemon -Ialljoyn_core/build/android/arm/debug/obj -Ialljoyn_core/src -I/usr/lib/jvm/jdk1.6.0_30/include -I/usr/lib/jvm/jdk1.6.0_30/include/win32 -I/usr/lib/jvm/jdk1.6.0_30/include/linux alljoyn_core/daemon/DaemonFLQTransport.cc

/home/rcorbeil/flq/src/infra/include/errno.hpp: In static member function 'static const std::type_info& Qft::Errno::type()':

/home/rcorbeil/flq/src/infra/include/errno.hpp:136: error: must #include <typeinfo> before using typeid

 

 

Re: NDK Application.mk file
Nikhil Dabhade Moderator
Nikhil Dabhade's picture
Offline
Joined
01/27/2011 - 17:39

Hi Ryn,

1. Are you using the stlport that we point out to in our download instructions ? I ask this because we have a restricted version of the stlport which does not have things like RTTI so we should not be seeing the RTTI stuff.

2. We have an Application.mk for the Java Alljoyn daemon but it is not used by Scons. It is used when you are building the Java AllJoyn daemon assuming you have the required libraries like liballjoyn_daemon in place.

I am trying to understand if you got this error for a custom alljoyn build that you are trying to use or in the standard AllJoyn build process.

Let me know.

Regards,
Nikhil