Hi, all.

I got a problem which is not working right about android sample source 
compiling.
I usually worked with Linux source but I now need to deal with android sample 
source.

My compile environment spectation is as below.

1. VMWARE WORKSTATION 12
2. UBUNTU 64bit 14.04 LTS
3. Source from web cite not using gerrit (iotivity 1.1.0)
4. root account
5. /usr/local/iotivity-1.1.0

I followed all the stuffs from 
https://www.iotivity.org/documentation/linux/getting-started (Linux)
https://wiki.iotivity.org/android_build_instructions (android)

But when I use "$scons TARGET_OS=android" in iotivity-1.1.0, it didn't work 
well.

It makes errors such as,

1. 
 Cannot build hue sample. Please install libcurl.
* Example (Ubuntu):
*   sudo apt-get install libcurl4-openssl-dev
*   sudo ldconfig
* Hint: check with pkg-config --libs libcurl and clear scons cache.
* Skipping hue sample build. (I installed this but it occured again.)

2.
 ... 1 more
Caused by: java.io.IOException: Cannot run program 
"/usr/local/iotivity-1.1.0/extlibs/android/sdk/android-sdk-linux/build-tools/20.0.0/aapt"
 (in directory 
"/usr/local/iotivity-1.1.0/service/resource-container/android/resource-container"):
 error=2, No such file or directory
 at 
net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
 ... 3 more
Caused by: java.io.IOException: error=2, No such file or directory
 ... 4 more

BUILD FAILED 

3.
:resource-container:preBuild UP-TO-DATE
:resource-container:preDebugBuild UP-TO-DATE
:resource-container:checkDebugManifest
:resource-container:prepareDebugDependencies
:resource-container:compileDebugAidl UP-TO-DATE
:resource-container:compileDebugRenderscript UP-TO-DATE
:resource-container:generateDebugBuildConfig UP-TO-DATE
:resource-container:generateDebugAssets UP-TO-DATE
:resource-container:mergeDebugAssets UP-TO-DATE
:resource-container:generateDebugResValues UP-TO-DATE
:resource-container:generateDebugResources UP-TO-DATE
:resource-container:packageDebugResources UP-TO-DATE
:resource-container:processDebugManifest UP-TO-DATE
:resource-container:processDebugResources FAILED
FAILURE: Build failed with an exception. 

I think that I set environment variables right too. 

"$gedit /etc/profile"
export JAVA_HOME=/usr/local/java
export CLASSPATH=.:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin
export ANDROID_NDK=/usr/local/ndk
export GRADLE_HOME=/usr/local/gradle/bin 

I did this compile in gerrit mode too. But it is still not working.

So please give me an advice which I can try.

Best regards,
Daecheon

-------------- next part --------------
HTML ?????? ??????????????...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160711/5be18864/attachment.html>

Reply via email to