Inclusão de User32.Lib

0

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

    
por user1319182 04.04.2018 / 22:30

1 resposta

2

I'm on a Windows 10 (64 bits) system, and I'd like to know if there is an environment variable to be updated so that this library can be found. I'm open to any suggestions.

De acordo com as instruções de criação, você deve instalar o 10.0.15063 Windows 10 SDK .

You must have the version 10.0.15063 Windows 10 SDK installed. This can be installed separately or by checking the appropriate box in the Visual Studio Installer. The SDK Debugging Tools must also be installed. If the Windows 10 SDK was installed via the Visual Studio installer, then they can be installed by going to: Control Panel → Programs → Programs and Features → Select the “Windows Software Development Kit” → Change → Change → Check “Debugging Tools For Windows” → Change. Or, you can download the standalone SDK installer and use it to install the Debugging Tools.

Fonte

    
por 05.04.2018 / 12:58