Can't run cefclient.exe on custom build with codecs

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.

Can't run cefclient.exe on custom build with codecs

Postby finder2 » Tue Nov 07, 2023 4:09 pm

I built libcef.dll with codecs support but couldn't build libcef_dll_wrapper.lib because my c:\code\chromium_git\chromium\src\cef\binary_distrib\cef_binary_117.2.5+gda4c36a+chromium-117.0.5938.152_windows32 is not full.
I tried to combine cef_binary_117.2.5+gda4c36a+chromium-117.0.5938.152_windows32 from the official build i downloaded here https://bitbucket.org/chromiumembedded/ ... uilding.md but it generates a lot of errors.
Copying libcef_dll_wrapper.lib from my CEF building folder c:\code\chromium_git\chromium\src\out\Debug_GN_x86\obj\cef\ didn't help either, in my porject i can see a lots of errors like this
Code: Select all
Severity   Code   Description   Project   File   Line   Suppression State
Error   LNK2001   unresolved external symbol "public: __thiscall std::__Cr::basic_string<char,struct std::__Cr::char_traits<char>,class std::__Cr::allocator<char> >::~basic_string<char,struct std::__Cr::char_traits<char>,class std::__Cr::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@__Cr@std@@V?$allocator@D@23@@__Cr@std@@QAE@XZ) \libcef_dll_wrapper.lib(post_data_element_ctocpp.obj)   1   


I built CEF with these parameters:

Code: Select all
set GN_DEFINES=is_component_build=false proprietary_codecs=true is_official_build=true
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
set CEF_ARCHIVE_FORMAT=tar.bz2
python3 ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --minimal-distrib --client-distrib --force-clean --with-pgo-profiles --no-build --branch=5938


How can i build correct libcef_dll_wrapper.lib for my build with codecs support?
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am

Re: Can't run cefclient.exe on custom build with codecs

Postby finder2 » Tue Nov 07, 2023 4:52 pm

Another problem - i can run cefclient on the machine i built it on, but i can't run it on my local machine.
Now if i'm trying to run it on my local machine i get these:
Code: Select all
[1107/234908.797:FATAL:com_init_check_hook.cc(185)] Check failed: false. CoCreateInstance appears to be previously patched. <cc cc cc cc cc e9 97> Attempted to write <e9 60 5c bd 9c eb f9>
   cef_time_from_basetime [0x138F4EB3+70245699]
   cef_time_from_basetime [0x13892961+69842929]
   cef_time_from_basetime [0x1385CCD5+69622629]
   cef_time_from_basetime [0x13869A5B+69675243]
   cef_time_from_basetime [0x138693D1+69673569]
   cef_time_from_basetime [0x138EED1E+70220718]
   RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x14994835+7662037]
   RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x1499468C+7661612]
   cef_time_from_basetime [0x1385A0B4+69611332]
   cef_time_from_basetime [0x11BF493E+39835598]
   cef_time_from_basetime [0x13200783+62952979]
   cef_time_from_basetime [0x1320036C+62951932]
   cef_zip_reader_create [0x0F559564+489604]
   cef_zip_reader_create [0x0F55906D+488333]
   cef_zip_reader_create [0x0F52C180+304288]
   cef_zip_reader_create [0x0F52BE3B+303451]
   cef_initialize [0x0F431473+163]
   (No symbol) [0x009DE554]
   (No symbol) [0x0094D685]
   (No symbol) [0x00994F50]
   cef_zip_reader_create [0x0F52D783+309923]
   GetNumaHighestNodeNumber [0x75B4F1B1+161]
   GetNumaHighestNodeNumber [0x75B4F166+86]
   RtlUserFiberStart [0x76FB2817+23]
Crash keys:
  "switch-2" = "--disable-gpu-shader-disk-cache"
  "switch-1" = "--lang=en-US"
  "num-switches" = "4"
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am

Re: Can't run cefclient.exe on custom build with codecs

Postby magreenblatt » Tue Nov 07, 2023 6:12 pm

When creating custom CEF builds for distribution you should follow the instructions at https://bitbucket.org/chromiumembedded/ ... igurations (just modify GN_DEFINES as needed)

set GN_DEFINES=is_component_build=false proprietary_codecs=true is_official_build=true

That doesn’t look correct. See https://github.com/chromiumembedded/cef/issues/3559
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Can't run cefclient.exe on custom build with codecs

Postby miro » Wed Nov 08, 2023 7:20 pm

I wrote my post mistakenly under wrong post and is not related to the original from @finder, so im sorry about this mistake, this is why i delete them to avoid mixing problem under one post.
regards
miro
Last edited by miro on Thu Nov 09, 2023 6:33 am, edited 1 time in total.
miro
Techie
 
Posts: 31
Joined: Wed Oct 14, 2020 5:48 am

Re: Can't run cefclient.exe on custom build with codecs

Postby finder2 » Thu Nov 09, 2023 5:58 am

magreenblatt wrote:When creating custom CEF builds for distribution you should follow the instructions at https://bitbucket.org/chromiumembedded/ ... igurations (just modify GN_DEFINES as needed)

set GN_DEFINES=is_component_build=false proprietary_codecs=true is_official_build=true

That doesn’t look correct. See https://github.com/chromiumembedded/cef/issues/3559

Many thanks for the hints, i finally built it with this
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_MSVS_VERSION=2022
set CEF_ARCHIVE_FORMAT=tar.bz2
python3 ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --minimal-distrib --with-pgo-profiles --client-distrib --force-clean --force-config --branch=5938


I needed to add --force-config parameter to build it sucessfully because i had issues with pgo before like this:
Code: Select all
RuntimeError: requested profile "c:\code\chromium_git\chromium\src\chrome\build\pgo_profiles\chrome-win64-5938-1694538110-800e283176041fc5005eddef3c7b87862da7319f.profdata" doesn't exist, please make sure "checkout_pgo_profiles" is set to True in the "custom_vars" section of your .gclient file, e.g.:
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am


Return to Support Forum

Who is online

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