Hi,

The IoTivity build system should download the correct Android SDK and NDK and 
gradle version when you do not specify their locations.

Please try to run this:
scons TARGET_OS=android TARGET_ARCH=x86_64 TARGET_TRANSPORT=IP  RELEASE=1  
SECURED=0

Hauke

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of xiaoyanit
Sent: Freitag, 20. November 2015 17:11
To: Rahul, Rahul
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] IoTivity 1.0 Build error in MAC OX 10.10.5

Dear Rahul:
    I has changed the ANDROID_HOME path, and use the script download the 
latested sdk for mac ox and run command look like this:
[cid:image001.png at 01D123BE.44C38E00]

BR xiaoyanit
At 2015-11-20 01:18:01, "Rahul, Rahul" <rahul.rahul at 
intel.com<mailto:rahul.rahul at intel.com>> wrote:

Hi Xiaoyanit,

>From the error, it seems like you need to update your android build-tools 
>version to 20 or newer.

  File "/Users/xiaoyan/IOTivity/iotivity/build_common/android/SConscript", line 
235:
    if platform_ver == '' or int(platform_ver) > 20:

You can check the build-tools version at 
=/Users/xiaoyan/xiaoyan/developer_IDE/adt-bundle-mac-x86_64/sdk/build-tools
Let me know if updating the build-tools fixes your problem or if you still see 
this error.

From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:iotivity-dev-bounces at 
lists.iotivity.org<mailto:[email protected]>] On Behalf 
Of xiaoyanit
Sent: Wednesday, November 18, 2015 10:35 PM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: [dev] IoTivity 1.0 Build error in MAC OX 10.10.5

Hi all:
    I fork iotivity-1.0.0 and set the build environment on Mac OX 10.10.5 . But 
faild always . Wht's wrong with my code , How can I build complete ?

My build command fllow:

scons TARGET_OS=android TARGET_ARCH=x86_64 TARGET_TRANSPORT=IP  RELEASE=1  
SECURED=0 
ANDROID_HOME=/Users/xiaoyan/xiaoyan/developer_IDE/adt-bundle-mac-x86_64/sdk 
ANDROID_NDK=/Users/xiaoyan/xiaoyan/developer_IDE/android-ndk-r10 
GRADLE_HOME=/Users/xiaoyan/Gradle/gradle-2.2.1 
ANDROID_GRADLE=/Users/xiaoyan/Gradle/gradle-2.2.1-all.zip

------------------------------------------------------------------------------------------------------------------------------
Meeage error:


scons: Reading SConscript files ...

/Users/xiaoyan/xiaoyan/developer_IDE/android-ndk-r10/build/core/add-application.mk:209:
 *** Android NDK: Aborting...    .  Stop.

NameError: name 'platform_ver' is not defined:

  File "/Users/xiaoyan/IOTivity/iotivity/SConstruct", line 28:

    SConscript('build_common/SConscript')

  File 
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py", 
line 614:

    return method(*args, **kw)

  File 
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py", 
line 551:

    return _SConscript(self.fs, *files, **subst_kw)

  File 
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py", 
line 260:

    exec _file_ in call_stack[-1].globals

  File "/Users/xiaoyan/IOTivity/iotivity/build_common/SConscript", line 358:

    env.SConscript(target_os + '/SConscript')

  File 
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py", 
line 551:

    return _SConscript(self.fs, *files, **subst_kw)

  File 
"/usr/local/Cellar/scons/2.4.0/libexec/scons-local/SCons/Script/SConscript.py", 
line 260:

    exec _file_ in call_stack[-1].globals

  File "/Users/xiaoyan/IOTivity/iotivity/build_common/android/SConscript", line 
235:

    if platform_ver == '' or int(platform_ver) > 20:

------------------------------------------------------------------------------------------------------------------------------













-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151120/7bee017b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 108310 bytes
Desc: image001.png
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151120/7bee017b/attachment.png>

Reply via email to