当我尝试在Windows 10机器上构建omaha时,我收到了一些警告和致命错误。
C:\updater\omaha\omaha>hammer
scons: warning: No installed VCs
File "C:\chromium\upd\swtoolkit\site_scons\site_init.py", line 426, in SiteInitMain
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\chromium\upd\swtoolkit\site_scons\site_init.py", line 426, in SiteInitMain
scons: Reading SConscript files ...
scons: warning: No installed VCs
File "C:\chromium\upd\swtoolkit\site_scons\site_tools\target_platform_windows.py", line 283, in generate
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\chromium\upd\swtoolkit\site_scons\site_tools\target_platform_windows.py", line 283, in generate
Using precompiled headers.
Building versions: 1.3.99.0
python C:\chromium\upd\omaha\omaha\tools\proxy_clsid_utils.py
AttributeError: SConsEnvironment instance has no attribute 'WiX':
File "C:\chromium\upd\omaha\omaha\main.scons", line 992:
BuildEnvironments(_environments)
File "C:\chromium\upd\swtoolkit\site_scons\site_init.py", line 276:
e.ExecuteDefer()
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Environment.py", line 224:
return apply(self.method, nargs, kwargs)
File "C:\chromium\upd\swtoolkit\site_scons\site_tools\defer.py", line 171:
func(fenv)
File "C:\chromium\upd\swtoolkit\site_scons\site_init.py", line 203:
exports={'env': ec}, duplicate=0)
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 553:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 262:
exec _file_ in call_stack[-1].globals
File "C:\chromium\upd\omaha\omaha\recovery\build.scons", line 104:
env.BuildSConscript('repair_exe')
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Environment.py", line 224:
return apply(self.method, nargs, kwargs)
File "C:\chromium\upd\swtoolkit\site_scons\site_tools\environment_tools.py", line 191:
env.SConscript(script_file, exports={'env': env.Clone()})
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 553:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 262:
exec _file_ in call_stack[-1].globals
File "C:\chromium\upd\omaha\omaha\recovery\repair_exe\build.scons", line 37:
env.BuildSConscript(subdir)
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Environment.py", line 224:
return apply(self.method, nargs, kwargs)
File "C:\chromium\upd\swtoolkit\site_scons\site_tools\environment_tools.py", line 191:
env.SConscript(script_file, exports={'env': env.Clone()})
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 553:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "C:\Python24\Lib\site-packages\scons-1.3.1\SCons\Script\SConscript.py", line 262:
exec _file_ in call_stack[-1].globals
File "C:\chromium\upd\omaha\omaha\recovery\repair_exe\msp\build.scons", line 156:
old_msi, new_msi = CreateMsiInstallerFiles(
File "C:\chromium\upd\omaha\omaha\recovery\repair_exe\msp\build.scons", line 60:
old_unsigned_output = old_unsigned_env.WiX(
我花了很多时间调试警告,似乎scons 1.3.1不支持visual studio 2015,但google的构建 instructions意味着相反。此外,还不完全清楚错误是否取决于警告。请帮助解决问题。
答案 0 :(得分:0)
我解决了这个问题,结果是新版本的wix工具集有bin文件夹,所有的工具和官方文档和教程包含错误的环境变量。顺便说一句,警告对构建过程完全没有影响。 所以可能没有必要在类似的情况下调试任何代码,只需要检查环境。