0

遵循此处 https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Build-Chromium的所有先决条件和说明

当我终于到达建筑部分时:

autoninja -C out\Default chrome

我收到错误:

Files\SQLXML:没有这样的文件或目录 lld-link:错误:lib 失败

显然 -libpath 参数未正确解析,尽管它在引号中:

"-libpath:C:\Program Files\SQLXML 4.0\bin\"

失败的命令:

忍者:进入目录 `out\Default' [18 个进程,68/41674 @ 17.3/s:3.9...ic_annotations/dynamic_annotations.lib

失败:obj/base/third_party/dynamic_annotations/dynamic_annotations.lib ninja -t msvc -e environment.x64 -- ....\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /lib /nologo "-libpath:D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\lib\x64" "-libpath:D:\Program Files (x86)\ Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\lib\x64" "-libpath:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "- libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "-libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\嗯\x64" "-libpath:D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\lib\x86" "-libpath:D:\Program Files (x86)\Microsoft VisualStudio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\lib\x86" "-libpath:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\嗯\x86" "-libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "-libpath:C:\Program Files (x86)\Windows Kits\10\ lib\10.0.18362.0\um\x86" "-libpath:C:\Program Files (x86)\SQLXML 4.0\bin\" "-libpath:C:\Program Files\SQLXML 4.0\bin\" /ignore:4221 / llvmlibthin /OUT:obj/base/third_party/dynamic_annotations/dynamic_annotations.lib @obj/base/third_party/dynamic_annotations/dynamic_annotations.lib.rsp"-libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" "-libpath:C:\Program Files (x86)\SQLXML 4.0\bin\" "-libpath :C:\Program Files\SQLXML 4.0\bin\" /ignore:4221 /llvmlibthin /OUT:obj/base/third_party/dynamic_annotations/dynamic_annotations.lib @obj/base/third_party/dynamic_annotations/dynamic_annotations.lib.rsp"-libpath:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" "-libpath:C:\Program Files (x86)\SQLXML 4.0\bin\" "-libpath :C:\Program Files\SQLXML 4.0\bin\" /ignore:4221 /llvmlibthin /OUT:obj/base/third_party/dynamic_annotations/dynamic_annotations.lib @obj/base/third_party/dynamic_annotations/dynamic_annotations.lib.rsp

Files\SQLXML:没有这样的文件或目录

lld-link:错误:lib 失败

4

1 回答 1

1

执行“gn gen out/Default”命令后,打开“out/Default/toolchain.ninja”文件并再次引用 -libpath 参数中的路径,并在 SQLXML 引用的所有出现处使用单引号:

"-libpath:'C:\Program Files (x86)\SQLXML 4.0\bin\'" "-libpath:C:\Program Files\SQLXML 4.0\bin\"

出于某种原因,仅对 SQLXML 的引用需要此更改

于 2019-12-17T17:06:59.323 回答