为了编译 AllJoyn 音频服务,您将按照 wiki 页面上的说明从 core/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
现在您有了 liballjoyn_audio.so,您可以将其放在 armeabi 文件夹中,然后您就可以编译 Android 示例应用程序了。
资料来源:https ://ask.allseenalliance.org/question/154/unable-to-build-alljoyn-audio-service-framework-for-android/