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:[email protected]] On Behalf Of xiaoyanit
Sent: Wednesday, November 18, 2015 10:35 PM
To: 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/20151119/d753d0fb/attachment.html>

Reply via email to