IOS的Iotivity 1.58 scons构建失败

时间:2017-02-20 08:54:22

标签: ios scons iotivity

我的构建环境:

OS:OS X El Capitan 10.11.6

Scons版本:

v2.5.1.rel_2.5.1:3735:9dc6cee5c168[MODIFIED], 
  

将框架复制到〜/ Desktop / iotivity-1.2.1 / extlibs / boost / ios / framework

构建cmd:

scons TARGET_OS=ios TARGET_ARCH=arm64

构建错误:

  

scons:阅读SConscript文件......   NameError:未定义名称'bIn':
  文件/Users/John/Desktop/iotivity-1.2.1/SConstruct,第28行:SConscript('build_common / SConscript')
  文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第604行:返回方法(* args,** kw)文件“/ usr / local / Cellar / scons / 2.5.1 / libexec / scons-local / SCons / Script / SConscript.py“,第541行:返回_SConscript(self.fs,* files,** subst_kw)
  在call_stack [-1] .globals中输入文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第250行:exec 文件
  文件“/Users/John/Desktop/iotivity-1.2.1/build_common/SConscript”,第426行:env.SConscript(target_os +'/ SConscript')
  文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第541行:return _SConscript(self.fs,* files,** subst_kw)
  在call_stack [-1] .globals中输入文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第250行:exec 文件
  文件“/Users/John/Desktop/iotivity-1.2.1/build_common/ios/SConscript”,第8行:env.SConscript('../ darwin / SConscript')
  文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第541行:return _SConscript(self.fs,* files,** subst_kw)
  在call_stack [-1] .globals中输入文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第250行:exec 文件
  文件“/Users/John/Desktop/iotivity-1.2.1/build_common/darwin/SConscript”,第29行:elif bIn:

1 个答案:

答案 0 :(得分:0)

代码序列看起来很麻烦,因为你可以通过if语句链渗透到失败的行而不设置bIn。可能值得在这个上提交一个错误。

此处镜像的文件:

https://github.com/iotivity/iotivity/blob/1.2-rel/build_common/darwin/SConscript