ERROR: Failed to find vcvars Traceback (most recent call last): File "F:\code\chromium_git\chromium\src\cef\tools\\make_distrib.py", line 954, in <module> combine_libs(platform, src_dir, sandbox_libs, File "F:\code\chromium_git\chromium\src\cef\tools\\make_distrib.py", line 406, in combine_libs run(cmdline, os.path.join(cef_dir, 'tools')) File "F:\code\chromium_git\chromium\src\cef\tools\\make_distrib.py", line 443, in run return subprocess.check_call( ^^^^^^^^^^^^^^^^^^^^^^ File "f:\code\depot_tools\bootstrap-2@3_11_8_chromium_35_bin\python3\bin\Lib\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['msvs_env.bat', 'win64', 'f:\\code\\depot_tools\\bootstrap-2@3_11_8_chromium_35_bin\\python3\\bin\\python3.exe', 'combine_libs.py', '-b', 'F:\\code\\chromium_git\\chromium\\src\\out\\Release_GN_x64', '-o', 'F:\\code\\chromium_git\\chromium\\src\\cef\\binary_distrib\\cef_binary_121.3.15+g4d3b0b4+chromium-121.0.6167.184_windows64\\Release\\cef_sandbox.lib', 'obj\\base\\base_static.lib', 'obj\\base\\third_party\\double_conversion\\double_conversion.lib', 'obj\\base\\third_party\\dynamic_annotations\\dynamic_annotations.lib', 'obj\\base\\win\\pe_image.lib', 'obj\\cef\\cef_sandbox.lib', 'obj\\sandbox\\common\\features.obj', 'obj\\sandbox\\win\\sandbox.lib', 'obj\\sandbox\\win\\service_resolver\\resolver.obj', 'obj\\sandbox\\win\\service_resolver\\resolver_64.obj', 'obj\\sandbox\\win\\service_resolver\\service_resolver.obj', 'obj\\sandbox\\win\\service_resolver\\service_resolver_64.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\base\\cycleclock.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\base\\spinlock.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\base\\sysinfo.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\base\\thread_identity.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\base\\unscaledcycleclock.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\log_severity\\log_severity.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\malloc_internal\\low_level_alloc.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\raw_logging_internal\\raw_logging.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\spinlock_wait\\spinlock_wait.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\strerror\\strerror.obj', 'obj\\third_party\\abseil-cpp\\absl\\base\\throw_delegate\\throw_delegate.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\debugging_internal\\address_is_readable.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\debugging_internal\\elf_mem_image.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\debugging_internal\\vdso_support.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\demangle_internal\\demangle.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\examine_stack\\examine_stack.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\failure_signal_handler\\failure_signal_handler.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\stacktrace\\stacktrace.obj', 'obj\\third_party\\abseil-cpp\\absl\\debugging\\symbolize\\symbolize.obj', 'obj\\third_party\\abseil-cpp\\absl\\numeric\\int128\\int128.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\graphcycles_internal\\graphcycles.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\kernel_timeout_internal\\kernel_timeout.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\barrier.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\blocking_counter.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\create_thread_identity.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\futex_waiter.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\mutex.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\notification.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\per_thread_sem.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\pthread_waiter.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\sem_waiter.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\stdcpp_waiter.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\waiter_base.obj', 'obj\\third_party\\abseil-cpp\\absl\\synchronization\\synchronization\\win32_waiter.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\civil_time\\civil_time_detail.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_fixed.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_format.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_if.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_impl.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_info.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_libc.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_lookup.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\time_zone_posix.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\internal\\cctz\\time_zone\\zone_info_source.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\time\\civil_time.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\time\\clock.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\time\\duration.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\time\\format.obj', 'obj\\third_party\\abseil-cpp\\absl\\time\\time\\time.obj', 'obj\\third_party\\abseil-cpp\\absl\\types\\bad_optional_access\\bad_optional_access.obj', 'obj\\third_party\\abseil-cpp\\absl\\types\\bad_variant_access\\bad_variant_access.obj']' returned non-zero exit status 1. F:\code\chromium_git\chromium\src\cef\tools>
解决:
添加环境变量:
CEF_VCVARS
E:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
标签:obj,third,abseil,vcvars,Failed,cpp,absl,party,find From: https://www.cnblogs.com/hxqmw/p/18179344