0

Unable to build Alljoyn Audio service framework for android

asked 2014-04-08 02:02:00 -0700

abhilash gravatar image

updated 2014-04-08 20:02:16 -0700

Linux Foundation Staff

Hi,

I am trying to cross compile audio service framework for android. I have downloaded android(Gingerbread) source. As per instructions on this link https://allseenalliance.org/docs-and-downloads/documentation/alljoyn-android-environment-setup-guide#unique_8 , I have build the "generic" version of Android. After that when i try to build audio service using following command :

scons OS=android CPU=arm ANDROID_NDK=/home/abhilash/android/android-ndk-r9d/ ANDROID_SRC=/home/abhilash/android_alljoyn/Android_SRC/ WS=off ANDROID_API=16

I am getting following error:

samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:21: package android.media does not exist
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:22: package android.os does not exist
samples/android/Source/Library/src/org/alljoyn/services/audio/AllJoynAudioServiceMediaPlayer.java:27: package android.util does not exist

There is no pre-compiled sdk for audio in SDK downloads. Can anyone please let me know if anything is missed out above?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-11 16:04:25 -0700

bspencer gravatar image

In order to compile the AllJoyn Audio Service you will do so from the core/alljoyn folder per the instructions on the wiki page: https://wiki.allseenalliance.org/develop/downloading_the_source
Next pull down the AllJoyn Audio Service into the services folder:

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

Now you are ready to compile AllJoyn and the Audio Service. To do that use the following and fill in the correct values for your system with [ ] meaning optional argument:

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

Now you have the liballjoyn_audio.so that you can place in the armeabi folder and you can compile the Android sample applications.

edit flag offensive delete publish link more

Comments

Hi, Thanks a lot for your reply. I am able to compile the audio service with above command. But if I don't put BUILD_SERVICES_SAMPLES=off, then I'm getting following error: ImportError: No module named configurejni: Thanks.

abhilash ( 2014-04-13 22:19:11 -0700 )edit

Correct, looks like there is an environment issue with the SConscript as it is now. You will need to load the samples into eclipse and then compile the java samples through eclipse for the time being.
As a friendly reminder, if the posting has been answered can you mark it as such?

bspencer ( 2014-04-14 10:35:20 -0700 )edit

Yes. Thank You once again.

abhilash ( 2014-04-14 22:25:49 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-04-08 02:02:00 -0700

Seen: 1,231 times

Last updated: Apr 11 '14