Compilation error: variable type 'net::DelayedCookieMonster'

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.

Compilation error: variable type 'net::DelayedCookieMonster'

Postby andreydm » Fri Dec 03, 2021 12:10 am

I'm trying to assemble the assembly, but every time I get the following error.
Can anyone tell me what is the reason?
I cannot interfere with the developer's source code and fix possible incorrect code.
Thanks for any advices!

My tools:
Windows 10x64
Windows 10 SDK 10.0.41.0
Visual Studio 16.11.7

rd_party/quiche/src/common/platform/default -I../../net/third_party/quiche/src -I../.20:26rd_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/googletest/src/googletest/include -I../../third_party/zlib -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fwhole-program-vtables -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m32 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes /W4 -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety -Wextra-semi /WX /wd4996 -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wno-null-pointer-subtraction -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-builtin-assume-aligned-alignment -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-bitwise-instead-of-logical /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /Z7 -gcodeview-ghash -Xclang -fuse-ctor-homing -ftrivial-auto-var-init=pattern /guard:cf,nochecks /MT -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -DPROTOBUF_ALLOW_DEPRECATED=1 -Wno-inconsistent-missing-override /wd4800 -Wno-trigraphs /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/net/net_unittests_cc.pdb"
../../net/url_request/url_request_http_job_unittest.cc(1184,24): error: variable type 'net::DelayedCookieMonster' is an abstract class
DelayedCookieMonster cookie_monster;

^
../..\net/cookies/cookie_store.h(159,16): note: unimplemented pure virtual method 'AddCookieableSchemes' in 'DelayedCookieMonster'
virtual void AddCookieableSchemes(const std::vector<std::string>& schemes,
^
1 error generated.
[39474/87563] CXX obj/net/net_unittests/dhcp_pac_file_fetcher_win_unittest.obj
ninja: build stopped: subcommand failed.

code\chromium_git\update.bat
cls
set path=d:\Python38\;%PATH%
set path=d:\code\depot_tools\;%PATH%
set GN_DEFINES=is_component_build=true use_thin_lto=false
:Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/* --proprietary_codecs=true --ffmpeg_branding=\"Chrome\"
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_MSVS_VERSION=2019
set CEF_ARCHIVE_FORMAT=tar.bz2
set cef_branch=4664
python ..\automate\automate-git-depot.py --download-dir=..\chromium_git --branch=%cef_branch% --depot-tools-dir=..\depot_tools --no-distrib --no-build


\code\chromium_git\chromium\src\cef\create.bat

set path=d:\code\depot_tools\;%PATH%
set GN_DEFINES=is_component_build=true
: Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/* --proprietary_codecs=true --ffmpeg_branding=\"Chrome\"
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
call cef_create_projects.bat
andreydm
Newbie
 
Posts: 7
Joined: Sat Dec 14, 2019 10:15 am

Re: Compilation error: variable type 'net::DelayedCookieMons

Postby magreenblatt » Fri Dec 03, 2021 12:32 pm

I don't know what automate-git-depot.py is, or what Chromium version you're trying to build. Try following the documented build instructions: MasterBuildQuickStart or AutomatedBuildSetup. When running ninja, only build the "cef" target.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compilation error: variable type 'net::DelayedCookieMons

Postby andreydm » Sat Dec 04, 2021 1:02 am

Thank you so much for your reply!

automate-git-depot.py - this is my version of automate-git.py. It keeps script from updating every time depot_tools folder.

I need this to change the cache parameter from '2g' to '512m' here
depot_tools\gclient_utils.py

Code: Select all
def DefaultDeltaBaseCacheLimit():
  """Return a reasonable default for the git config core.deltaBaseCacheLimit.

  The primary constraint is the address space of virtual memory.  The cache
  size limit is per-thread, and 32-bit systems can hit OOM errors if this
  parameter is set too high.
  """
  if platform.architecture()[0].startswith('64'):
    return '2g'
  else:
    return '512m'


Otherwise having a cache size of '2g' I can't download the chromium project at all! But my Win10 is x64.

The cache size 2g is passed by command line to git and I can't control this parameter through git settings.
andreydm
Newbie
 
Posts: 7
Joined: Sat Dec 14, 2019 10:15 am

Re: Compilation error: variable type 'net::DelayedCookieMons

Postby andreydm » Tue Dec 07, 2021 3:43 am

Resolved!
- I increased RAM up to 16GB!! on my virtual pc. It allowed to download the source project with a git cache size of '2g'
- I entered the correct parameter 'cef' for ninja, which I didn't do before
ninja.exe -C out\Debug_GN_x86 cef

Thank to everyone!
andreydm
Newbie
 
Posts: 7
Joined: Sat Dec 14, 2019 10:15 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 31 guests

cron