我正在尝试使用 VS2013 express Desktop 在 64 位 Windows 上构建 chromium(浏览器)。当我运行 'ninja' 来构建 chromium 时,它失败并出现以下错误:“错误 C2220:警告被视为错误 - 没有生成 'object' 文件”有没有人知道我必须做些什么来避免它?
以下是我运行“忍者”时出现的结果:
E:\chrome_build\depot_tools\src>ninja –C out\Debug chrome
ninja: Entering directory `out\Debug'
[352/18195] CXX obj\third_party\snappy\src\snappy.snappy-stubs-internal.obj
FAILED: ninja -t msvc -e environment.x86 -- "E:chrome_build\depot_tools\win_too
lchain\vs2013_files\VC\bin\cl.exe" /nologo /showInculdes /FC @obj\third_party\sn
appy\src\snappy.snappy-stubs-internal.obj.rsp /c ..\..\third_party\snappy\src\sn
appy-stubs-internal.cc /Foobj\third_party\snappy\src\snappy.snappy-stubs-interna
l.obj /Fdobj\third_party\snappy\snappy.cc.pdb
e:\chrome_build\depot_tools=src\third_party\snappy\src\snappy-stubs-internal.h :
error C2220: warning treated as error - no 'object' file generated
e:\chrome_build\depot_tools=src\third_party\snappy\src\snappy-stubs-internal.h :
warning C4819: The file contains a character that cannot be represented in the
current code page (949). Save the file in Unicode format to prevent data loss
[352/18195] CXX obj\third_party\snappy\src\snappy.snappy.obj
FAILED: ninja -t msvc -e environment.x86 -- "E:chrome_build\depot_tools\win_too
lchain\vs2013_files\VC\bin\cl.exe" /nologo /showInculdes /FC @obj\third_party\sn
appy\src\snappy.snappy.obj.rsp /c ..\..\third_party\snappy\src\snappy.cc /Foobj\
third_party\snappy\src\snappy.snappy.obj /Fdobj\third_party\snappy\snappy.cc.pdb
e:\chrome_build\depot_tools=src\third_party\snappy\src\snappy-stubs-internal.h :
error C2220: warning treated as error - no 'object' file generated
e:\chrome_build\depot_tools=src\third_party\snappy\src\snappy-stubs-internal.h :
warning C4819: The file contains a character that cannot be represented in the
current code page (949). Save the file in Unicode format to prevent data loss
[352/18195] CXX obj\device\hid\device_hid.hid_service_win.obj
ninja: build stopped: subcommand failed.
E:\chrome_build\depot_tools\src>