Build CEF 2623 Error

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.

Build CEF 2623 Error

Postby finder2 » Tue May 07, 2019 9:56 am

I'm trying to build CEF 2623 with h264 codec support but can't manage it out.
A guide to build is here: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart
Win7 + VS2015.

My update.bat looks like
Code: Select all
set GN_DEFINES=use_jumbo_build=true is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2015
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --no-distrib --no-build --branch=2623


The error after running update.bat is
Code: Select all
Error: Command 'download_from_google_storage --no_resume --platform=win32 --no_a
uth --bucket chromium-gn -s src/buildtools/win/gn.exe.sha1' returned non-zero ex
it status 1 in c:\code\chromium_git\chromium
Hook 'download_from_google_storage --no_resume --platform=win32 --no_auth --buck
et chromium-gn -s src/buildtools/win/gn.exe.sha1' took 13.75 secs
Traceback (most recent call last):
  File "..\automate\automate-git.py", line 1410, in <module>
    ('--reset ' if discard_local_changes else ''), chromium_dir, depot_tools_dir
)
  File "..\automate\automate-git.py", line 61, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "C:\code\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", l
ine 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--with_branch_heads
', '--disable-syntax-validation', '--jobs', '16']' returned non-zero exit status
 2


Any tips about building CEF 2623 and h264?
What should i do?
finder2
Techie
 
Posts: 46
Joined: Fri Jun 13, 2014 1:33 am

Re: Build CEF 2623 Error

Postby magreenblatt » Tue May 07, 2019 11:18 am

2623 is very old, unsupported, and unlikely to build successfully. You will have to resolve any errors yourself. General instructions for building older branches are at https://bitbucket.org/chromiumembedded/ ... nsupported
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build CEF 2623 Error

Postby Czarek » Tue May 07, 2019 11:25 am

As Marshall said. Additionally, do not use "use_jumbo_build=True" flag.
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 CEF 2623 Error

Postby ndesktop » Wed May 08, 2019 1:39 am

I'm building in my (very little) spare time older (and most likely unsupported) version of cef - I am planning to make them available somehow (in whatever time I might spare) for users needing them for whatever reasons (legacy apps, unupgradable software, research etc.).

I have started 2623 build, for now vanilla build:
Code: Select all
C:\cef> C:\bin\python\x64\27\python C:\cef\automate-git.py --download-dir=C:\cef\2623 --branch=2623 --x64-build --no-debug-build --client-distrib --sandbox-distrib

Ping/PM me some 12-24-etc. hours later and I'll let you know if this one finalized with success.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Build CEF 2623 Error

Postby finder2 » Wed May 08, 2019 4:59 am

Thanks guys, for your replies.
CEF 2623 + H264 for WinXP would be great at first instead of later versions.

ndesktop wrote:I'm building in my (very little) spare time older (and most likely unsupported) version of cef - I am planning to make them available somehow (in whatever time I might spare) for users needing them for whatever reasons (legacy apps, unupgradable software, research etc.).

I have started 2623 build, for now vanilla build:
Code: Select all
C:\cef> C:\bin\python\x64\27\python C:\cef\automate-git.py --download-dir=C:\cef\2623 --branch=2623 --x64-build --no-debug-build --client-distrib --sandbox-distrib

Ping/PM me some 12-24-etc. hours later and I'll let you know if this one finalized with success.


PMed to you.
finder2
Techie
 
Posts: 46
Joined: Fri Jun 13, 2014 1:33 am

Re: Build CEF 2623 Error

Postby finder2 » Mon May 13, 2019 1:20 pm

I was able to build 2623 but without h264 yet. If I try to build it again with this command
Code: Select all
set GYP_MSVS_VERSION=2015
C:\python27\python C:\code\automate\automate-git.py --download-dir=C:\code\chromium_git --branch=2623 --no-debug-build --client-distrib --no-update --force-build


the script exits with the exception below
Code: Select all
Traceback (most recent call last):
  File "C:\code\automate\automate-git.py", line 1324, in <module>
    raise Exception('Not a valid git checkout: %s' % (chromium_src_dir))
Exception: Not a valid git checkout: C:\code\chromium_git\chromium\src


Tried on different disks and folders.
Any tips?
finder2
Techie
 
