Chromium'un Windows sürümünü derlemeye çalışıyorum. Burada belirtilen yönergeleri izledim ve aşağıdaki komutu çalıştırırken son bölümde bir hata alıyorum:
gn gen out/Default
Hataya neden olan (python) kodunu inceledikten sonra şunu fark ettim:
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
sonra
assert vc_lib_um_path
Bu satırdaki son hataya neden oluyor ve bu da bana sorunun "User32.lib" bulamamasından kaynaklanabileceğini düşünüyor. Windows 10 (64 bit) sistemindeyim ve bu kütüphanenin bulunabilmesi için güncellenecek bir ortam değişkeni olup olmadığını bilmek istiyorum. Herhangi bir öneriye açığım.
Benim yol değişkeni:
Ve tam hata mesajı:
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
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\10" "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
Teşekkürler