如果遵循原始自述文件,则轻型服务框架无法构建

Light Service Framework Fails to build if original readme followed

如果我们按照原始自述文件构建 LSF,它总是在第一步失败。

一旦我 运行 "scons" 我得到:

scons: Reading SConscript files ... Checking c++ compiler support for -std=c++11 flag... yes Using OpenSSL crypto GTEST_DIR not specified skipping common unit test build GTEST_DIR not specified skipping About Service unit test build GTEST_DIR not specified skipping alljoyn_core unit test build

scons: warning: Ignoring missing SConscript '/home/dms/lighting_alljoyn_poligon/base/config/cpp/SConscript' File "/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript", line 28, in GTEST_DIR not specified skipping LSF unit test build

scons: warning: Ignoring missing SConscript '/home/dms/lighting_alljoyn_poligon/core/ajtcl/SConscript' File "/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript", line 164, in AttributeError: 'NoneType' object has no attribute 'Append': File "/home/dms/lighting_alljoyn_poligon/core/service_framework/SConstruct", line 5: env.SConscript('SConscript') File "/usr/lib/scons/SCons/Script/SConscript.py", line 546: return _SConscript(self.fs, *files, **subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec file in call_stack[-1].globals File "/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript", line 166: lamp_service_env.Append(LIBPATH = [ lamp_service_env.Dir('../ajtcl') ])

可以忽略警告,但底部的追加相关问题导致构建过程停止。

顺便说一句,我已经构建了包括基本服务在内的 alljoyn 框架,并且运行良好。

欢迎任何提示!

问题出在文件的结构上。

LSF 的原始 SConsript 文件试图访问 ../../base_tcl 文件夹,但 base_tcl 文件夹位于 services/ 文件夹下。

我尝试了两种解决方案并且都有效: 1.要么在 SConscript 中更改 base_tcl 文件夹的路径 2. 或者文件夹base_tcl可以移动到正确的路径

我认为这个问题是因为版本问题引起的。 15.04和15.09的区别