Building Cef clone 140.1.14, my build of libcef.dll is much smaller than the same version from NuGet package 140.1.14 #5181
Unanswered
BillBogart
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building Chrome cef version 140.1.14.0 to add h.264 & 256 video codecs.
I started with this article on how to do it:
https://scalibq.wordpress.com/2024/08/16/how-to-build-your-own-cef-with-mp4-support/
The problem I am having is that my build of libcef.dll is much smaller than the version that comes in the NuGet package. I have verified that they are the same exact version:
140.1.14+geb1c06e+chromium-140.0.7339.185
I am new to building Chrome Cef but I suspect something is missing/not linking statically.
After replacing NuGet package’s libcef.dll and chrome_elf.dll, CefSettings constructor gets the following runtime error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.'
I know its my built libcef.dll and chrome_elf.dll because replacing them with the original Nuget binary versions everything loads fine and it runs without any issues.
Here are the parameters I use for update.bat:
set GN_DEFINES=is_component_build=true ffmpeg_branding=Chrome proprietary_codecs=true
set GYP_MSVS_VERSION=2022
set CEF_ARCHIVE_FORMAT=tar.bz2
python3 ..\automate\automate-git.py --download-dir=c:\code\chromium_git --branch=7339 --minimal-distrib --client-distrib --force-clean --no-chromium-history --with-pgo-profiles
Here are the parameters I use for create.bat:
set GN_DEFINES=is_component_build=true ffmpeg_branding=Chrome proprietary_codecs=true
set CEF_ARCHIVE_FORMAT=tar.bz2
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
call cef_create_projects.bat
The resulting local built 32 bit release libcef.dll is 134,784 Kb
The NuGet 32 bit version libcef.dll is 203,906 Kb
Any help with what I am doing wrong would be greatly appreciated.
Thanks,
Bill Bogart
Beta Was this translation helpful? Give feedback.
All reactions