Revision history [back]

click to hide/show revision 1
initial version

Help about Android integration

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
libcrypto.so (from Android 4.0 device)

Help about Android integration

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
libcrypto.so (from Android 4.0 device)

BTW my project setting is using the clang as compiler and llvm libc++ as the c++ lib. Do I need to download the AllJoyn source to recompiled it with the same settings? Could I still use the libs from the pre-compiled SDK?

Help about Android integration

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
libcrypto.so (from Android 4.0 device)

BTW my project setting is using the clang as compiler and llvm libc++ as the c++ lib. libc++. Do I need to download the AllJoyn source to recompiled recompile it with the same settings? Could I still use the libs from the pre-compiled SDK?

Help about Android integration

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
alljoyn-daemon
lbbdaemon-lib
(these 5 from the SDK)
libcrypto.so (from 
libssl.so
(these 2 from Android 4.0 device)

And my link args:

LOCAL_LDLIBS := \
-L$(ALLJOYN_PATH) \
-lGLESv2 -llog -lz -ldl \
-lcrypto -lssl \
-lajrouter -lalljoyn -lalljoyn-daemon -lbbdaemon-lib \
$(ALLJOYN_PATH)/BundledRouter.o

BTW my project setting is using the clang as compiler and llvm libc++. Do I need to download the AllJoyn source to recompile it with the same settings? Could I still use the libs from the pre-compiled SDK?

Help about Android integration

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
alljoyn-daemon
lbbdaemon-lib
(these 5 from the SDK)
libcrypto.so 
libssl.so
(these 2 from Android 4.0 device)

And my link args:

LOCAL_LDLIBS := \
-L$(ALLJOYN_PATH) \
-lGLESv2 -llog -lz -ldl \
-lcrypto -lssl \
-lajrouter -lalljoyn -lalljoyn-daemon -lbbdaemon-lib \
$(ALLJOYN_PATH)/BundledRouter.o

BTW my project setting is using the clang as compiler and llvm libc++. the abi is arm-v7a. Do I need to download git the AllJoyn source to recompile it with the same settings? Could I still use the libs from the pre-compiled SDK?

Help about Android integrationNDK link failed

Hi,

I am going to use the AllJoyn in my project and I just succeed to make it work on iOS. Now I'm working to make the it work on Android as well. After set the include path and the libs I get such link errors:

......
function BundledRouter::Stop(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Stop()'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'qcc::LoggerSetting::GetLoggerSetting(char const*, int, bool, __sFILE*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::ConfigDB::LoadConfig(ajn::Bus*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::Bus::Bus(char const*, ajn::TransportFactoryContainer&, char const*)
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::BusController(ajn::Bus&, ajn::AuthListener*)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::BusController::Init(qcc::String const&)'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::TCPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::UDPTransport::TransportName'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::authMechanism'
function BundledRouter::Start(ajn::NullTransport*): error: undefined reference to 'ajn::PasswordManager::password'
......

Is there anything else missing? Currently I have such files in the lib folder:

BundledRouter.o
libajrouter.a
liballjoyn.a
alljoyn-daemon
lbbdaemon-lib
(these 5 from the SDK)
libcrypto.so 
libssl.so
(these 2 from Android 4.0 device)

And my link args:

LOCAL_LDLIBS := \
-L$(ALLJOYN_PATH) \
-lGLESv2 -llog -lz -ldl \
-lcrypto -lssl \
-lajrouter -lalljoyn -lalljoyn-daemon -lbbdaemon-lib \
$(ALLJOYN_PATH)/BundledRouter.o

BTW my project setting is using the clang as compiler and the abi is arm-v7a. Do I need to git the AllJoyn source to recompile it with the same settings? Could I still use the libs from the pre-compiled SDK?