Estou tentando compilar uma versão do Windows do Chromium. Segui as diretrizes mencionadas aqui e estou recebendo um erro na última parte, ao executar o seguinte comando:
gn gen out/Default
Depois de dar uma olhada no código (em python) causando o erro, notei isso:
for path in env['LIB'].split(';'):
if os.path.exists(os.path.join(path, 'User32.Lib')):
vc_lib_um_path = os.path.realpath(path)
break
então
assert vc_lib_um_path
Esta última linha está causando o erro, o que me faz pensar que o problema pode ser devido ao fato de que o programa não pode encontrar "User32.lib". Estou em um sistema Windows 10 (64 bits) e gostaria de saber se há uma variável de ambiente a ser atualizada para que essa biblioteca possa ser encontrada. Estou aberto a sugestões.
Minha variável de caminho:
Eamensagemdeerrocompleta:
Traceback(mostrecentcalllast):File"D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 274, in <module>
main()
File "D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 269, in main
assert vc_lib_um_path
AssertionError
ERROR at //build/toolchain/win/BUILD.gn:400:22: Script returned non-zero exit code.
x64_toolchain_data = exec_script("setup_toolchain.py",
^----------
Current dir: D:/Work/chromium/src/out/Default/
Command: D:/Work/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe -- D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py "C:\Program Files (x86)/Microsoft Visual Studio/2017/Community" "C:\Program Files (x86)\Windows Kits" "C:\WINDOWS\Sysnative;C:\WINDOWS/SysWOW64" win x64 environment.x64 false
Returned 1 and printed out:
vc_bin_dir = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX64\x64" include_flags_I = "\"/IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\ATLMFC\include\" \"/IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include\" \"/IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\" \"/IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared\" \"/IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um\" \"/IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt\" \"/IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\cppwinrt\"" include_flags_imsvc = "\"-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\ATLMFC\include\" \"-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include\" \"-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\" \"-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared\" \"-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um\" \"-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt\" \"-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\cppwinrt\"" vc_lib_path = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\lib\x64" vc_lib_atlmfc_path = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\ATLMFC\lib\x64"
See //BUILD.gn:60:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 274, in <module>
main()
File "D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 269, in main
assert vc_lib_um_path
AssertionError
Traceback (most recent call last):
File "D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 274, in <module>
main()
File "D:/Work/chromium/src/build/toolchain/win/setup_toolchain.py", line 269, in main
assert vc_lib_um_path
AssertionError
Obrigado