【问题标题】:Iotivity 1.58 scons build failed for IOSIOS 的 Iotivity 1.58 scons 构建失败
【发布时间】:2017-07-09 11:13:10
【问题描述】:

我的构建环境:

OS:OS X El Capitan 10.11.6

Scons 版本:

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

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

编译命令:

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)
文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第 250 行:在 call_stack[-1].globals 中执行 file
文件“/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 行:返回 _SConscript(self.fs, *files, **subst_kw)
文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第 250 行:在 call_stack[-1].globals 中执行 file
文件“/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 行:返回 _SConscript(self.fs, *files, **subst_kw)
文件“/usr/local/Cellar/scons/2.5.1/libexec/scons-local/SCons/Script/SConscript.py”,第 250 行:在 call_stack[-1].globals 中执行 file
文件“/Users/John/Desktop/iotivity-1.2.1/build_common/darwin/SConscript”,第 29 行:elif bIn:

【问题讨论】:

  • @XJOHN 格式化您的帖子
  • 好的,现在清楚了吗?
  • @MeerDeen 感谢您的组建。

标签: ios scons iotivity


【解决方案1】:

代码序列对我来说看起来有问题,因为您可以在 if 语句链中渗透到失败的行,而无需设置 bIn。可能值得为此提交一个错误。

此处镜像文件:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-27
    • 2020-06-04
    • 2018-02-14
    • 2019-02-25
    相关资源
    最近更新 更多