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/6b2e9d4e/attachment.html>