[Solved]Build error no_check_targets

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.

[Solved]Build error no_check_targets

Postby xuyu » Thu Jul 15, 2021 6:11 am

I use automate-git.py script to download branch 4430 and try to build, but I got the following errors after CEF patch applied:

Code: Select all
Generating CEF project files...
Creating D:\google\cef_new\chromium\src\out\Debug_GN_x86 directory.
ERROR at //.gn:65:20: Assignment had no effect.
no_check_targets = [
                   ^
You set the variable "no_check_targets" here and it was unused before it went
out of scope.
Traceback (most recent call last):
  File "D:\google\cef_new\chromium\src\cef\tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "D:\google\cef_new\chromium\src\cef\tools\gclient_util.py", line 35, in RunAction
    gclient_utils.CheckCallAndFilter(
  File "D:\google\cef_new\depot_tools\gclient_utils.py", line 673, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in D:\google\cef_new\chromium\src
Traceback (most recent call last):
  File "D:\google\cef_new\automate-git.py", line 1462, in <module>
    run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
  File "D:\google\cef_new\automate-git.py", line 69, in run
    return subprocess.check_call(
  File "C:\Python39\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:\\google\\cef_new\\depot_tools\\python3.bat', 'D:\\google\\cef_new\\chromium\\src\\cef\\tools\\gclient_hook.py']' returned non-zero exit status 1.


My enviroment variables:
Code: Select all
set CEF_USE_GN=1
set CEF_ARCHIVE_FORMAT=tar.bz2
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
set GYP_MSVS_VERSION=2019


depot_tools:
Code: Select all
(HEAD detached at 9757ad58) 3/19/2021 6:31:51


Command:
Code: Select all
python automate-git.py --download-dir=D:\google\cef_new --branch=4430 --no-debug-build --client-distrib


Anyone can help me? Thanks a lot.
Last edited by xuyu on Mon Jul 19, 2021 9:15 pm, edited 1 time in total.
xuyu
Newbie
 
Posts: 6
Joined: Wed Jul 04, 2018 8:37 pm

Re: Build error no_check_targets

Postby Czarek » Thu Jul 15, 2021 10:56 am

Try using depot_tools from March when that branch was active.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Build error no_check_targets

Postby xuyu » Sat Jul 17, 2021 8:02 am

Thanks for reply! It is my mistake, I set a system variable named 'CHROMIUM_BUILDTOOLS_PATH' to Electron buildtools folder(there is a old gn file), gclient_paths.py in depot_tools will read it as gn path (function GetBuildtoolsPath), so, just delete the system variable, it works well.
xuyu
Newbie
 
Posts: 6
Joined: Wed Jul 04, 2018 8:37 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 38 guests