2014-07-01 42 views
0

我试着建立库。 alljoyn音频接收器,但建立此时有错误。AllJoyn水槽Ndk生成

这eror:

[armeabi] Compile++ arm : AllJoynSink <= AndroidJNIBridge.cc 
jni/AndroidJNIBridge.cc:18:35: fatal error: alljoyn/BusAttachment.h: No such file or directory 
make.exe: *** [obj/local/armeabi/objs/AllJoynAudioSink/AndroidJNIBridge.o] Error 1 

任何解决方案?由于-Yossi-

+0

您的包含pahts设置不正确。 –

+0

是的,也许。我开始学习alljoyn .. 但我从github.com/roa/audio/tree/master/samples/android/Sink/src/org/alljoyn/services/audio/sink下载这个项目 i'米尝试建立这个项目,仍然错误.. – Yossi

回答

0

为了编译AllJoyn音频服务,你会从核心这么做/每wiki页面上的说明alljoyn文件夹:https://wiki.allseenalliance.org/develop/downloading_the_source 接下来拉下AllJoyn音频服务到服务的文件夹:

export AJ_ROOT=`pwd`/alljoyn 
git clone https://git.allseenalliance.org/gerrit/multimedia/audio.git $AJ_ROOT/services/ 

现在您已准备好编译AllJoyn和音频服务。要做到这一点使用以下并填写正确的价值观为你的系统有[]意思是可选的参数:

scons BINDINGS=core,cpp SERVICES=about,audio OS=android CPU=arm ANDROID_NDK=<root of the nkd location> ANDROID_SRC=<root folder of android src> ANDROID_SDK=<root of the android sdk> [ANDROID_TARGET=<name of target if different then generic>] BUILD_SERVICES_SAMPLES=off WS=off 

现在你有,你可以在armeabi文件夹的地方,你可以编译了Android的liballjoyn_audio.so样本申请。

来源:https://ask.allseenalliance.org/question/154/unable-to-build-alljoyn-audio-service-framework-for-android/

+1

感谢兄弟!我可以建立这个。我从Android.mk编辑目录。 – Yossi