2014-07-01 44 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