Build Errors - FileNotFoundError
Posted: Thu Dec 02, 2021 10:43 am
I have been trying to build CEF with codecs since Monday with no success. I built 8x version before by following the instructions, doing the same now causes all sort of errors.
Fresh windows, had vs2022 but replaced it with vs2019.
I installed the required components:
Python31, debug sdk 10.0.19041 and vs
Created folders and extracted depot tools as instructed, set the Paths
And then ran the following:
I started getting errors with "CREATE.BAT" about missing user32 and .h files but I fixed it by copying the files from debugger to vs folders.
And now I'm stuck with "BUILD.BAT" with the following error.
Any help with solving this is appreciated.
Fresh windows, had vs2022 but replaced it with vs2019.
I installed the required components:
Python31, debug sdk 10.0.19041 and vs
- Code: Select all
--add Microsoft.VisualStudio.Workload.NativeDesktop ^
--add Microsoft.VisualStudio.Component.VC.ATLMFC ^
--includeRecommended
Created folders and extracted depot tools as instructed, set the Paths
And then ran the following:
- Code: Select all
https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart
https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup#markdown-header-windows-configuration
- - -
Run .\chromium_git\UPDATE.BAT
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome media_use_ffmpeg=true media_use_libvpx=true use_pulseaudio=true rtc_include_pulse_audio=true rtc_use_h264=true
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=F:\cef\build\chromium_git --depot-tools-dir=F:\cef\build\depot_tools --branch=4664 --no-distrib --no-build --no-debug-build --no-debug-tests --no-release-tests
pause
- - -
Run .\chromium_git\chromium\src\cef\CREATE.BAT
set GN_DEFINES=is_component_build=false is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome media_use_ffmpeg=true media_use_libvpx=true use_pulseaudio=true rtc_include_pulse_audio=true rtc_use_h264=true
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
call cef_create_projects.bat
pause
- - -
Run .\chromium_git\chromium\src\out\BUILD.BAT
set NINJA_SUMMARIZE_BUILD=1
ninja -C .\Release_GN_x64 cef
pause
I started getting errors with "CREATE.BAT" about missing user32 and .h files but I fixed it by copying the files from debugger to vs folders.
And now I'm stuck with "BUILD.BAT" with the following error.
f:\cef\build\chromium\src\out>ninja -C .\Release_GN_x64 cef
ninja: Entering directory `.\Release_GN_x64'
[7/51450] RC obj/chrome/chrome_elf/chrome_elf_resources/chrome_elf_version.res
FAILED: obj/chrome/chrome_elf/chrome_elf_resources/chrome_elf_version.res
F:/cef/build/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python3/bin/python3.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" -DUSE_AURA=1 -DOFFICIAL_BUILD "-DCR_CLANG_REVISION=\"llvmorg-14-init-5759-g02895eed-1\"" -D_HAS_NODISCARD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../buildtools/third_party/libc++ /foobj/chrome/chrome_elf/chrome_elf_resources/chrome_elf_version.res gen/chrome/chrome_elf/chrome_elf_version.rc
Traceback (most recent call last):
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 276, in <module>
sys.exit(main())
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 270, in main
rc_exe_exit_code = CompareToMsRcOutput(preprocessed_output, is_utf8, flags)
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 244, in CompareToMsRcOutput
rc_exe_exit_code = subprocess.call(msrc_cmd)
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[8/51450] RC obj/chrome/elevation_service/version_resources/elevation_service_exe.res
FAILED: obj/chrome/elevation_service/version_resources/elevation_service_exe.res
F:/cef/build/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python3/bin/python3.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" -DUSE_AURA=1 -DOFFICIAL_BUILD "-DCR_CLANG_REVISION=\"llvmorg-14-init-5759-g02895eed-1\"" -D_HAS_NODISCARD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../buildtools/third_party/libc++ /foobj/chrome/elevation_service/version_resources/elevation_service_exe.res gen/chrome/elevation_service/elevation_service_exe.rc
Traceback (most recent call last):
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 276, in <module>
sys.exit(main())
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 270, in main
rc_exe_exit_code = CompareToMsRcOutput(preprocessed_output, is_utf8, flags)
File "f:\cef\build\chromium\src\build\toolchain\win\rc\rc.py", line 244, in CompareToMsRcOutput
rc_exe_exit_code = subprocess.call(msrc_cmd)
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "F:\cef\build\depot_tools\bootstrap-2@3_8_10_chromium_23_bin\python3\bin\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[16/51450] CXX obj/third_party/abseil-cpp/absl/container/hashtablez_sampler/hashtablez_sampler.obj
ninja: build stopped: subcommand failed.
Any help with solving this is appreciated.