Help for building Audio Service SDK Android

asked 2014-11-15 08:52:17 -0700

papakorn gravatar image

Hello ,

I'm trying to compile the source code of Alljoyn audio service. Here are the commands from the "getting_started_audio_framework_android" document :

"cd allseen_14_02/core/alljoyn export ANDROID_NDK =<path android="" ndk="" to=""> export ANDROID_SRC =<path android="" folder="" root="" src="" to=""> export ANDROID_SDK =<path android="" sdk="" to=""> export JAVA_HOME="/usr/lib/jvm/java-6-sun" export CLASSPATH="/usr/share/java/junit4.9.jar:$ANDROID_SDK/platforms/ <version android="" of="" sdk="" the="">/android.jar” $ scons OS=android CPU=arm WS=off SERVICES=audio BINDINGS=cpp,java BUILD_SERVICES_SAMPLES=off"</version></path></path></path>

But I don't understand, what is supposed to be the ANDROID_SRC folder ?

Yours sincerely, François

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2014-11-15 10:41:08 -0700

congngale gravatar image

updated 2014-11-17 06:51:15 -0700

Hi papakorn,

It is simple, because when building Alljoyn framework for Android then we need the libraries in Android Source. You can get the ANDROID_SRC from Android Source. And you should care about the Android version that you want to run your application because you need build the exactly the libraries for that version.

This is my setting to build Audio service:

  1. Check out source code Alljoyn core from Alljoyn git
  2. Check out audio service from Audio git
  3. Copy audio service into Alljoyn_dir/core/alljoyn/services (same level with about service)
  5. Cd into audio folder(Alljoyn_dir/core/alljoyn/services/audio) and build the audio service by scons command: scons OS=android CPU=arm BINDINGS=cpp,java WS=off
  6. When it done you can get alljoynaudioservicelibrary.jar library for the audio service at build/android/arm/debug/dist/audio/jar/.
edit flag offensive delete publish link more


Hi congngale, thank you for answering ! You mean that my app will work only for one version ?

papakorn ( 2014-11-15 10:46:57 -0700 )edit

@papakorn, Because the libraries that Alljoyn using maybe not work on every version of Android. That is problem of the Android OS, if you use the libraries was built for Android 2.2 then your app can be not working on Android 4.2.

congngale ( 2014-11-15 10:55:21 -0700 )edit

Ok ! I get this error : "Python error: <stdin> is a directory, cannot continue" with scons command ... any idea ?

papakorn ( 2014-11-16 05:27:47 -0700 )edit

Can you show me more information, your full error log?

congngale ( 2014-11-16 20:19:12 -0700 )edit

There is nothing more than that ... "scons BINDINGS=core,cpp SERVICES=about,audio OS=android CPU=arm ANDROID_NDK=<~/Development\ tools/android-ndk-r10c> ANDROID_SRC=<~/Development\ tools/android-sources> ANDROID_SDK=<~/Development\ tools/android-sdk-linux> BUILD_SERVICES_SAMPLES=off WS=off Python error: <stdin> is a directory, cannot continue"

papakorn ( 2014-11-17 03:35:35 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-11-15 08:52:17 -0700

Seen: 413 times

Last updated: Nov 17 '14