Posts: 46
Joined: Fri Jun 13, 2014 1:33 am

Re: Build CEF 2623 Error

Postby ndesktop » Mon May 20, 2019 3:39 am

XP build 2623 with H.264 successful using these steps.
Note. The steps are tweaked in order to obtain a successful 32-bit build for Windows XP using GYP.
If there are other errors/configurations you need to have, you need to tweak on your own.

1. Environment:
- default cmd.exe on Windows 7 x64; Visual Studio 2015 (+ documented prerequisites)
- environment variables
Code: Select all
set CEF_USE_GN=0
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_DEFINES=target_arch=ia32 proprietary_codecs=1 ffmpeg_branding=Chrome
set GYP_GENERATORS=msvs-ninja,ninja
set GYP_MSVS_VERSION=2015
set PYTHONPATH=C:\bin\python\x86\27

- Python 2.7 32-bit in C:\bin\python\x86\27
- root directory for build: C:\cef\2623.vs2015

2. Modify automate-git.py:
Code: Select all
def get_build_directory_name(is_debug):
  build_dir = ('Debug' if is_debug else 'Release')
  if use_gn:
    # CEF uses a consistent directory naming scheme for GN via
    # GetAllPlatformConfigs in tools/gn_args.py.
    build_dir += '_'
    if options.x64build:
      build_dir += '_GN_x64'
    elif options.armbuild:
      build_dir += '_GN_arm'
    else:
      build_dir += '_GN_x86'
  else:
    # GYP outputs both x86 and x64 builds to the same directory on Linux and
    # Mac OS X. On Windows it suffixes the directory name for x64 builds.
    if platform == 'windows' and options.x64build:
      build_dir += '_x64'
  return build_dir

This is because in that branch the directories were Release and Release_x64, not Release_x86 and Release_x64.
As stated, I don't check or care about post-XP or XP 64-bit (great OS, by the way).

3. Build command line:
Code: Select all
python C:\cef\2623.vs2015\automate-git.py --download-dir=C:\cef\2623.vs2015\x86 --branch=2623


4. Changes in source code for compiling with VS 2015
Modifications is sources:
- third_party/skia/src/core/SkEdge.cpp:
line 231:
+fCurveCount = SkToS8(1LL << shift);
-fCurveCount = SkToS8(1 << shift);
Diff:
Code: Select all
 src/core/SkEdge.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/SkEdge.cpp b/src/core/SkEdge.cpp
index c64896f2e0..b7fa6b601e 100644
--- a/src/core/SkEdge.cpp
+++ b/src/core/SkEdge.cpp
@@ -228,7 +228,7 @@ int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift)
 
     fWinding    = SkToS8(winding);
     //fCubicDShift only set for cubics
