这是我的构建环境
- 操作系统:OS X El Capitan 10.11.5
- Android SDK 构建工具:24.0.1
- 安卓 NDK:12
- 斯康版本:2.5.0
这是构建命令
- SCons TARGET_OS=android TARGET_ARCH=armeabi-v7a TARGET_TRANSPORT=ALL RELEASE=1 SECURED=0 ANDROID_HOME=/Users/KangSengGil/Library/Android/sdk ANDROID_NDK=/Users/KangSengGil/Library/Android/sdk/ndk-bundle ANDROID_GRADLE=/Library /gradle-2.14.1/bin/gradle scons:正在读取 SConscript 文件...
要获得 .aar 文件,我必须构建 Iotivity 项目。但 Scons build 向我显示了一些错误。我不知道我如何解决这个问题。请回答这个问题!!谢谢
下面显示错误
NameError: name 'SCons' is not defined:
File "/Users/KangSengGil/Documents/iotivity-1.1.0/SConstruct", line 28:
SConscript('build_common/SConscript')
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 604:
return method(*args, **kw)
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "/Users/KangSengGil/Documents/iotivity-1.1.0/build_common/SConscript", line 386:
env.SConscript(target_os + '/SConscript')
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "/Users/KangSengGil/Documents/iotivity-1.1.0/build_common/android/SConscript", line 241:
SConscript(env.get('SRC_DIR') + '/extlibs/boost/SConscript')
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 604:
return method(*args, **kw)
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "/Users/KangSengGil/Documents/iotivity-1.1.0/extlibs/boost/SConscript", line 35:
raise SCons.Errors.EnvironmentError(msg)