Following the pattern established in a prior thread ( https://ask.allseenalliance.org/question/855/error-building-osandroid-cpuarm-bindingscppjava-on-linux/ ), I endeavored to get AllJoyn for Android building on my Mac (OSX Mavericks 10.9.4). I run the following command from either the AllJoyn root folder or the alljoyn_java folder with the same results:
scons OS=android CPU=arm BINDINGS=cpp,java ANDROID_SDK=/Library/adt-bundle-mac-x86_64-20140702/sdk ANDROID_NDK=/usr/local/android-ndk-r9d ANDROID_SRC=~/repos/CDP/external/android-src
This same command line, ran on my Ubuntu machine (with appropriate path modifications) executes to completion successfully. On OSX, the build gets fairly far before failing, but eventually returns:
scons: *** [alljoyn_java/samples/android/chat/libs/armeabi/liballjoyn_java.so] Source `build/android/arm/debug/dist/java/lib/liballjoyn_java.so' not found, needed by target `alljoyn_java/samples/android/chat/libs/armeabi/liballjoyn_java.so'.
Any ideas on what might be going on?
Thanks for the suggestions. I haven't tried commenting out the line that builds the samples, but I did try just building the target, by executing the following:
scons OS=android CPU=arm BINDINGS=cpp,java ANDROID_SDK=/Library/adt-bundle-mac-x86_64-20140702/sdk ANDROID_NDK=/usr/local/android-ndk-r9d ANDROID_SRC=~/repos/CDP/external/android-src build/android/arm/debug/dist/java/lib/liballjoyn_java.so
That results in the same error:
scons: Reading SConscript files ... Building bindings: cpp, java Building services: about BULLSEYE_BIN not specified GTEST_DIR not specified skipping common unit test build BULLSEYE_BIN not specified GTEST_DIR not specified skipping alljoyn_core unit test build scons: warning: Ignoring missing SConscript 'alljoyn_core/win8_sdk/SConscript' File "/Users/xxx/xxx/xxx/external/AllJoyn/alljoyn_core/SConscript", line 160, in <module> scons: done reading SConscript files. scons: Building targets ... scons: *** Do not know how to make File target `build/android/arm/debug/dist/java/lib/liballjoyn_java.so' (/Users/xxx/xxx/xxx/external/AllJoyn/build/android/arm/debug/dist/java/lib/liballjoyn_java.so). Stop. scons: building terminated because of errors.
Not sure if excluding the samples will make any difference if the target itself won't build.
Any other ideas?
Thanks in advance, John
One more update:
I have now built with the samples excluded. Build succeeds, but does not build the library in question. Adding the samples back in after successfully building without, still fails in exactly the same manner.