set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true ffmpeg_branding=Chrome proprietary_codecs=true
set GYP_DEFINES=buildtype=Official
set GYP_MSVS_VERSION=2017
set CEF_ARCHIVE_FORMAT=tar.bz2
set GYP_GENERATORS=ninja,msvs-ninja
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
python automate-git.py --download-dir=F:\cef\chromium_git --depot-tools-dir=F:\cef\depot_tools --branch=4103 --no-update --no-debug-build --build-log-file --verbose-build --force-distrib --minimal-distrib --client-distrib
I used the above command to compile CEF, but it prompts that there is no following file, but when I download the CEF source code, no task error is reported.
- Code: Select all
Transferring F:\cef\chromium_git\chromium\src\cef\include/base/internal/cef_bind_internal.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/base/internal/cef_callback_internal.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/base/internal/cef_lock_impl.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/base/internal/cef_raw_scoped_refptr_mismatch_checker.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/base/internal/cef_thread_checker_impl.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/cef_api_hash.h file.
Transferring F:\cef\chromium_git\chromium\src\cef\include/cef_base.h file.
Failed to copy file from F:\cef\chromium_git\chromium\src\cef\include/cef_config.h to F:\cef\chromium_git\chromium\src\cef\binary_distrib\cef_binary_83.3.12+g0889ff0+chromium-83.0.4103.97_windows32\include\cef_config.h: No such file or directoryTraceback (most recent call last):
File "make_distrib.py", line 696, in <module>
'include/', include_dir, options.quiet)
File "make_distrib.py", line 223, in transfer_gypi_files
copy_file(src, dst, quiet)
File "F:\cef\chromium_git\chromium\src\cef\tools\file_util.py", line 71, in copy_file
shutil.copy2(src, dst)
File "F:\cef\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 153, in copy2
copyfile(src, dst)
File "F:\cef\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'F:\\cef\\chromium_git\\chromium\\src\\cef\\include/cef_config.h'
Traceback (most recent call last):
File "automate-git.py", line 1625, in <module>
run(path, cef_tools_dir, depot_tools_dir)
File "automate-git.py", line 70, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "F:\cef\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['F:\\cef\\depot_tools\\python.bat', 'make_distrib.py', '--output-dir=../binary_distrib/', '--allow-partial', '--ninja-build']' returned non-zero exit status 1