Ninja build error on branch 4044

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Ninja build error on branch 4044

Postby Comrade » Mon Mar 23, 2020 6:43 am

I'm trying to build the newest CEF branch (4044) by following the https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md, but I am facing issues on step 8.

Im using:
    Windows 10
    Visual Studio Professional 2017 15.9.21
    for windows SDK 10.0.18362
    Ninja

    update.bat:
    Code: Select all
    set CEF_USE_GN=1
    set DEPOT_TOOLS_WIN_TOOLCHAIN=0
    set GN_DEFINES=use_jumbo_build=true proprietary_codecs=true ffmpeg_branding="Chrome"
    set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*

    python ..\automate\automate-git.py --download-dir=%cd% --depot-tools-dir=%cd%\..\depot_tools --no-distrib --no-build --branch=4044


    create.bat:
    Code: Select all
    set CEF_USE_GN=1
    set GN_DEFINES=use_jumbo_build=true proprietary_codecs=true ffmpeg_branding="Chrome" is_component_build=true
    # Use vs2017 or vs2019 as appropriate.
    set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
    call cef_create_projects.bat


When I run "ninja -C out\Debug_GN_x86 cef" I get the following error
Code: Select all
ninja: Entering directory `out\Debug_GN_x86'
[212/25201] RC obj/chrome/chrome_elf/chrome_elf_resources/chrome_elf_version.res
FAILED: obj/chrome/chrome_elf/chrome_elf_resources/chrome_elf_version.res
C:/Users/Konrad/Documents/Code/lockdown-browser/exambrowser-chromium/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x86 rc.exe /nologo "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-imsvc..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -DUSE_AURA=1 "-DCR_CLANG_REVISION=\"n340759-eaabaf7e-1\"" -D_HAS_NODISCARD -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -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 -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -I../.. -Igen /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 "C:\Users\Konrad\Documents\Code\lockdown-browser\exambrowser-chromium\chromium_git\chromium\src\build\toolchain\win\rc\rc.py", line 265, in <module>
    sys.exit(main())
  File "C:\Users\Konrad\Documents\Code\lockdown-browser\exambrowser-chromium\chromium_git\chromium\src\build\toolchain\win\rc\rc.py", line 251, in main
    rc_exe_exit_code = RunRc(preprocessed_output, is_utf8, flags)
  File "C:\Users\Konrad\Documents\Code\lockdown-browser\exambrowser-chromium\chromium_git\chromium\src\build\toolchain\win\rc\rc.py", line 179, in RunRc
    p = subprocess.Popen(rc_cmd, stdin=subprocess.PIPE)
  File "C:\Users\Konrad\Documents\Code\lockdown-browser\exambrowser-chromium\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\Users\Konrad\Documents\Code\lockdown-browser\exambrowser-chromium\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
[229/25201] CXX obj/chrome/chrome_elf/nt_registry/nt_registry.obj
ninja: build stopped: subcommand failed.

I looked in Debug_GN_x86/obj/chrome/chrome_elf/chrome_elf_resources/ and the directory seems to be empty

It would be great if someone could point me into the right direction because googling has produced no results.
Comrade
Newbie
 
Posts: 6
Joined: Sun Mar 22, 2020 5:39 am

Re: Ninja build error on branch 4044

Postby magreenblatt » Mon Mar 23, 2020 10:48 am

Do you have multiple versions of python in your PATH?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Ninja build error on branch 4044

Postby Comrade » Mon Mar 23, 2020 12:13 pm

Python is not in my path, but I noticed src\build\toolchain\win\rc\win\rc.exe is missing, not sure if this is significant.
Comrade
Newbie
 
Posts: 6
Joined: Sun Mar 22, 2020 5:39 am

Re: Ninja build error on branch 4044

Postby magreenblatt » Mon Mar 23, 2020 12:22 pm

Comrade wrote:Python is not in my path, but I noticed src\build\toolchain\win\rc\win\rc.exe is missing, not sure if this is significant.

Yes, that would be a problem. Try running "gclient runhooks" from inside the "chromium\src" directory.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Ninja build error on branch 4044

Postby Comrade » Tue Mar 24, 2020 6:52 am

That did the job I was able to build both debug and release. Thank you
Comrade
Newbie
 
Posts: 6
Joined: Sun Mar 22, 2020 5:39 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 50 guests