0

about audio sink application

asked 2014-09-24 04:54:42 -0700

poka_poka gravatar image

updated 2014-09-24 06:46:22 -0700

hi

i build the alljoyn audio sdk from src according to the guide of getting started with the alljoyn audio service framework 1

so, i succeed to import sample codes(sink & source)

and, when i start a sink application, these error msgs are shown

=============================================

09-24 20:45:47.006: D/dalvikvm(23706): Trying to load lib /data/app-lib/org.alljoyn.services.audio.sink-1/libAllJoynAudioSink.so 0x4318da10

09-24 20:45:47.011: D/dalvikvm(23706): Added shared lib /data/app-lib/org.alljoyn.services.audio.sink-1/libAllJoynAudioSink.so 0x4318da10

09-24 20:45:47.011: D/dalvikvm(23706): No JNI_OnLoad found in /data/app-lib/org.alljoyn.services.audio.sink-1/libAllJoynAudioSink.so 0x4318da10, skipping init

09-24 20:45:47.016: I/AudioServiceSink(23706): AllJoyn Library version: v14.2.0

09-24 20:45:47.016: I/AudioServiceSink(23706): AllJoyn Library build info: AllJoyn Library v14.2.0 (Built Wed Sep 24 03:59:00 UTC 2014 by pokapoka - Git branch: '(no branch)' tag: 'v14.02' (+2 changes) commit ref: fecc309b69eec9ae1c0ed9d66a5aca71c963de3c)

09-24 20:45:47.016: I/AudioServiceSink(23706): AllJoyn Audio version: v0.0.1

09-24 20:45:47.016: I/AudioServiceSink(23706): AllJoyn Audio build info: AllJoyn Audio v0.0.1 (Built Wed Sep 24 04:00:03 UTC 2014 by pokapoka - Git branch: 'master' tag: '<none>' commit ref: 93a6bdc0e52b5ddb2e5c80e65e2ada353b555abe)</none>

**09-24 20:45:47.031: E/AudioServiceSink(23706): BusAttachment Connect failed.

09-24 20:45:47.031: D/AudioServiceSink(23706): Created BusAttachment and connected**

09-24 20:45:47.031: I/AudioServiceSink(23706): device friendly name: universal5410

09-24 20:45:47.031: E/AudioServiceSink(23706): BindSessionPort failed

09-24 20:45:47.031: E/AudioServiceSink(23706): Failed to advertise name

===============================================

shortly, i think that alljoyn functions do not work now.

but, i don't know the reason of this problem.

according to guide book, i change

    if (ER_OK == status) {
        status = mBusAttachment->Connect();

as

if (ER_OK == status) {
        status = mBusAttachment->Connect("unix:abstract=alljoyn");

at myalljoyncode.cc

but, noting is changed.

i guess that it is come from a mistake at android.mk

so, i upload my android.mk file

====================

LOCAL_PATH := $(call my-dir)

AllJoyn specifics

ALLJOYN_DIST := /alljoyn-android/core/alljoyn-14.06.00-rel

AUDIO_DIST := /allseen_14_02/core/alljoyn/build/android/arm/debug/dist/audio

include $(CLEAR_VARS)

LOCAL_MODULE := AllJoynAudioSink

TARGET_PLATFORM := android-18

LOCAL_C_INCLUDES := \ $(ALLJOYN_DIST)/cpp/inc \ $(AUDIO_DIST)/inc \ $(NDK_PLATFORMS_ROOT)/$(TARGET_PLATFORM)/arch-arm/usr/include \ $(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/include \ $(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include \ $(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.6/include \ $(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include

LOCAL_CFLAGS := -Wno-psabi -Wno-write-strings -DANDROID_NDK -DTARGET_ANDROID -DLINUX -DQCC_OS_GROUP_POSIX -DQCC_OS_ANDROID -DQCC_CPU_ARM -DANDROID

LOCAL_CPP_EXTENSION := .cc

LOCAL_SRC_FILES := \ AndroidJNIBridge.cc \ MyAllJoynListeners.cc \ MyAllJoynCode.cc

LOCAL_LDLIBS := \ -L$(NDK_PLATFORMS_ROOT)/$(TARGET_PLATFORM)/arch-arm/usr/lib \ -L$(ALLJOYN_DIST)/cpp/lib \ -L$(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/libs/armeabi \ -L$(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi \ $(ALLJOYN_DIST)/cpp/lib/BundledRouter.o \ $(AUDIO_DIST)/lib/liballjoyn_audio.a \ -lajrouter -lalljoyn -llog -lz -ldl -lssl -lcrypto -lm -lc -lstdc++ -lgcc -lgnustl_static -lOpenSLES

LOCAL_ARM_MODE := arm

include $(BUILD_SHARED_LIBRARY)

===========================

can i get your advise ?

thank u

best

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-01 16:10:12 -0700

bspencer gravatar image

You do not have the libAllJoynAudioSink.so added into the eclipse project libs/armeabi folder:

09-24 20:45:47.011: D/dalvikvm(23706): No JNI_OnLoad found in /data/app-lib/org.alljoyn.services.audio.sink-1/libAllJoynAudioSink.so 0x4318da10, skipping init
edit flag offensive delete publish link more

Comments

thank you for reply but i checked my sample application and libAllJoynAudioSink.so file existed at libs/armeabi folder so, i don't know what is the matter .. i upload my application directory at next answer check it please

poka_poka ( 2014-10-05 22:05:25 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-09-24 04:54:42 -0700

Seen: 156 times

Last updated: Oct 05 '14