-    fCurveCount = SkToS8(1 << shift);
+    fCurveCount = SkToS8(1LL << shift);
 
     /*
      *  We want to reformulate into polynomial form, to make it clear how we


- src/ui/gl/gl_gl_api_implementation.cc
after #include "ui/gl/gl_version_info.h"
+
+#ifndef GL_CONTEXT_LOST_KHR
+#define GL_CONTEXT_LOST_KHR 0x0507
+#endif

Diff:
Code: Select all
 ui/gl/gl_gl_api_implementation.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index 3f3b0cded0f0..9ae9acaf1a5b 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -17,6 +17,10 @@
 #include "ui/gl/gl_switches.h"
 #include "ui/gl/gl_version_info.h"
 
+#ifndef GL_CONTEXT_LOST_KHR
+#define GL_CONTEXT_LOST_KHR               0x0507
+#endif
+
 namespace gfx {
 
 // The GL Api being used. This could be g_real_gl or gl_trace_gl


- src/google_apis/gaia/oauth2_token_service.cc
Code: Select all
google_apis/gaia/oauth2_token_service.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/google_apis/gaia/oauth2_token_service.cc b/google_apis/gaia/oauth2_token_service.cc
index ed20d1356249..9536ba94a153 100644
--- a/google_apis/gaia/oauth2_token_service.cc
+++ b/google_apis/gaia/oauth2_token_service.cc
@@ -310,7 +310,7 @@ void OAuth2TokenService::Fetcher::OnGetTokenFailure(
 int64_t OAuth2TokenService::Fetcher::ComputeExponentialBackOffMilliseconds(
     int retry_num) {
   DCHECK(retry_num < max_fetch_retry_num_);
-  int64_t exponential_backoff_in_seconds = 1 << retry_num;
+  int64_t exponential_backoff_in_seconds = 1LL << retry_num;
   // Returns a backoff with randomness < 1000ms
   return (exponential_backoff_in_seconds + base::RandDouble()) * 1000;
 }


- src/third_party/swiftshader/eglext.h (no diff here)
Code: Select all
...
typedef void *EGLSyncKHR;
+typedef EGLSyncKHR EGLSync;
typedef intptr_t EGLAttribKHR;
+typedef EGLAttribKHR EGLAttrib;
typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
...


5. After modifications, recompilation (from the *same* console):
Code: Select all
$ cd x86\chromium\src
$ ninja -C out\Release


6. Finally, you need dbghelp.dll, otherwise cefclient will start but will crash at initialization.
Story here, here and here.
dbghelp.dll produced by ninja build (version 6.12.2.633 on my build) worked for me.
Last edited by ndesktop on Mon May 20, 2019 10:46 am, edited 1 time in total.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Build CEF 2623 Error

Postby finder2 » Mon May 20, 2019 8:32 am

Thank you ndesktop for your help. I have now CEF 2623 with h264/proprietary codec support that works on Windows XP.
finder2
Techie
 
Posts: 46
Joined: Fri Jun 13, 2014 1:33 am

Re: Build CEF 2623 Error

Postby DeadMaster » Thu Sep 19, 2019 3:01 pm

help, trying to download build 2623, OS windows 10

use command

python c:\code\automate\automate-git.py --download-dir=C:\code\git\cef\2623\32 --depot-tools-dir=C:\code\depot_tools --branch=2623

and se error, what should I do

Code: Select all
c:\code\git\cef>python c:\code\automate\automate-git.py --download-dir=C:\code\git\cef\2623\32 --depot-tools-dir=C:\code\depot_tools --branch=2623
--> Creating directory C:\code\git\cef\2623\32
--> Download Directory: C:\code\git\cef\2623\32
--> Depot Tools Directory: C:\code\depot_tools
--> Updating depot_tools
-------- Running "update_depot_tools.bat" in "C:\code\depot_tools"...
Traceback (most recent call last):
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 365, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 324, in main
    git_postprocess(template, os.path.join(bootstrap_dir, 'git'))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 264, in git_postprocess
    maybe_copy(
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 108, in maybe_copy
    content = fd.read()
  File "C:\code\depot_tools\bootstrap-3_8_0b1_chromium_1_bin\python3\bin\lib\encodings\cp1251.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 17916: character maps to <undefined>
--> CEF Branch: 2623
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: C:\code\git\cef\2623\32\cef
-------- Running "C:\code\depot_tools\git.bat clone https://bitbucket.org/chromiumembedded/cef.git C:\code\git\cef\2623\32\cef" in "C:\code\git\cef\2623\32"...
Cloning into 'C:\code\git\cef\2623\32\cef'...
remote: Counting objects: 57750, done.
remote: Compressing objects: 100% (1854/1854), done.
remote: Total 57750 (delta 1277), reused 0 (delta 0)
Receiving objects: 100% (57750/57750), 20.65 MiB | 93.00 KiB/s, done.
Resolving deltas: 100% (49048/49048), done.
-------- Running "C:\code\depot_tools\git.bat rev-parse HEAD" in "C:\code\git\cef\2623\32\cef"...
-------- Running "C:\code\depot_tools\git.bat rev-parse origin/2623" in "C:\code\git\cef\2623\32\cef"...
--> CEF Current Checkout: 46d3a81ba06e26004195fee3be5906720c564e4e
--> CEF Desired Checkout: b90a3be1860b0647e8a62c218ff7c054390365b1 (origin/2623)
-------- Running "C:\code\depot_tools\git.bat checkout origin/2623" in "C:\code\git\cef\2623\32\cef"...
Note: checking out 'origin/2623'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b90a3be1 Call RenderProcessHost::Send from correct thread (issue #1881)
--> CEF Output Directory: C:\code\git\cef\2623\32\out_2623
--> Creating directory C:\code\git\cef\2623\32\chromium
--> Writing file: C:\code\git\cef\2623\32\chromium\.gclient
-------- Running "gclient sync --nohooks --with_branch_heads --disable-syntax-validation --jobs 16" in "C:\code\git\cef\2623\32\chromium"...
Traceback (most recent call last):
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 365, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 324, in main
    git_postprocess(template, os.path.join(bootstrap_dir, 'git'))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 264, in git_postprocess
    maybe_copy(
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 108, in maybe_copy
    content = fd.read()
  File "C:\code\depot_tools\bootstrap-3_8_0b1_chromium_1_bin\python3\bin\lib\encodings\cp1251.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 17916: character maps to <undefined>
1>________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git C:\code\git\cef\2623\32\chromium\_gclient_src_ier3w8' in 'C:\code\git\cef\2623\32\chromium'
1>Cloning into 'C:\code\git\cef\2623\32\chromium\_gclient_src_ier3w8'...
1>remote: Sending approximately 16.77 GiB ...
1>remote: Counting objects: 219368, done
1>remote: Finding sources: 100% (1611/1611)
1>remote: Total 13003267 (delta 9843700), reused 13002846 (delta 9843700)
1>Receiving objects: 100% (13003267/13003267), 16.73 GiB | 10.83 MiB/s, done.
1>Resolving deltas: 100% (9843700/9843700), done.

[0:47:41] Still working on:
[0:47:41]   src

[0:47:51] Still working on:
[0:47:51]   src

[0:48:01] Still working on:
[0:48:01]   src

[0:48:11] Still working on:
[0:48:11]   src

[0:48:21] Still working on:
[0:48:21]   src

[0:48:31] Still working on:
[0:48:31]   src

[0:48:41] Still working on:
[0:48:41]   src

[0:48:51] Still working on:
[0:48:51]   src

[0:49:01] Still working on:
[0:49:01]   src

[0:49:11] Still working on:
[0:49:11]   src

[0:49:21] Still working on:
[0:49:21]   src

[0:49:31] Still working on:
[0:49:31]   src

[0:49:41] Still working on:
[0:49:41]   src

[0:49:51] Still working on:
[0:49:51]   src

[0:50:01] Still working on:
[0:50:01]   src

[0:50:11] Still working on:
[0:50:11]   src

[0:50:21] Still working on:
[0:50:21]   src

[0:50:31] Still working on:
[0:50:31]   src

[0:50:41] Still working on:
[0:50:41]   src

[0:50:51] Still working on:
[0:50:51]   src

[0:51:01] Still working on:
[0:51:01]   src

[0:51:11] Still working on:
[0:51:11]   src

[0:51:21] Still working on:
[0:51:21]   src

[0:51:31] Still working on:
[0:51:31]   src

[0:51:41] Still working on:
[0:51:41]   src

[0:51:51] Still working on:
[0:51:51]   src

[0:52:01] Still working on:
[0:52:01]   src

[0:52:11] Still working on:
[0:52:11]   src

[0:52:21] Still working on:
[0:52:21]   src

[0:52:31] Still working on:
[0:52:31]   src

[0:52:41] Still working on:
[0:52:41]   src
1>Syncing projects:   0% ( 0/ 2)
[0:52:41] Still working on:
[0:52:41]   src
Syncing projects:  95% (103/108) src/third_party/angle/third_party/vulkan-validation-layers/src
[1:01:24] Still working on:
[1:01:24]   src/third_party/skia
[1:01:24]   src/third_party/swiftshader
[1:01:24]   src/third_party/webrtc
[1:01:24]   src/v8
[1:01:24]   src/third_party/angle/third_party/deqp/src

[1:01:34] Still working on:
[1:01:34]   src/third_party/skia
[1:01:34]   src/third_party/swiftshader
[1:01:34]   src/third_party/webrtc
[1:01:34]   src/v8
[1:01:34]   src/third_party/angle/third_party/deqp/src

[1:01:42] Still working on:
[1:01:42]   src/third_party/skia
[1:01:42]   src/third_party/swiftshader
[1:01:42]   src/third_party/webrtc
[1:01:42]   src/v8
[1:01:42]   src/third_party/angle/third_party/deqp/src
Syncing projects:  99% (107/108) src/third_party/angle/third_party/deqp/src
[1:03:35] Still working on:
[1:03:35]   src/v8

[1:03:45] Still working on:
[1:03:45]   src/v8

[1:03:46] Still working on:
[1:03:46]   src/v8
Syncing projects: 100% (108/108), done.
-------- Running "C:\code\depot_tools\git.bat config --get remote.origin.url" in "C:\code\git\cef\2623\32\chromium\src"...
--> Chromium URL: https://chromium.googlesource.com/chromium/src.git
-------- Running "C:\code\depot_tools\git.bat fetch" in "C:\code\git\cef\2623\32\chromium\src"...
remote: Counting objects: 13522, done
remote: Finding sources: 100% (89/89)
remote: Total 89 (delta 4), reused 61 (delta 4)
Unpacking objects: 100% (89/89), done.
From https://chromium.googlesource.com/chromium/src
   0ee4ca660063..7b20aca05b3c  lkgr                  -> origin/lkgr
   e8b079cc909c..8d329866be41  lkgr-android-internal -> origin/lkgr-android-internal
   5781ccaf6787..ebad05eeb393  lkgr-ios-internal     -> origin/lkgr-ios-internal
   13d6abb4193a..b1aa2ce6bab4  master                -> origin/master
-------- Running "C:\code\depot_tools\git.bat fetch --tags" in "C:\code\git\cef\2623\32\chromium\src"...
remote: Counting objects: 281801, done
remote: Finding sources: 100% (3/3)
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
From https://chromium.googlesource.com/chromium/src
 * [new tag]                   79.0.3917.2 -> 79.0.3917.2
--> Reading C:\code\git\cef\2623\32\cef\CHROMIUM_BUILD_COMPATIBILITY.txt
-------- Running "C:\code\depot_tools\git.bat rev-parse HEAD" in "C:\code\git\cef\2623\32\chromium\src"...
-------- Running "C:\code\depot_tools\git.bat rev-parse refs/tags/49.0.2623.110" in "C:\code\git\cef\2623\32\chromium\src"...
--> Chromium Current Checkout: 13d6abb4193a23b2cdd903ca7e787413f4c08eb5
--> Chromium Desired Checkout: 6345e75c7d4450f4ad929e338df8137f678a02cc (refs/tags/49.0.2623.110)
-------- Running "C:\code\depot_tools\git.bat checkout refs/tags/49.0.2623.110" in "C:\code\git\cef\2623\32\chromium\src"...
Checking out files: 100% (473005/473005), done.
Previous HEAD position was 13d6abb4193a Roll src/third_party/swiftshader e9b6f28fdd71..126d9d604e27 (1 commits)
HEAD is now at 6345e75c7d44 Publish DEPS for Chromium 49.0.2623.110
--> Chromium DEPS file: C:\code\git\cef\2623\32\chromium\src\DEPS
-------- Running "gclient sync --with_branch_heads --disable-syntax-validation --jobs 16" in "C:\code\git\cef\2623\32\chromium"...
Traceback (most recent call last):
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 365, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 324, in main
    git_postprocess(template, os.path.join(bootstrap_dir, 'git'))
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 264, in git_postprocess
    maybe_copy(
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 108, in maybe_copy
    content = fd.read()
  File "C:\code\depot_tools\bootstrap-3_8_0b1_chromium_1_bin\python3\bin\lib\encodings\cp1251.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 17916: character maps to <undefined>
gclient_eval(442) _MergeDepsOs:Ignoring 'src/chrome/test/data/perf/canvas_bench':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
gclient_eval(442) _MergeDepsOs:Ignoring 'src/native_client':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
gclient_eval(442) _MergeDepsOs:Ignoring 'src/third_party/webgl':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
gclient_eval(442) _MergeDepsOs:Ignoring 'src/chrome/test/data/perf/frame_rate/content':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
gclient_eval(442) _MergeDepsOs:Ignoring 'src/third_party/hunspell_dictionaries':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
gclient_eval(442) _MergeDepsOs:Ignoring 'src/third_party/ffmpeg':{'url': None, 'dep_type': 'git'} in 'ios' deps_os
47>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://chromium.googlesource.com/webm/libvpx.git" "C:\code\git\cef\2623\32\chromium\src\third_party\libvpx_new\source\_gclient_libvpx_qkzbkw"' in C:\code\git\cef\2623\32\chromium failed; will retry after a short nap...
66>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://chromium.googlesource.com/external/google-safe-browsing/testing.git" "C:\code\git\cef\2623\32\chromium\src\third_party\safe_browsing\_gclient_testing_dbpvra"' in C:\code\git\cef\2623\32\chromium failed; will retry after a short nap...
67>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://chromium.googlesource.com/native_client/src/third_party/scons-2.0.1.git" "C:\code\git\cef\2623\32\chromium\src\third_party\_gclient_scons-2.0.1_j4cxpy"' in C:\code\git\cef\2623\32\chromium failed; will retry after a short nap...
Syncing projects: 100% (82/82) src/third_party/deqp/src

src/third_party/opus/src (ERROR)
----------------------------------------
[0:01:20] Started.
[0:01:20]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/deps/opus.git C:\code\git\cef\2623\32\chromium\src\third_party\opus\_gclient_src_eo3qpc' in 'C:\code\git\cef\2623\32\chromium'

[0:01:20] Cloning into 'C:\code\git\cef\2623\32\chromium\src\third_party\opus\_gclient_src_eo3qpc'...
[0:01:21] remote: Counting objects: 1
[0:01:21] remote: Counting objects: 50, done
[0:01:21] Receiving objects:   0% (1/30320)
[0:01:22] Receiving objects:   6% (1965/30320), 323.91 KiB | 493.00 KiB/s
[0:01:22] Receiving objects:  10% (3032/30320), 835.75 KiB | 705.00 KiB/s
[0:01:23] Receiving objects:  33% (10006/30320), 1.88 MiB | 862.00 KiB/s
[0:01:25] Receiving objects:  42% (12808/30320), 2.26 MiB | 590.00 KiB/s
[0:01:26] Receiving objects:  62% (18827/30320), 4.25 MiB | 876.00 KiB/s
[0:01:27] Receiving objects:  77% (23368/30320), 5.31 MiB | 977.00 KiB/s
[0:01:28] Receiving objects:  94% (28554/30320), 7.19 MiB | 1.16 MiB/s
[0:01:28] remote: Total 30320 (delta 24044), reused 30320 (delta 24044)
[0:01:28] Receiving objects: 100% (30320/30320), 8.31 MiB | 1.25 MiB/s
[0:01:37] Resolving deltas:   0% (0/24044)
[0:01:37] Resolving deltas:  10% (2412/24044)
[0:01:37] Resolving deltas: 100% (24044/24044)
[0:01:41] Resolving deltas: 100% (24044/24044), done.
[0:01:55] _____ Conflicting directory found in C:\code\git\cef\2623\32\chromium\src\third_party\opus\src. Moving to C:\code\git\cef\2623\32\chromium\_bad_scm\src\third_party\opus\srcze780g.
[0:01:55]
[0:02:21]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/deps/opus.git C:\code\git\cef\2623\32\chromium\src\third_party\opus\_gclient_src_2wcaz9' in 'C:\code\git\cef\2623\32\chromium'

[0:02:21] Cloning into 'C:\code\git\cef\2623\32\chromium\src\third_party\opus\_gclient_src_2wcaz9'...
[0:02:22] remote: Counting objects: 1
[0:02:22] remote: Counting objects: 50, done
[0:02:22] Receiving objects:   0% (1/30320)
[0:02:22] Receiving objects:  10% (3032/30320)
[0:02:23] Receiving objects:  89% (26985/30320), 4.19 MiB | 3.58 MiB/s
[0:02:23] remote: Total 30320 (delta 24044), reused 30320 (delta 24044)
[0:02:23] Receiving objects: 100% (30320/30320), 4.19 MiB | 3.58 MiB/s
[0:02:23] Resolving deltas:   0% (0/24044)
[0:02:23] Resolving deltas:  10% (2432/24044)
[0:02:24] Resolving deltas: 100% (24044/24044)
----------------------------------------
Error: Command 'git checkout --quiet cae696156f1e60006e39821e79a1811ae1933c69' returned non-zero exit status 128 in C:\code\git\cef\2623\32\chromium\src\third_party\opus\src
fatal: reference is not a tree: cae696156f1e60006e39821e79a1811ae1933c69



Warnings:
Conflicting directory C:\code\git\cef\2623\32\chromium\src\third_party\opus\src moved to C:\code\git\cef\2623\32\chromium\_bad_scm\src\third_party\opus\srcze780g.
Traceback (most recent call last):
  File "c:\code\automate\automate-git.py", line 1431, in <module>
    ('--reset ' if discard_local_changes else ''), chromium_dir, depot_tools_dir)
  File "c:\code\automate\automate-git.py", line 61, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "i:\code\depot_tools\win_tools-2_7_15_chromium14_bin\python\bin\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--with_branch_heads', '--disable-syntax-validation', '--jobs', '16']' returned non-zero exit status 1
c:\code\git\cef>
c:\code\git\cef>
DeadMaster
Newbie
 
Posts: 1
Joined: Sun Sep 15, 2019 11:53 am

Re: Build CEF 2623 Error

Postby jonny0632 » Thu Oct 03, 2019 7:30 pm

DeadMaster wrote:help, trying to download build 2623, OS windows 10
and se error, what should I do
Code: Select all
Traceback (most recent call last):
  File "C:\code\depot_tools\bootstrap\bootstrap.py", line 365, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\code\depot_tools\bootstrap-3_8_0b1_chromium_1_bin\python3\bin\lib\encodings\cp1251.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 17916: character maps to <undefined>



Have same error. Found solution here Google Groups: Problem installing depot_tools

to fix this quick modify automate-git.py file find and replace all occurrences of open() function, add " encoding='UTF-8' " parameter

For example:
Code: Select all
 fp = open(path, 'r')

change to
Code: Select all
 fp = open(path, 'r', encoding='UTF-8')


UPDATE

This will NOT solve this problem:
DeadMaster wrote:
Code: Select all
Error: Command 'git checkout --quiet cae696156f1e60006e39821e79a1811ae1933c69' returned non-zero exit status 128 in C:\code\git\cef\2623\32\chromium\src\third_party\opus\src
fatal: reference is not a tree: cae696156f1e60006e39821e79a1811ae1933c69


UPDATE(2)

Skip 'git checkout --quiet cae696156f1e60006e39821e79a1811ae1933c69'
and use 'git checkout --quiet master' in 'chromium\src\third_party\opus\src'
Code: Select all
--- automate-git.py
+++ automate-git.py
@@ -1426,6 +1426,27 @@
   # not run gyp.
   os.environ['GYP_CHROMIUM_NO_ACTION'] = '1'
 
+  # CUSTOM CODE START
+  # chromium/src/DEPS
+  _DEPS_DATA = ''
+  _DEPS_FILE = os.path.join(chromium_src_dir, 'DEPS')
+  if os.path.exists(_DEPS_FILE):
+    with open(_DEPS_FILE, 'r') as file:
+      _DEPS_DATA = file.read()
+      _DEPS_DATA = _DEPS_DATA.replace('cae696156f1e60006e39821e79a1811ae1933c69', 'master')
+    with open(_DEPS_FILE, 'w') as file:
+      file.write(_DEPS_DATA)
+  # chromium/src/third_party/opus/README.chromium
+  _OPUS_README_DATA = ''
+  _OPUS_README_FILE = os.path.join(chromium_src_dir, 'third_party', 'opus', 'README.chromium')
+  if os.path.exists(_OPUS_README_FILE):
+    with open(_OPUS_README_FILE, 'r') as file:
+      _OPUS_README_DATA = file.read()
+      _OPUS_README_DATA = _OPUS_README_DATA.replace('e70faf98b0465e4f278c72ce2d7b4ad10221a2f2', 'master')
+    with open(_OPUS_README_FILE, 'w') as file:
+      file.write(_OPUS_README_DATA)
+  # CUSTOM CODE END
+
   # Update third-party dependencies including branch/tag information.
   run("gclient sync %s--with_branch_heads --disable-syntax-validation --jobs 16" % \
       ('--reset ' if discard_local_changes else ''), chromium_dir, depot_tools_dir)

Then add --force-clean --force-clean-deps to automate-git.py command
was able to build 2623 according to scenario in this thread.
Don`t know how to fix missing branch/tag, perhaps there is a "right" solution
jonny0632
Newbie
 
Posts: 3
Joined: Thu Oct 03, 2019 7:07 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 55 guests