Page 1 of 1

cef static build

PostPosted: Sat Nov 21, 2020 12:35 am
by vidyadeesha
I am trying to build CEF source code to generate static library, therefore please suggest me is there any flag to set to generate the static library for CEF .

Re: cef static build

PostPosted: Sat Nov 21, 2020 12:02 pm
by magreenblatt
What, specifically, do you want to build as a static library, and why? See also https://bitbucket.org/chromiumembedded/ ... braries.md

Re: cef static build

PostPosted: Sun Nov 22, 2020 11:52 pm
by vidyadeesha
In my project have to use cef library with static link therefore i need static library of cef. prebuilt cef library have only dynamic library .so please suggest how to link cef library as a static library.

Re: cef static build

PostPosted: Mon Nov 23, 2020 12:17 pm
by magreenblatt
vidyadeesha wrote:In my project have to use cef library with static link

Why?

Re: cef static build

PostPosted: Mon Nov 23, 2020 11:25 pm
by vidyadeesha
my entire application is linked with static only so i need this cef also static .

Re: cef static build

PostPosted: Tue Nov 24, 2020 1:29 pm
by magreenblatt
Just because you are linking other libraries statically does not mean that you need to link CEF statically. Indeed, it is more likely to cause issues if you do.

Re: cef static build

PostPosted: Fri Jul 01, 2022 3:17 pm
by Staxcelrom
Sorry for posting in an old thread, but I wanted to ask why - "If link the CEF statically, then it is "it is more likely to cause issues if you do."" ?

Re: cef static build

PostPosted: Sat Jul 02, 2022 3:27 am
by magreenblatt
All statically linked libraries need to be built with the same config and use the same runtime. Chromium also requires a very specific config and runtime. They are therefore unlikely to be compatible unless you build everything (your other static libs, exe, etc) as part of the Chromium build.