libcef file size is different from standard distribution ver

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.

libcef file size is different from standard distribution ver

Postby BensonLi » Mon Jan 22, 2024 4:50 am

I follow official guide to build libcef.dll on 6099.234. But the binary size is much smaller than the standard distribution version.
standard distribution version size:162MB
My version size:90.4MB
The link I follow is https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
The main args like below:

update args:
set GN_DEFINES=is_component_build=true
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
python3 ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --no-distrib --no-build --branch=6099

create args:
set GN_DEFINES=is_component_build=true
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
call cef_create_projects.bat

When I replace the libcef.dll in my application(using cef sharp 120.2.70(6399.234)) with my version, there is one exception raised and showing other dependent module are needed.
The distribution version get from the nuget works well. It seems that distribution version linked more static libraries in it self or something like that.

I want to know are there any settings different between my build version and official standard distribution version. How can I build my version like the distribution version?
Attachments
LinkException.PNG
replace libcef.dll exception raised
LinkException.PNG (26.68 KiB) Viewed 766 times
BensonLi
Newbie
 
Posts: 3
Joined: Mon Jan 22, 2024 4:23 am

Re: libcef file size is different from standard distribution

Postby magreenblatt » Mon Jan 22, 2024 11:05 am

For official builds follow the instructions at https://bitbucket.org/chromiumembedded/ ... figuration
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: libcef file size is different from standard distribution

Postby BensonLi » Wed Jan 24, 2024 4:03 am

It can build a official version following the guide now.
However, there is an error when build Debug X86 sandbox version.
Are there any options that I can use to skip building the sandbox version since it break the whole process. I do not need the sandbox version.
Please refer to the attachment.

BTW: Manually to build the release version is ok.

thanks.
Attachments
Sandboxerror.PNG
Sandboxerror.PNG (134.65 KiB) Viewed 684 times
BensonLi
Newbie
 
Posts: 3
Joined: Mon Jan 22, 2024 4:23 am

Re: libcef file size is different from standard distribution

Postby ndesktop » Wed Jan 24, 2024 6:24 am

It's the mising limits include issue. It has been recently discussed on forum (and fixed, if I remember well).
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: libcef file size is different from standard distribution

Postby magreenblatt » Wed Jan 24, 2024 1:26 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: libcef file size is different from standard distribution

Postby BensonLi » Thu Jan 25, 2024 1:39 am

That's really helpful.
There is no other questions.

Thanks again.
BensonLi
Newbie
 
Posts: 3
Joined: Mon Jan 22, 2024 4:23 am


Return to Support Forum

Who is online

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